-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript''
More file actions
64 lines (57 loc) · 2.92 KB
/
Script''
File metadata and controls
64 lines (57 loc) · 2.92 KB
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
<apex:page >
<style type='text/css'>
.embeddedServiceHelpButton .helpButton .uiButton {
background-color: #fe8a02;
font-family: "Arial", sans-serif;
}
.embeddedServiceHelpButton .helpButton .uiButton:focus {
outline: 1px solid #fe8a02;
}
</style>
<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; //O falso
embedded_svc.settings.language = ''; //Por ejemplo, ingrese 'en' o 'en-US'
//embedded_svc.settings.defaultMinimizedText = '...'; //(Toma como valor predeterminado Sesión de chat con un experto)
//embedded_svc.settings.disabledMinimizedText = '...'; //(Toma como valor predeterminado Agente sin conexión)
//embedded_svc.settings.loadingText = ''; //(Toma como valor predeterminado Cargando)
//embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Establece el dominio para su desarrollo de modo que los visitantes puedan navegar por subdominios durante una sesión de chat)
// Configuración para Plática
//embedded_svc.settings.directToButtonRouting = function(prechatFormData) {
// Dynamically changes the button ID based on what the visitor enters in the pre-chat form.
// Returns a valid button ID.
//};
//embedded_svc.settings.prepopulatedPrechatFields = {}; //Establece el relleno automático de los campos del formulario previo al chat
//embedded_svc.settings.fallbackRouting = []; //Una matriz de identificadores de botones, de usuario o userId_buttonId
//embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Toma como valor predeterminado la opción Contacto)
embedded_svc.settings.enabledFeatures = ['LiveAgent'];
embedded_svc.settings.entryFeature = 'LiveAgent';
embedded_svc.init(
'https://ozonsf.my.salesforce.com',
'https://ozonsf.my.salesforce-sites.com/liveAgentSetupFlow',
gslbBaseURL,
'00D4x000007uurw',
'Agentes_Ozon',
{
baseLiveAgentContentURL: 'https://c.la3-c1-ia4.salesforceliveagent.com/content',
deploymentId: '5724x000000te0x',
buttonId: '5734x000000xqmx',
baseLiveAgentURL: 'https://d.la3-c1-ia4.salesforceliveagent.com/chat',
eswLiveAgentDevName: 'Agentes_Ozon',
isOfflineSupportEnabled: false
}
);
};
if (!window.embedded_svc) {
var s = document.createElement('script');
s.setAttribute('src', 'https://ozonsf.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>
</apex:page>