Skip to content

Commit 9121c39

Browse files
authored
Create esw.html
1 parent 3457338 commit 9121c39

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

Shital/NA55/esw.html

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

0 commit comments

Comments
 (0)