Skip to content

Commit cd0d645

Browse files
authored
Create ESW_SDB38_test1_botssdb38.html
1 parent 2b24403 commit cd0d645

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<html>
2+
<head>
3+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
4+
</head>
5+
<body>
6+
<h1>ESW on SDB38 TEST1 for Org: botssdb38</h1>
7+
8+
<style type='text/css'>
9+
.embeddedServiceHelpButton .helpButton .uiButton {
10+
background-color: #005290;
11+
font-family: "Arial", sans-serif;
12+
}
13+
.embeddedServiceHelpButton .helpButton .uiButton:focus {
14+
outline: 1px solid #005290;
15+
}
16+
</style>
17+
18+
<script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script>
19+
<script type='text/javascript'>
20+
var initESW = function(gslbBaseURL) {
21+
embedded_svc.settings.displayHelpButton = true; //Or false
22+
embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US'
23+
24+
//embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
25+
//embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)
26+
27+
//embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
28+
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)
29+
30+
// Settings for Chat
31+
//embedded_svc.settings.directToButtonRouting = function(prechatFormData) {
32+
// Dynamically changes the button ID based on what the visitor enters in the pre-chat form.
33+
// Returns a valid button ID.
34+
//};
35+
//embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields
36+
//embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId
37+
//embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)
38+
39+
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
40+
embedded_svc.settings.entryFeature = 'LiveAgent';
41+
42+
embedded_svc.init(
43+
'https://botssdb38.demo.test1.my.pc-rnd.salesforce.com',
44+
'https://botssdb38.demo.test1.my.pc-rnd.salesforce-sites.com/liveAgentSetupFlow',
45+
gslbBaseURL,
46+
'00DAAC00001L2j4',
47+
'ESW',
48+
{
49+
baseLiveAgentContentURL: 'https://c.la5-test1-uswest2-core4.pc-aws.salesforceliveagent.com/content',
50+
deploymentId: '572AAC00000R6MH',
51+
buttonId: '573AAC00000IHSD',
52+
baseLiveAgentURL: 'https://d.la5-test1-uswest2-core4.pc-aws.salesforceliveagent.com/chat',
53+
eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04IAAC000000FlR2BU_194d01bb9a9',
54+
isOfflineSupportEnabled: false
55+
}
56+
);
57+
};
58+
59+
if (!window.embedded_svc) {
60+
var s = document.createElement('script');
61+
s.setAttribute('src', 'https://botssdb38.demo.test1.my.pc-rnd.salesforce.com/embeddedservice/5.0/esw.min.js');
62+
s.onload = function() {
63+
initESW(null);
64+
};
65+
document.body.appendChild(s);
66+
} else {
67+
initESW('https://service.force.com');
68+
}
69+
</script>
70+
</body>
71+
</html>

0 commit comments

Comments
 (0)