window._genesys = { widgets: {
main: { theme: 'custom', lang: "es",
i18n: "https://apps.mypurecloud.com/widgets/9.0/i18n/widgets-es.i18n.json",
themes: { custom: 'cx-theme-custom' } },
webchat: { emojis: true, uploadsEnabled: false, transport: { type: 'purecloud-v2-sockets', dataURL: 'https://api.usw2.pure.cloud', deploymentKey: '2f1bcfc7-a591-4488-8cc5-87bda97becbc', orgGuid: 'e13b2dd9-5679-4a6b-ab49-08129012b857', interactionData: { routing: { targetType: 'QUEUE', targetAddress: 'WebChat', priority: 2 } } }, userData: {
customField1Label: "Seguros", customField2Label: "Cédula", customField3Label: "Motivo"
} } } };
const customPlugin = CXBus.registerPlugin('Custom');
customPlugin.subscribe('WebChatService.started', function (e) { console.log('Chat started', e); });
customPlugin.subscribe('WebChatService.ended', function (e) { console.log('Chat ended', e); });