Skip to content

Commit b15b25b

Browse files
authored
Create e2eeswchat.html
1 parent 78d30d5 commit b15b25b

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<head>
4+
<title>SDB38 E2E STANDARD CHAT With BOT</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
6+
</head>
7+
8+
<body>
9+
<p>
10+
<a id="editThisPageLink" target="_blank" style="color:red">Edit this page</a>
11+
</p>
12+
13+
<script>
14+
document.getElementById('editThisPageLink').href = "https://github.com/ESW1234/esw1234.github.io/edit/master" + window.location.pathname;
15+
</script>
16+
<br>
17+
<h2 align="center"><font color ="green">SDB38 E2E STANDARD CHAT With BOT </font></h2>
18+
19+
<br/>
20+
21+
<!-- 5.0 snippet -->
22+
<style type='text/css'>
23+
.embeddedServiceHelpButton .helpButton .uiButton {
24+
background-color: #005290;
25+
font-family: "Comic Sans MS", sans-serif;
26+
}
27+
.embeddedServiceHelpButton .helpButton .uiButton:focus {
28+
outline: 1px solid #005290;
29+
}
30+
</style>
31+
32+
<!-- <script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script> -->
33+
<script type='text/javascript'>
34+
var initESW = function(gslbBaseURL) {
35+
embedded_svc.settings.displayHelpButton = true; //Or false
36+
embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US'
37+
38+
//embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert)
39+
//embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline)
40+
41+
//embedded_svc.settings.loadingText = ''; //(Defaults to Loading)
42+
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session)
43+
44+
// Settings for Chat
45+
//embedded_svc.settings.directToButtonRouting = function(prechatFormData) {
46+
// Dynamically changes the button ID based on what the visitor enters in the pre-chat form.
47+
// Returns a valid button ID.
48+
//};
49+
//embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields
50+
//embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId
51+
//embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)
52+
53+
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
54+
embedded_svc.settings.entryFeature = 'LiveAgent';
55+
56+
embedded_svc.init(
57+
'https://inapporg3.test1.my.pc-rnd.salesforce.com',
58+
'https://inapporg3.test1.my.pc-rnd.site.com/cs',
59+
gslbBaseURL,
60+
'00DSB0000003a8b',
61+
'e2eESWChatWithBot',
62+
{
63+
baseLiveAgentContentURL: 'https://c.la3-test1-uswest2-core4.pc-aws.salesforceliveagent.com/content',
64+
deploymentId: '572SB0000001gzh',
65+
buttonId: '573SB0000001NNZ',
66+
baseLiveAgentURL: 'https://d.la3-test1-uswest2-core4.pc-aws.salesforceliveagent.com/chat',
67+
eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04ISB0000000UCb2AM_188988f5b0a',
68+
isOfflineSupportEnabled: true
69+
}
70+
);
71+
};
72+
73+
if (!window.embedded_svc) {
74+
var s = document.createElement('script');
75+
s.setAttribute('src', 'https://inapporg3.test1.my.pc-rnd.salesforce.com/embeddedservice/5.0/esw.min.js');
76+
s.onload = function() {
77+
initESW(null);
78+
};
79+
document.body.appendChild(s);
80+
} else {
81+
initESW('https://service.force.com');
82+
}
83+
</script>
84+
85+
</body>
86+
</html>

0 commit comments

Comments
 (0)