Skip to content

Commit cbc4fc2

Browse files
authored
Create eswPage.html
1 parent 948c4d3 commit cbc4fc2

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

Shital/gov/liveChat/eswPage.html

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

0 commit comments

Comments
 (0)