Skip to content

Commit 51dc7a5

Browse files
authored
Create index.html
1 parent a5d835a commit 51dc7a5

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

salesforce/index.html

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

0 commit comments

Comments
 (0)