Skip to content

Commit 9e05804

Browse files
authored
Create chat.html
1 parent 7c95cb2 commit 9e05804

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

godwin/sdb3/chat.html

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2+
<html>
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
5+
</head>
6+
<body>
7+
<h1>WEBSNAPINS SDB3 CHAT</h1>
8+
<h2>Main domain deployment</h2>
9+
<br/>
10+
<br/>
11+
12+
<!------------------------------------------------ 5.0 SNIPPPET ----------------------------------------------------->
13+
<style type='text/css'>
14+
.embeddedServiceHelpButton .helpButton .uiButton {
15+
background-color: #005290;
16+
font-family: "Arial", sans-serif;
17+
}
18+
.embeddedServiceHelpButton .helpButton .uiButton:focus {
19+
outline: 1px solid #005290;
20+
}
21+
</style>
22+
23+
<script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.js'></script>
24+
<script type='text/javascript'>
25+
var initESW = function(gslbBaseURL) {
26+
embedded_svc.settings.displayHelpButton = true; //Or false
27+
embedded_svc.settings.language = 'en'; //For example, enter 'en' or 'en-US'
28+
embedded_svc.settings.devMode = true;
29+
30+
//embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
31+
//embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)
32+
33+
//embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
34+
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)
35+
36+
// Settings for Chat
37+
//embedded_svc.settings.directToButtonRouting = function(prechatFormData) {
38+
// Dynamically changes the button ID based on what the visitor enters in the pre-chat form.
39+
// Returns a valid button ID.
40+
//};
41+
//embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields
42+
//embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId
43+
//embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)
44+
45+
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
46+
embedded_svc.settings.entryFeature = 'LiveAgent';
47+
48+
embedded_svc.init(
49+
'https://godwinlaw-sdb3.test1.my.pc-rnd.salesforce.com',
50+
'https://godwinlaw-sdb3.test1.my.pc-rnd.site.com/endpoint',
51+
gslbBaseURL,
52+
'00DSB0000004st3',
53+
'Embedded_Chat',
54+
{
55+
baseLiveAgentContentURL: 'https://c.la3-test1-uswest2-core4.pc-aws.salesforceliveagent.com/content',
56+
deploymentId: '572SB0000001Us5',
57+
buttonId: '573SB0000001COv',
58+
baseLiveAgentURL: 'https://d.la3-test1-uswest2-core4.pc-aws.salesforceliveagent.com/chat',
59+
eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04ISB0000000T8T2AU_18758128ade',
60+
isOfflineSupportEnabled: false
61+
}
62+
);
63+
};
64+
65+
if (!window.embedded_svc) {
66+
var s = document.createElement('script');
67+
s.setAttribute('src', 'https://godwinlaw-sdb3.test1.my.pc-rnd.salesforce.com/embeddedservice/5.0/esw.js');
68+
s.onload = function() {
69+
initESW(null);
70+
};
71+
document.body.appendChild(s);
72+
} else {
73+
initESW('https://service.force.com');
74+
}
75+
</script>
76+
<!------------------------------------------------ 5.0 SNIPPPET END ------------------------------------------------->
77+
78+
<!------------------------------------------------ 4.0 SNIPPPET ----------------------------------------------------->
79+
80+
<!------------------------------------------------ 4.0 SNIPPPET END ------------------------------------------------->
81+
82+
<!------------------------------------------------ 3.1 SNIPPET ------------------------------------------------------>
83+
84+
<!------------------------------------------------ 3.1 SNIPPET END -------------------------------------------------->
85+
86+
<!------------------------------------------------ 3.0 SNIPPET ------------------------------------------------------>
87+
88+
<!------------------------------------------------ 3.0 SNIPPET END -------------------------------------------------->
89+
90+
<!------------------------------------------------ 2.2 SNIPPET ------------------------------------------------------>
91+
92+
<!------------------------------------------------ 2.2 SNIPPET END -------------------------------------------------->
93+
94+
<!------------------------------------------------ 2.0 SNIPPET ------------------------------------------------------>
95+
96+
<!------------------------------------------------ 2.0 SNIPPET END -------------------------------------------------->
97+
98+
99+
</body>
100+
</html>

0 commit comments

Comments
 (0)