-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.html
79 lines (73 loc) · 3.33 KB
/
chat.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat con Live Agent</title>
<style type='text/css'>
.embeddedServiceHelpButton .helpButton .uiButton {
background-color: #005290;
font-family: "Arial", sans-serif;
}
.embeddedServiceHelpButton .helpButton .uiButton:focus {
outline: 1px solid #005290;
}
</style>
</head>
<body>
<div id="liveagent_container">
<a id="liveagent_button_online_573bm000001fr6D" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('573bm000001fr6D')">
<!-- Online Chat Content -->
</a>
<div id="liveagent_button_offline_573bm000001fr6D" style="display: none;">
<!-- Offline Chat Content -->
</div>
</div>
<script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script>
<script type='text/javascript'>
var initESW = function(gslbBaseURL) {
embedded_svc.settings.displayHelpButton = true; // Mostrar botón de ayuda
embedded_svc.settings.language = ''; // Establecer el idioma (ejemplo: 'en' o 'en-US')
// Configuración para el chat
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
embedded_svc.settings.entryFeature = 'LiveAgent';
embedded_svc.init(
'https://cunning-narwhal-bt26r7-dev-ed.trailblaze.my.salesforce.com',
'https://cunning-narwhal-bt26r7-dev-ed.trailblaze.my.salesforce-sites.com/test',
gslbBaseURL,
'00Dbm00000A5boZ',
'Bot',
{
baseLiveAgentContentURL: 'https://c.la11-core1.sfdc-yfeipo.salesforceliveagent.com/content',
deploymentId: '572bm000005wsef',
buttonId: '573bm000001fr6D',
baseLiveAgentURL: 'https://d.la11-core1.sfdc-yfeipo.salesforceliveagent.com/chat',
eswLiveAgentDevName: 'Bot',
isOfflineSupportEnabled: true
}
);
};
if (!window.embedded_svc) {
var s = document.createElement('script');
s.setAttribute('src', 'https://cunning-narwhal-bt26r7-dev-ed.trailblaze.my.salesforce.com/embeddedservice/5.0/esw.min.js');
s.onload = function() {
initESW(null);
};
document.body.appendChild(s);
} else {
initESW('https://service.force.com');
}
</script>
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function() {
liveagent.showWhenOnline('573bm000001fr6D', document.getElementById('liveagent_button_online_573bm000001fr6D'));
liveagent.showWhenOffline('573bm000001fr6D', document.getElementById('liveagent_button_offline_573bm000001fr6D'));
});
</script>
<script type='text/javascript' src='https://c.la11-core1.sfdc-yfeipo.salesforceliveagent.com/content/g/js/61.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la11-core1.sfdc-yfeipo.salesforceliveagent.com/chat', '572bm000005wsef', '00Dbm00000A5boZ');
</script>
</body>
</html>