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C,QAAQ1F,EAAKqF,UAC1B,IAEFrH,KAAKK,OAAO8G,gBAAgB,iBAC1B,SAAShF,GACPA,EAAEsF,SAASC,QAAQ1F,EAAKqP,cAC1B,IAEFrR,KAAKK,OAAO8G,gBAAgB,gBAC1B,SAAShF,GACPH,EAAK0O,cAAcvO,EAAEiF,KAAKC,WAC1BlF,EAAEsF,SAASC,SACb,IAEF1H,KAAKK,OAAO2H,UAAU,SACtBhI,KAAKK,OAAO4H,OACd,EAEO,IAAIoI,CACb,C,GCtOI4B,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCnBA,EAAQ,MACR,EAAQ,MACR,EAAQ,MACR,EAAQ,MACR,EAAQ,MACR,EAAQ,K","sources":["webpack://frontendv2/./src/js/library/legacy/genesys/005_domextension.js","webpack://frontendv2/./src/js/library/legacy/genesys/002_rvtextension.js","webpack://frontendv2/./src/js/library/legacy/genesys/006_olsextension.js","webpack://frontendv2/./src/js/library/legacy/genesys/001_cookieextension.js","webpack://frontendv2/./src/js/library/legacy/genesys/004_functionalextension.js","webpack://frontendv2/./src/js/library/legacy/genesys/003_statusextension.js","webpack://frontendv2/webpack/bootstrap","webpack://frontendv2/./src/js/scripts/genesys.js"],"sourcesContent":["/* eslint-disable max-statements */\nif (!window._genesys.widgets.extensions) {\n window._genesys.widgets.extensions = {};\n}\n\n/* eslint-disable max-statements */\nwindow._genesys.widgets.extensions.DomExtension = function($, CXBus, Common) {\n 'use strict';\n\n function DomExtension() {\n this.chatType = null;\n this.connectedAgentNames = [];\n this.minimized = false;\n this.mopinionToggler = null;\n this.plugin = CXBus.registerPlugin('DomExtension');\n this.init();\n this.registerAndSubscribe();\n }\n\n DomExtension.prototype.cssStatusEnum = {\n Online: 'is-available',\n Offline: 'is-offline'\n };\n\n DomExtension.prototype.cssChatTypeEnum = {\n LiveChat: 'is-livechat',\n ChatBot: 'is-chatbot'\n };\n\n DomExtension.prototype.meetIdStatusEnum = {\n Offline: '_offline',\n Online: '_online'\n };\n\n DomExtension.prototype.chatTypeEnum = {\n LiveChat: 'livechat',\n Chatbot: 'chatbot'\n };\n\n DomExtension.prototype.setMeetId = function(query, text, addText) {\n var $query;\n\n $query = $(query);\n if ($query.length > 0) {\n this.setDataMeetId($query, text, addText);\n }\n };\n\n DomExtension.prototype.setDataMeetId = function($query, dataMeetId, addText) {\n var text;\n\n if (dataMeetId) {\n if ($query.length > 0) {\n $query.removeAttr('data-meetid');\n $query.removeAttr('id');\n if (addText) {\n text = dataMeetId + $query.text().replace(/[^\\w\\s]/g, '').replace(/ /g, '_').toLowerCase();\n $query.attr('data-meetid', text);\n $query.attr('id', text);\n } else {\n $query.attr('data-meetid', dataMeetId);\n $query.attr('id', dataMeetId);\n }\n }\n }\n };\n\n DomExtension.prototype.initCallToAction = function() {\n var self;\n\n self = this;\n this.$callToAction = $('.js-genesys').on('click',\n function(e) {\n e.preventDefault();\n self.plugin.command('WebChat.open');\n }\n );\n };\n\n DomExtension.prototype.initWidget = function() {\n this.$widget = $('.cx-widget').first();\n if (this.$widget.length > 0) {\n switch (this.chatType) {\n case this.chatTypeEnum.Chatbot:\n this.switchChatType(this.cssChatTypeEnum.ChatBot, this.cssChatTypeEnum.LiveChat);\n break;\n default:\n this.switchChatType(this.cssChatTypeEnum.LiveChat, this.cssChatTypeEnum.ChatBot);\n break;\n }\n }\n };\n\n DomExtension.prototype.switchChatType = function(chatTypeToAdd, chatTypeToRemove) {\n this.$widget.removeClass(chatTypeToRemove);\n this.$widget.removeClass(chatTypeToAdd);\n this.$widget.addClass(chatTypeToAdd);\n };\n\n DomExtension.prototype.initChatButton = function() {\n this.$chatButton = $('.cx-webchat-chat-button');\n this.setMeetId(this.$chatButton, 'ipoclick-lnk-' + this.chatType + '-start_chat' + this.meetIdStatusEnum.Offline, false);\n };\n\n DomExtension.prototype.initConfirmFormCloseButton = function() {\n this.setMeetId('.cx-close-confirm.cx-btn.cx-btn-primary.i18n', 'ipoclick-btn-' + this.chatType + '-close_' + this.chatType + '_', true);\n };\n\n DomExtension.prototype.initConfirmFormCancelButton = function() {\n this.setMeetId('.cx-close-cancel.cx-btn.cx-btn-default.i18n', 'ipoclick-btn-' + this.chatType + '-close_' + this.chatType + '_', true);\n };\n\n DomExtension.prototype.initChatFormSubmitButton = function() {\n this.setMeetId('.cx-submit.cx-btn.cx-btn-primary.i18n', 'ipoclick-btn-' + this.chatType + '-', true);\n };\n\n DomExtension.prototype.initChatFormCancelButton = function() {\n this.setMeetId('.cx-btn.cx-btn-default.i18n', 'ipoclick-btn-' + this.chatType + '-', true);\n };\n\n DomExtension.prototype.initChatWindow = function() {\n var rouActiviteit;\n\n if (typeof window._genesys.widgets.webchat.userData !== 'undefined') {\n if (window._genesys.widgets.webchat.userData.rouActiviteit) {\n rouActiviteit = '-' + window._genesys.widgets.webchat.userData.rouActiviteit.toLowerCase();\n }\n this.setMeetId('.cx-webchat', 'ipoview-window-' + this.chatType + rouActiviteit, false);\n }\n };\n\n DomExtension.prototype.initChatWindowTitle = function() {\n var self;\n\n self = this;\n this.$title = $('.cx-titlebar .cx-title');\n if (this.$title.length > 0) {\n this.$title.text(self.connectedAgentNames.join(', ') || self.$title.text());\n }\n };\n\n DomExtension.prototype.initChatWindowSubTitle = function() {\n var $subtitle;\n\n $subtitle = $('.cx-titlebar .cx-subtitle');\n if ($subtitle.length > 0) {\n $subtitle.html(window._genesys.widgets.custom.subtitleUrlString);\n }\n };\n\n DomExtension.prototype.initSendMessageButton = function() {\n var $sendMessageButton;\n\n $sendMessageButton = $('.cx-send.cx-icon.i18n');\n if ($sendMessageButton.length > 0) {\n $sendMessageButton.text($sendMessageButton.prop('title'));\n this.setDataMeetId($sendMessageButton, 'ipoclick-btn-' + this.chatType + '-', true);\n }\n };\n\n DomExtension.prototype.initChatFormMinimizeIcon = function() {\n var chatFormMinimizeMeetText;\n\n chatFormMinimizeMeetText = 'ipoclick-btn-' + this.chatType + '-minimize_chat';\n if (this.minimized) {\n chatFormMinimizeMeetText = 'ipoclick-btn-' + this.chatType + '-maximize_chat';\n }\n this.setMeetId('.cx-icon.cx-button-minimize', chatFormMinimizeMeetText, false);\n };\n\n DomExtension.prototype.initChatFormCloseIcon = function() {\n var $chatFormCloseIcon, self;\n\n self = this;\n $chatFormCloseIcon = $('.cx-icon.cx-button-close');\n function chatFormCloseIconFunc() {\n self.initChatEndCancelButton();\n self.initChatEndConfirmButton();\n }\n if ($chatFormCloseIcon.length > 0) {\n this.setDataMeetId($chatFormCloseIcon, 'ipoclick-btn-' + this.chatType + '-close_chat', false);\n $chatFormCloseIcon.off('click.domextension');\n $chatFormCloseIcon.on('click.domextension', chatFormCloseIconFunc);\n }\n };\n\n DomExtension.prototype.initChatEndCancelButton = function() {\n this.setMeetId('.cx-end-cancel.cx-btn.cx-btn-default.i18n', 'ipoclick-btn-' + this.chatType + '-close_' + this.chatType + '_', true);\n };\n\n DomExtension.prototype.initChatEndConfirmButton = function() {\n var $chatEndConfirmButton, self;\n\n self = this;\n $chatEndConfirmButton = $('.cx-end-confirm.cx-btn.cx-btn-primary.i18n');\n function chatEndConfirmButtonFunc() {\n self.plugin.command('WebChat.close');\n }\n if ($chatEndConfirmButton.length > 0) {\n this.setDataMeetId($chatEndConfirmButton, 'ipoclick-btn-' + this.chatType + '-close_' + this.chatType + '_', true);\n $chatEndConfirmButton.off('click.domextension');\n $chatEndConfirmButton.on('click.domextension', chatEndConfirmButtonFunc);\n }\n };\n\n DomExtension.prototype.initChatFormErrorButton = function(reconnected) {\n var $chatFormErrorButton, self;\n\n self = this;\n setTimeout(function() {\n $chatFormErrorButton = $('.cx-error-button.cx-btn.cx-btn-primary.i18n');\n function chatFormErrorButtonFunc() {\n self.plugin.command('WebChatService.endChat');\n self.plugin.command('WebChat.close');\n }\n if ($chatFormErrorButton.length > 0) {\n self.setMeetId('.cx-error-button.cx-btn.cx-btn-primary.i18n', 'ipoclick-btn-' + self.chatType + '-', true);\n $chatFormErrorButton.off('click.domextension');\n if (!reconnected) {\n $chatFormErrorButton.on('click.domextension', chatFormErrorButtonFunc);\n }\n }\n }, 250);\n };\n\n DomExtension.prototype.initToasterFormPrimaryButton = function() {\n this.setMeetId('.cx-btn.cx-btn-primary', 'ipoclick-btn-' + this.chatType + '-', true);\n };\n\n DomExtension.prototype.initToasterFormDefaultButton = function() {\n this.setMeetId('.cx-btn.cx-btn-default', 'ipoclick-btn-' + this.chatType + '-', true);\n };\n\n DomExtension.prototype.initSubTitleLink = function() {\n this.setMeetId('.cx-subtitle-link', 'ipoclick-lnk-' + this.chatType + '-', true);\n };\n\n DomExtension.prototype.initUrlsInMessages = function() {\n var $urlsInMessages, $urlInMessage, $urlInMessageDataMeetId, self;\n\n self = this;\n $urlsInMessages = $('.cx-message-text').find('a');\n if ($urlsInMessages.length > 0) {\n $.each($urlsInMessages, function(index) {\n $urlInMessage = $($urlsInMessages[index]);\n $urlInMessageDataMeetId = $urlInMessage.attr('datameetid');\n if ($urlInMessage.length > 0 && $urlInMessageDataMeetId) {\n self.setDataMeetId($urlInMessage, 'ipoclick-lnk-' + self.chatType + '-', true);\n }\n });\n }\n };\n\n DomExtension.prototype.initOlsChatBody = function() {\n var self;\n\n self = this;\n this.$olsChatBody = $('.ols-contact-chat-body');\n if (window._genesys.widgets.webchat.chatButton) {\n this.$olsChatBody.html(window._genesys.widgets.webchat.chatButton.template);\n }\n this.olsChatBodyFunc = function() {\n self.plugin.command('OlsExtension.olsStartChat');\n };\n this.$olsChatBody.off('click.domextension');\n this.$olsChatBody.on('click.domextension', self.olsChatBodyFunc);\n };\n\n DomExtension.prototype.initOlsChatButton = function() {\n this.$olsChatButton = $('.cx-ols-livechat-button');\n if (this.$olsChatButton.length > 0) {\n this.setDataMeetId(this.$olsChatButton, 'ipoclick-lnk-' + this.chatType + '-start_chat' + this.meetIdStatusEnum.Offline, false);\n }\n };\n\n DomExtension.prototype.initOlsLabelTitle = function() {\n var $olsLabelTitle;\n\n $olsLabelTitle = $('.cx-ols-label-title');\n if ($olsLabelTitle.length > 0) {\n $olsLabelTitle.text(window._genesys.widgets.custom.customPlaceholders.olsLabelTitle);\n }\n };\n\n DomExtension.prototype.initOlsLabelSubTitle = function() {\n this.$olsLabelSubtitle = $('.cx-ols-label-subtitle');\n };\n\n DomExtension.prototype.initTranscript = function() {\n this.$transcript = $('.cx-transcript');\n };\n\n DomExtension.prototype.initMopinion = function() {\n this.$mopinion = $('.mopinion-survey-content .btn-open-survey.tab');\n };\n\n DomExtension.prototype.init = function(reconnected) {\n this.initCallToAction();\n this.initWidget();\n this.initChatButton();\n this.initConfirmFormCloseButton();\n this.initConfirmFormCancelButton();\n this.initChatFormSubmitButton();\n this.initChatFormCancelButton();\n this.initChatWindow();\n this.initChatWindowTitle();\n this.initChatWindowSubTitle();\n this.initSendMessageButton();\n this.initChatFormMinimizeIcon();\n this.initChatFormCloseIcon();\n this.initChatEndCancelButton();\n this.initChatEndConfirmButton();\n this.initChatFormErrorButton(reconnected);\n this.initToasterFormPrimaryButton();\n this.initToasterFormDefaultButton();\n this.initSubTitleLink();\n this.initUrlsInMessages();\n this.initOlsChatBody();\n this.initOlsChatButton();\n this.initOlsLabelTitle();\n this.initOlsLabelSubTitle();\n this.initTranscript();\n this.initMopinion();\n };\n\n DomExtension.prototype.removeClasses = function($element) {\n var self;\n\n self = this;\n $.each(self.cssStatusEnum, function(index, value) {\n $element.removeClass(value);\n });\n };\n\n DomExtension.prototype.toggleMopinion = function(toggle) {\n var self;\n\n self = this;\n this.mopinionToggler = setTimeout(\n function() {\n if (toggle) {\n self.$mopinion.attr('style', 'z-index: 0!important;');\n } else {\n self.$mopinion.removeAttr('style');\n }\n },\n 100\n );\n };\n\n DomExtension.prototype.initStatus = function(cssStatusEnumStatus, meetIdStatusEnumStatus, olsLabelSubtitle, reconnected) {\n this.init(reconnected);\n this.removeClasses(this.$widget);\n this.$widget.addClass(cssStatusEnumStatus);\n this.setDataMeetId(this.$chatButton, 'ipoclick-lnk-' + this.chatType + '-start_chat' + meetIdStatusEnumStatus, false);\n this.removeClasses(this.$olsChatButton);\n this.$olsChatButton.addClass(cssStatusEnumStatus);\n this.setDataMeetId(this.$olsChatButton, 'ipoclick-lnk-' + this.chatType + '-start_chat' + meetIdStatusEnumStatus, false);\n this.$olsLabelSubtitle.text(olsLabelSubtitle);\n };\n\n DomExtension.prototype.registerAndSubscribe = function() {\n var self = this;\n\n this.plugin.registerCommand('updateHtml',\n function(e) {\n switch (e.data.rtsStatus) {\n case 'Online':\n self.initStatus(self.cssStatusEnum.Online, self.meetIdStatusEnum.Online, window._genesys.widgets.custom.customPlaceholders.olsLabelSubtitleOnline, true);\n break;\n case 'Busy':\n self.initStatus(self.cssStatusEnum.Online, self.meetIdStatusEnum.Online, window._genesys.widgets.custom.customPlaceholders.olsLabelSubtitleOnline);\n break;\n default:\n self.$title.text(window._genesys.widgets.custom.customPlaceholders.chatTitle);\n self.initStatus(self.cssStatusEnum.Offline, self.meetIdStatusEnum.Offline, window._genesys.widgets.custom.customPlaceholders.olsLabelSubtitleOffline);\n break;\n }\n e.deferred.resolve();\n self.plugin.publish('htmlUpdated');\n }\n );\n this.plugin.registerCommand('updateConnectedAgentNames',\n function(e) {\n self.connectedAgentNames = e.data.connectedAgentNames;\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('toggleMopinion',\n function(e) {\n self.toggleMopinion(e.data.toggle);\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('scrollTranscript',\n function(e) {\n setTimeout(\n function() {\n self.$transcript.animate(\n {scrollTop: self.$transcript.prop('scrollHeight')}\n );\n },\n 1500\n );\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('removeOlsChatBody',\n function(e) {\n self.$olsChatBody.empty();\n self.$olsChatBody.off('click.domextension');\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('setChatType',\n function(e) {\n self.chatType = e.data.chatType;\n self.plugin.publish('chatTypeSet',\n {\n chatType: self.chatType\n });\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('minimize',\n function(e) {\n self.minimized = e.data.minimized;\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('disableEnableInput',\n function(e) {\n $('.cx-input').attr('disabled', e.data.disabled);\n }\n );\n this.plugin.republish('ready');\n this.plugin.ready();\n };\n return new DomExtension();\n};\n/* eslint-enable max-statements */\n","if (!window._genesys.widgets.extensions) {\n window._genesys.widgets.extensions = {};\n}\n\nwindow._genesys.widgets.extensions.RvtExtension = function($, CXBus, Common) {\n 'use strict';\n\n function RvtExtension() {\n this.plugin = CXBus.registerPlugin('RvtExtension');\n this.setRvt(this.getRvt());\n this.pollRvt();\n this.registerAndSubscribe();\n }\n\n RvtExtension.prototype.getRvt = function() {\n return $('#genesys-widgets-anti-forgery-token input[type=hidden]').val();\n };\n\n RvtExtension.prototype.setRvt = function(data) {\n $.ajaxPrefilter(function(options, originalOptions, jqXHR) {\n if (options.url.indexOf('Genesys') !== -1 && options.type === 'POST') {\n jqXHR.setRequestHeader('__RequestVerificationToken', data);\n }\n });\n };\n\n RvtExtension.prototype.pollRvt = function() {\n var self;\n\n self = this;\n $.ajax({\n type: 'POST',\n url: '/sitecoreapi/spa/digest',\n data: null,\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'\n },\n dataType: 'json',\n async: true\n }).done(\n function(data) {\n self.setRvt(data);\n }).always(\n setTimeout(\n function() {\n self.pollRvt();\n },\n 60000\n )\n );\n };\n\n RvtExtension.prototype.registerAndSubscribe = function() {\n this.plugin.republish('ready');\n this.plugin.ready();\n };\n\n return new RvtExtension();\n};\n","\nif (!window._genesys.widgets.extensions) {\n window._genesys.widgets.extensions = {};\n}\n\nwindow._genesys.widgets.extensions.OlsExtension = function($, CXBus, Common) {\n 'use strict';\n\n function OlsExtension() {\n this.plugin = CXBus.registerPlugin('OlsExtension');\n this.registerAndSubscribe();\n }\n\n OlsExtension.prototype.registerAndSubscribe = function() {\n var self;\n\n self = this;\n this.plugin.registerCommand('olsStart',\n function(e) {\n if (!window._genesys.widgets.webchat.userData || !e.data.userData || !window._genesys.widgets.webchat.chatButton.template) {\n e.deferred.reject();\n }\n $.extend(window._genesys.widgets.webchat.userData, e.data.userData);\n self.plugin.publish('olsStarted');\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('olsEnd',\n function(e) {\n self.plugin.publish('olsEnded');\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('olsStartChat',\n function(e) {\n if (!window._genesys.widgets.webchat.userData || !window._genesys.widgets.webchat.form) {\n e.deferred.reject();\n }\n $.extend(window._genesys.widgets.webchat.userData, e.data.userData);\n self.plugin.publish('olsStarted');\n self.plugin.publish('olsChatStarted');\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('olsCheckStatus',\n function(e) {\n if (e.data.LiveAgentRtsSkill) {\n self.plugin.subscribe('StatusExtension.ready',\n function() {\n self.plugin.command('StatusExtension.ophalenRtsOnce',\n {\n liveAgentRtsSkill: e.data.LiveAgentRtsSkill\n })\n .done(\n function(data) {\n if (data) {\n e.deferred.resolve(data);\n self.plugin.publish('statusOnce', {statusOnce: data});\n }\n }\n );\n }\n );\n }\n }\n );\n this.plugin.subscribe('OlsExtension.ready',\n function() {\n self.plugin.command('OlsExtension.olsCheckStatus');\n }\n );\n\n this.plugin.republish('ready');\n this.plugin.ready();\n };\n return new OlsExtension();\n};\n","if (!window._genesys.widgets.extensions) {\n window._genesys.widgets.extensions = {};\n}\n\nwindow._genesys.widgets.extensions.CookieExtension = function($, CXBus, Common) {\n 'use strict';\n\n function CookieExtension() {\n this.plugin = CXBus.registerPlugin('CookieExtension');\n this.registerAndSubscribe();\n }\n\n CookieExtension.prototype.setCookie = function(name, value, days) {\n var expires, date, domain;\n\n expires = '';\n if (days) {\n date = new Date();\n date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n expires = '; expires=' + date.toUTCString();\n }\n document.cookie = name + '=' + (value || '') + expires + '; path=/;domain=' + document.domain.match(/[.][^.]*.[^.]*$/)[0] + ';';\n };\n\n CookieExtension.prototype.getCookie = function(name) {\n var cname, decodedCookie, ca, i, c;\n\n cname = name + '=';\n decodedCookie = decodeURIComponent(document.cookie);\n ca = decodedCookie.split(';');\n for (i = 0; i < ca.length; i++) {\n c = ca[i];\n while (c.charAt(0) === ' ') {\n c = c.substring(1);\n }\n if (c.indexOf(cname) === 0) {\n return c.substring(cname.length, c.length);\n }\n }\n return '';\n };\n\n CookieExtension.prototype.registerAndSubscribe = function() {\n var self;\n\n self = this;\n this.plugin.registerCommand('setCookie',\n function(e) {\n self.setCookie(e.data.name, e.data.value, e.data.days);\n e.deferred.resolve(e.data.value);\n self.plugin.publish('CookieSet');\n }\n );\n this.plugin.registerCommand('getCookie',\n function(e) {\n e.deferred.resolve(self.getCookie(e.data.name));\n self.plugin.publish('gotCookie');\n }\n );\n this.plugin.republish('ready');\n this.plugin.ready();\n };\n\n return new CookieExtension();\n};\n","/* eslint-disable no-undef */\n/* eslint-disable max-len */\n/* eslint-disable no-plusplus */\n/* eslint-disable id-length */\n/* eslint-disable no-magic-numbers */\n/* eslint-disable consistent-return */\n/* eslint-disable max-len */\n/* eslint-disable max-statements */\nif (!window._genesys.widgets.extensions) {\n window._genesys.widgets.extensions = {};\n}\n\nwindow._genesys.widgets.extensions.FunctionalExtension = function($, CXBus, Common) {\n 'use strict';\n\n function FunctionalExtension() {\n self.agentNames = [];\n this.busyInjectMessageCommandData = false;\n this.chatBotTwentyFourSeven = false;\n this.chatBotNickname = null;\n this.chatBotNicknameCookieName = '_genesys.widgets.custom.chatBotNickname';\n this.chatTypeCookieName = '_genesys.widgets.custom.chatTypeCookieName';\n this.chatSession = '_genesys.widgets.webchat.state.session';\n this.genesysId = 'GenesysID';\n this.chatType = 'ChatType';\n this.chatSkill = 'ChatSkill';\n this.bekendeGebruiker = 'BekendeGebruiker';\n this.activity = null;\n this.plugin = CXBus.registerPlugin('FunctionalExtension');\n this.rtsStatus = null;\n this.webchatClosed = false;\n this.webChatServiceRestored = false;\n this.registerAndSubscribe();\n this.setUserData();\n this.startPolling(false);\n }\n\n FunctionalExtension.prototype.rtsStatusEnum = {\n Online: 'Online',\n Busy: 'Busy',\n Offline: 'Offline'\n };\n\n FunctionalExtension.prototype.chatTypeEnum = {\n LiveChat: 'livechat',\n ChatBot: 'chatbot'\n };\n\n FunctionalExtension.prototype.setMopinionData = function(key, value) {\n if (key && value) {\n if (window) {\n window[key] = value;\n }\n }\n };\n\n FunctionalExtension.prototype.deleteMopinionData = function(key) {\n if (key) {\n if (window) {\n delete window[key];\n }\n }\n };\n\n FunctionalExtension.prototype.setGenesysId = function() {\n var self = this;\n\n this.plugin.command('CookieExtension.getCookie',\n {\n name: self.chatSession\n })\n .done(\n function(data) {\n if (data) {\n self.setMopinionData(self.genesysId, data);\n }\n }\n );\n };\n\n FunctionalExtension.prototype.resetUserData = function() {\n if (!window._genesys.widgets.webchat.userData) {\n return;\n }\n if (typeof window._genesys.widgets.webchat.userData.rouActiviteit !== 'undefined' && window._genesys.widgets.webchat.userData.rouActiviteit !== null) {\n window._genesys.widgets.webchat.userData.rouActiviteit = null;\n }\n if (typeof window._genesys.widgets.webchat.userData.rouLOB !== 'undefined' && window._genesys.widgets.webchat.userData.rouLOB !== null) {\n window._genesys.widgets.webchat.userData.rouLOB = null;\n }\n if (typeof window._genesys.widgets.webchat.userData.rouLabel !== 'undefined' && window._genesys.widgets.webchat.userData.rouLabel !== null) {\n window._genesys.widgets.webchat.userData.rouLabel = null;\n }\n if (typeof window._genesys.widgets.webchat.userData.LiveAgentRtsSkill !== 'undefined' && window._genesys.widgets.webchat.userData.LiveAgentRtsSkill !== null) {\n window._genesys.widgets.webchat.userData.LiveAgentRtsSkill = null;\n }\n };\n\n FunctionalExtension.prototype.setUserData = function() {\n var self = this;\n\n if (typeof window._genesys.widgets.webchat.userData !== 'undefined') {\n if (typeof window._genesys.widgets.webchat.userData.TwentyFourSeven === 'undefined') {\n this.chatBotTwentyFourSeven = false;\n } else {\n this.chatBotTwentyFourSeven = window._genesys.widgets.webchat.userData.TwentyFourSeven;\n }\n if (typeof window._genesys.widgets.webchat.userData.Nickname === 'undefined') {\n this.chatBotNickname = null;\n } else {\n this.chatBotNickname = window._genesys.widgets.webchat.userData.Nickname;\n }\n if (this.chatBotNickname) {\n this.plugin.command('CookieExtension.setCookie',\n {\n name: self.chatBotNicknameCookieName,\n value: self.chatBotNickname\n }\n );\n }\n if (typeof window._genesys.widgets.webchat.userData.rouActiviteit !== 'undefined' && window._genesys.widgets.webchat.userData.rouActiviteit !== null) {\n this.setMopinionData(this.chatSkill, window._genesys.widgets.webchat.userData.rouActiviteit.toLowerCase());\n }\n if (typeof window._genesys.widgets.webchat.userData.LiveAgentRtsSkill !== 'undefined' && window._genesys.widgets.webchat.userData.LiveAgentRtsSkill !== null) {\n this.activity = window._genesys.widgets.webchat.userData.LiveAgentRtsSkill;\n } else {\n this.activity = null;\n }\n if (typeof window._genesys.widgets.webchat.userData.SAP_BP_ID === 'undefined' || window._genesys.widgets.webchat.userData.SAP_BP_ID === null) {\n this.setMopinionData(this.bekendeGebruiker, 'nee');\n } else {\n this.setMopinionData(this.bekendeGebruiker, 'ja');\n }\n }\n };\n\n FunctionalExtension.prototype.setTypeOfChat = function() {\n var self = this;\n\n if (this.chatBotNickname) {\n this.plugin.command('DomExtension.setChatType', {chatType: self.chatTypeEnum.ChatBot});\n } else {\n this.plugin.command('DomExtension.setChatType', {chatType: self.chatTypeEnum.LiveChat});\n }\n };\n\n FunctionalExtension.prototype.setChatTypeCookie = function() {\n var chatTypeCookieValue = '',\n self = this;\n\n if (window._genesys.widgets.webchat.dataURL) {\n if (window._genesys.widgets.webchat.dataURL.indexOf('bot') > 0) {\n chatTypeCookieValue = 'bot';\n } else if (window._genesys.widgets.webchat.dataURL.indexOf('livechat') > 0) {\n chatTypeCookieValue = 'livechat';\n }\n }\n this.plugin.command('CookieExtension.setCookie',\n {\n name: self.chatTypeCookieName,\n value: chatTypeCookieValue\n });\n if (chatTypeCookieValue === 'livechat') {\n return true;\n }\n };\n\n FunctionalExtension.prototype.injectBusyMessageBasedOnCookie = function() {\n var self = this;\n\n this.plugin.command('CookieExtension.getCookie',\n {\n name: self.chatTypeCookieName\n })\n .done(\n function(data) {\n if (data === 'livechat') {\n self.injectBusyMessage();\n }\n }\n );\n };\n\n FunctionalExtension.prototype.injectBusyMessage = function() {\n var self = this;\n\n if ($.isEmptyObject(self.agentNames)) {\n self.startPolling(true);\n self.plugin.subscribe('StatusExtension.inChatStatusUpdated',\n function(e) {\n switch (e.data.rtsStatus) {\n case self.rtsStatusEnum.Busy:\n self.plugin.unsubscribe('StatusExtension.inChatStatusUpdated');\n self.plugin.command('StatusExtension.stopPolling');\n if (!self.busyMessageInjected) {\n self.injectMessages(window._genesys.widgets.custom.busyInjectMessageCommandData);\n self.busyMessageInjected = true;\n }\n break;\n case self.rtsStatusEnum.Online:\n self.plugin.unsubscribe('StatusExtension.inChatStatusUpdated');\n self.plugin.command('StatusExtension.stopPolling');\n break;\n default:\n break;\n }\n }\n );\n }\n };\n\n FunctionalExtension.prototype.startPolling = function(boolInChatStatusPublishing) {\n var self = this;\n\n this.plugin.command('StatusExtension.startPolling',\n {\n activity: self.activity,\n inChatStatusPublishing: boolInChatStatusPublishing,\n chatBotTwentyFourSeven: self.chatBotTwentyFourSeven\n });\n };\n\n FunctionalExtension.prototype.getConnectedAgentNames = function(agents) {\n var agentNames;\n\n if ($.isEmptyObject(agents)) {\n return [];\n }\n agentNames = [];\n $.each(agents, function(agentIndex, agentValue) {\n if (agents[agentIndex].connected) {\n if ($.inArray(agents[agentIndex].name, agentNames) === -1) {\n agentNames.push(agents[agentIndex].name);\n }\n }\n });\n return agentNames;\n };\n\n FunctionalExtension.prototype.setNickName = function() {\n if (window._genesys.widgets.webchat.form) {\n $.each(window._genesys.widgets.webchat.form.inputs, function(inputIndex, inputValue) {\n var array, str, cryptoObj, uint32Array, i;\n\n if (window._genesys.widgets.webchat.form.inputs[inputIndex].id === 'cx_webchat_form_nickname' && typeof window._genesys.widgets.webchat.form.inputs[inputIndex].value === 'undefined') {\n cryptoObj = window.crypto || window.msCrypto;\n /* eslint-env es6 */\n uint32Array = new Uint32Array(8);\n array = cryptoObj.getRandomValues(uint32Array);\n str = '';\n for (i = 0; i < array.length; i++) {\n str = str + array[i].toString(16).slice(-4);\n }\n window._genesys.widgets.webchat.form.inputs[inputIndex].value = 'Bezoeker_' + str;\n }\n });\n }\n };\n\n FunctionalExtension.prototype.injectMessages = function(messagesToInject) {\n var self = this;\n\n if (messagesToInject) {\n messagesToInject.forEach(\n function(messageToInject) {\n self.plugin.command('WebChat.injectMessage', messageToInject);\n }\n );\n }\n };\n\n FunctionalExtension.prototype.updateHtml = function(boolInitLanguage) {\n var self = this;\n\n this.plugin.command('StatusExtension.getStatus')\n .done(\n function(data) {\n self.plugin.command('DomExtension.updateHtml', {rtsStatus: data})\n .done(\n function() {\n if (boolInitLanguage) {\n self.plugin.command('App.setLanguage', {lang: window._genesys.widgets.main.lang});\n }\n }\n );\n }\n );\n };\n\n FunctionalExtension.prototype.setChatTypeBasedOnChatBotNickname = function(agentNames) {\n var self = this;\n\n if (this.chatBotNickname) {\n this.setChatTypeBasedOnComparisonValue($.inArray(self.chatBotNickname, agentNames));\n } else {\n this.plugin.command('CookieExtension.getCookie',\n {\n name: self.chatBotNicknameCookieName\n })\n .done(\n function(data) {\n self.setChatTypeBasedOnComparisonValue($.inArray(data, agentNames));\n }\n );\n }\n };\n\n FunctionalExtension.prototype.setChatTypeBasedOnComparisonValue = function(comparisonIndexValue) {\n var self = this;\n\n if (comparisonIndexValue === -1) {\n this.plugin.command('DomExtension.setChatType', {chatType: self.chatTypeEnum.LiveChat});\n } else {\n this.plugin.command('DomExtension.setChatType', {chatType: self.chatTypeEnum.ChatBot});\n }\n };\n\n FunctionalExtension.prototype.registerAndSubscribe = function() {\n var self = this;\n\n this.plugin.before('WebChat.open',\n function(data) {\n self.webchatClosed = false;\n if (!data.restoring) {\n self.setNickName();\n data.userData = window._genesys.widgets.webchat.userData;\n data.form = {autoSubmit: true};\n data.formJSON = window._genesys.widgets.webchat.form;\n if (self.rtsStatus) {\n if (self.rtsStatus !== self.rtsStatusEnum.Offline) {\n return data;\n }\n }\n return false;\n }\n return data;\n }\n );\n this.plugin.subscribe('DomExtension.ready',\n function() {\n self.setTypeOfChat();\n }\n );\n this.plugin.subscribe('DomExtension.chatTypeSet',\n function(e) {\n self.setMopinionData(self.chatType, e.data.chatType);\n self.updateHtml(false);\n }\n );\n this.plugin.subscribe('StatusExtension.statusUpdated',\n function(e) {\n self.rtsStatus = e.data.rtsStatus;\n self.plugin.command('DomExtension.updateHtml', {rtsStatus: self.rtsStatus});\n }\n );\n this.plugin.subscribe('WebChat.chatButtonDisplayed',\n function() {\n self.updateHtml(false);\n }\n );\n this.plugin.subscribe('WebChat.opened',\n function() {\n self.plugin.command('StatusExtension.stopPolling');\n self.plugin.command('DomExtension.toggleMopinion', {toggle: true});\n if (self.webChatServiceRestored) {\n self.injectMessages(window._genesys.widgets.custom.restoredInjectMessageCommandData);\n self.injectBusyMessageBasedOnCookie();\n self.webChatServiceRestored = false;\n } else if (self.setChatTypeCookie()) {\n self.injectBusyMessage();\n }\n self.updateHtml(false);\n }\n );\n this.plugin.subscribe('WebChat.messageAdded',\n function() {\n self.updateHtml(false);\n }\n );\n this.plugin.subscribe('WebChatService.clientConnected',\n function() {\n self.plugin.command('DomExtension.disableEnableInput', {disabled: true});\n if (!self.webChatServiceRestored) {\n self.injectMessages(window._genesys.widgets.custom.welcomeInjectMessageCommandData);\n }\n }\n );\n this.plugin.subscribe('WebChatService.started',\n function() {\n self.setGenesysId();\n self.webChatServiceRestored = true;\n }\n );\n this.plugin.subscribe('WebChatService.restored',\n function() {\n self.setGenesysId();\n self.webChatServiceRestored = true;\n }\n );\n this.plugin.subscribe('WebChatService.restoreTimeout',\n function() {\n self.updateHtml(false);\n }\n );\n this.plugin.subscribe('WebChatService.agentConnected',\n function(e) {\n self.agentNames = self.getConnectedAgentNames(e.data.agents);\n self.plugin.command('DomExtension.updateConnectedAgentNames', {connectedAgentNames: self.agentNames});\n self.plugin.command('DomExtension.disableEnableInput', {disabled: false});\n self.setChatTypeBasedOnChatBotNickname(self.agentNames);\n self.plugin.command('StatusExtension.stopPolling');\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Online});\n }\n );\n this.plugin.subscribe('WebChatService.agentDisconnected',\n function(e) {\n self.agentNames = self.getConnectedAgentNames(e.data.agents);\n self.plugin.command('DomExtension.updateConnectedAgentNames', {connectedAgentNames: self.agentNames});\n if ($.isEmptyObject(self.agentNames)) {\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Offline});\n self.updateHtml(false);\n }\n }\n );\n this.plugin.subscribe('WebChat.minimized',\n function() {\n self.plugin.command('DomExtension.minimize', {minimized: true});\n self.updateHtml(false);\n self.plugin.command('DomExtension.toggleMopinion', {toggle: false});\n }\n );\n this.plugin.subscribe('WebChat.unminimized',\n function() {\n self.plugin.command('DomExtension.minimized', {minimized: false});\n self.updateHtml(false);\n self.plugin.command('DomExtension.toggleMopinion', {toggle: true});\n }\n );\n this.plugin.before('WebChat.close',\n function(data) {\n self.webchatClosed = true;\n return data;\n }\n );\n this.plugin.subscribe('WebChat.closed',\n function() {\n self.deleteMopinionData(self.genesysId);\n self.deleteMopinionData(self.chatType);\n self.deleteMopinionData(self.chatSkill);\n self.deleteMopinionData(self.bekendeGebruiker);\n self.setTypeOfChat();\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Offline});\n self.updateHtml(false);\n self.plugin.command('DomExtension.toggleMopinion', {toggle: false});\n self.setUserData();\n self.startPolling(false);\n }\n );\n this.plugin.subscribe('WebChat.completed',\n function() {\n if (!self.webchatClosed) {\n self.injectMessages(window._genesys.widgets.custom.mopinionInjectMessageCommandData);\n if (Pastease !== 'undefined') {\n if (typeof Pastease.forceParse === 'function') {\n Pastease.forceParse();\n }\n }\n }\n self.plugin.command('DomExtension.scrollTranscript');\n // eslint-disable-next-line max-len\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Offline});\n self.updateHtml(true);\n }\n );\n this.plugin.subscribe('WebChatService.error',\n function() {\n self.plugin.command('StatusExtension.stopPolling');\n // eslint-disable-next-line max-len\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Offline});\n self.updateHtml(true);\n }\n );\n this.plugin.subscribe('WebChatService.disconnected',\n function() {\n // eslint-disable-next-line max-len\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Offline});\n self.updateHtml(true);\n }\n );\n this.plugin.subscribe('WebChatService.reconnected',\n function() {\n self.plugin.command('StatusExtension.updateStatus', {rtsStatus: self.rtsStatusEnum.Online});\n }\n );\n this.plugin.subscribe('Toaster.opened',\n function() {\n self.updateHtml(false);\n self.plugin.command('DomExtension.toggleMopinion', {toggle: true});\n }\n );\n this.plugin.subscribe('Toaster.closed',\n function() {\n self.updateHtml(true);\n self.plugin.command('DomExtension.toggleMopinion', {toggle: false});\n }\n );\n this.plugin.subscribe('OlsExtension.olsStarted',\n function() {\n self.setUserData();\n self.updateHtml(false);\n self.startPolling(false);\n }\n );\n this.plugin.subscribe('OlsExtension.olsEnded',\n function() {\n self.resetUserData();\n self.plugin.command('WebChatService.endChat');\n self.plugin.command('WebChat.close');\n self.plugin.command('StatusExtension.stopPolling');\n self.plugin.command('DomExtension.removeOlsChatBody');\n }\n );\n this.plugin.subscribe('OlsExtension.olsChatStarted',\n function() {\n self.plugin.command('StatusExtension.getStatusOnce')\n .done(\n function(data) {\n if (data) {\n self.rtsStatus = data;\n }\n self.plugin.command('WebChat.open');\n }\n );\n }\n );\n this.plugin.republish('ready');\n this.plugin.ready();\n };\n\n return new FunctionalExtension();\n};\n","if (!window._genesys.widgets.extensions) {\n window._genesys.widgets.extensions = {};\n}\n\n/* eslint-disable max-statements */\nwindow._genesys.widgets.extensions.StatusExtension = function($, CXBus, Common) {\n 'use strict';\n\n function StatusExtension() {\n this.chatBotTwentyFourSeven = false;\n this.inChatStatusPublishing = false;\n this.ophalenRtsJqxhr = null;\n this.plugin = CXBus.registerPlugin('StatusExtension');\n this.pollOphalenRts = null;\n this.rtsStatus = null;\n this.timeOut = 10000;\n this.registerAndSubscribe();\n }\n\n StatusExtension.prototype.rtsStatusEnum = {\n Online: 'Online',\n Busy: 'Busy',\n Offline: 'Offline'\n };\n\n StatusExtension.prototype.startPolling = function(activity, chatBotTwentyFourSeven) {\n this.rtsStatus = null;\n if (activity && (!chatBotTwentyFourSeven || this.inChatStatusPublishing)) {\n this.ophalenRts(activity);\n }\n if (chatBotTwentyFourSeven) {\n this.publishStatus(this.rtsStatusEnum.Online);\n }\n };\n\n StatusExtension.prototype.stopPolling = function() {\n this.stopPollingOphalenRts();\n this.inChatStatusPublishing = false;\n this.plugin.publish('statusPollingStopped');\n };\n\n StatusExtension.prototype.stopPollingOphalenRts = function() {\n var self = this;\n\n if (this.ophalenRtsJqxhr) {\n this.ophalenRtsJqxhr.abort();\n this.ophalenRtsJqxhr = null;\n }\n if (this.pollOphalenRts) {\n clearTimeout(self.pollOphalenRts);\n this.pollOphalenRts = null;\n }\n this.plugin.publish('pollingOphalenRtsStopped');\n };\n\n StatusExtension.prototype.setPollOphalenRts = function(activity) {\n var self = this;\n\n this.pollOphalenRts = setTimeout(\n function() {\n self.ophalenRts(activity);\n },\n self.timeOut\n );\n this.plugin.publish('pollOphalenRts');\n };\n\n StatusExtension.prototype.ophalenRts = function(activity) {\n var self = this;\n\n if (typeof activity === 'undefined' || activity === null) {\n this.publishStatus(self.rtsStatusEnum.Offline);\n } else {\n this.ophalenRtsJqxhr = $.ajax({\n type: 'POST',\n url: '/ApiProxy/GenesysRTS/OphalenRTS',\n data: JSON.stringify({activity: activity}),\n headers: {\n 'Content-Type': 'application/json;charset=UTF-8'\n },\n dataType: 'json'\n });\n this.ophalenRtsJqxhr.done(\n function(data) {\n self.publishStatus(self.getRtsStatus(data));\n self.setPollOphalenRts(activity);\n }\n );\n this.ophalenRtsJqxhr.fail(\n function() {\n self.publishStatus(self.rtsStatusEnum.Offline);\n self.setPollOphalenRts(activity);\n }\n );\n this.plugin.publish('statusPollingStarted');\n }\n };\n\n StatusExtension.prototype.ophalenRtsOnce = function(activity) {\n var self = this;\n\n if (typeof activity === 'undefined' || activity === null) {\n this.publishStatus(self.rtsStatusEnum.Offline);\n } else {\n $.ajax({\n type: 'POST',\n url: '/ApiProxy/GenesysRTS/OphalenRTS',\n data: JSON.stringify({activity: activity}),\n headers: {\n 'Content-Type': 'application/json;charset=UTF-8'\n },\n dataType: 'json'\n })\n .done(\n function(data) {\n self.rtsStatusOnce = self.getRtsStatus(data);\n self.rtsStatus = self.rtsStatusOnce;\n }\n )\n .fail(\n function() {\n self.rtsStatusOnce = self.rtsStatusEnum.Offline;\n }\n );\n }\n };\n\n StatusExtension.prototype.publishStatus = function(rtsStatus) {\n var self = this;\n\n if (rtsStatus !== this.rtsStatus) {\n if (this.inChatStatusPublishing) {\n this.plugin.publish('inChatStatusUpdated',\n {\n rtsStatus: rtsStatus\n }\n );\n } else {\n this.rtsStatus = rtsStatus;\n this.plugin.publish('statusUpdated',\n {\n rtsStatus: self.rtsStatus\n }\n );\n }\n }\n };\n\n StatusExtension.prototype.getRtsStatus = function(data) {\n var groupStatus;\n\n groupStatus = '_AM_CTS_GroupStatus|CurrentMargin|chat';\n\n if (typeof data === 'undefined' || data === null) {\n return this.rtsStatusEnum.Offline;\n }\n\n if (this.getRtsStats('_AM_CN_LoggedInChat', data.stats) <= 0) {\n return this.rtsStatusEnum.Offline;\n } else if (this.getRtsStats(groupStatus, data.stats) <= 0) {\n return this.rtsStatusEnum.Busy;\n } else if (this.getRtsStats(groupStatus, data.stats) > 0) {\n return this.rtsStatusEnum.Online;\n }\n return this.rtsStatusEnum.Offline;\n };\n\n StatusExtension.prototype.getRtsStats = function(nameKey, obj) {\n var res;\n\n if (typeof obj === 'undefined' || obj === null) {\n return false;\n }\n\n if (obj.hasOwnProperty(nameKey)) {\n return obj[nameKey];\n }\n res = Object.keys(obj).filter(function(k) {\n return (k.toLowerCase().indexOf(nameKey.toLowerCase()) > -1) || (nameKey.toLowerCase().indexOf(k.toLowerCase()) > -1);\n });\n if (res) {\n return obj[res];\n }\n return false;\n };\n\n StatusExtension.prototype.registerAndSubscribe = function() {\n var self;\n\n self = this;\n this.plugin.registerCommand('startPolling',\n function(e) {\n self.inChatStatusPublishing = e.data.inChatStatusPublishing;\n self.startPolling(e.data.activity, e.data.chatBotTwentyFourSeven);\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('stopPolling',\n function(e) {\n self.stopPolling();\n e.deferred.resolve();\n }\n );\n this.plugin.registerCommand('ophalenRtsOnce',\n function(e) {\n self.ophalenRtsOnce(e.data.liveAgentRtsSkill);\n self.stopPolling();\n e.deferred.resolve(self.rtsStatusOnce);\n }\n );\n this.plugin.registerCommand('getStatus',\n function(e) {\n e.deferred.resolve(self.rtsStatus);\n }\n );\n this.plugin.registerCommand('getStatusOnce',\n function(e) {\n e.deferred.resolve(self.rtsStatusOnce);\n }\n );\n this.plugin.registerCommand('updateStatus',\n function(e) {\n self.publishStatus(e.data.rtsStatus);\n e.deferred.resolve();\n }\n );\n this.plugin.republish('ready');\n this.plugin.ready();\n };\n\n return new StatusExtension();\n};\n/* eslint-enable max-statements */\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// Sequence depending\n\n// Sequence indifferent\nrequire('../library/legacy/genesys/001_cookieextension.js');\nrequire('../library/legacy/genesys/002_rvtextension.js');\nrequire('../library/legacy/genesys/003_statusextension.js');\nrequire('../library/legacy/genesys/004_functionalextension.js');\nrequire('../library/legacy/genesys/005_domextension.js');\nrequire('../library/legacy/genesys/006_olsextension.js');\n"],"names":["window","_genesys","widgets","extensions","DomExtension","$","CXBus","Common","this","chatType","connectedAgentNames","minimized","mopinionToggler","plugin","registerPlugin","init","registerAndSubscribe","prototype","cssStatusEnum","Online","Offline","cssChatTypeEnum","LiveChat","ChatBot","meetIdStatusEnum","chatTypeEnum","Chatbot","setMeetId","query","text","addText","$query","length","setDataMeetId","dataMeetId","removeAttr","replace","toLowerCase","attr","initCallToAction","self","$callToAction","on","e","preventDefault","command","initWidget","$widget","first","switchChatType","chatTypeToAdd","chatTypeToRemove","removeClass","addClass","initChatButton","$chatButton","initConfirmFormCloseButton","initConfirmFormCancelButton","initChatFormSubmitButton","initChatFormCancelButton","initChatWindow","rouActiviteit","webchat","userData","initChatWindowTitle","$title","join","initChatWindowSubTitle","$subtitle","html","custom","subtitleUrlString","initSendMessageButton","$sendMessageButton","prop","initChatFormMinimizeIcon","chatFormMinimizeMeetText","initChatFormCloseIcon","$chatFormCloseIcon","off","initChatEndCancelButton","initChatEndConfirmButton","$chatEndConfirmButton","initChatFormErrorButton","reconnected","$chatFormErrorButton","setTimeout","initToasterFormPrimaryButton","initToasterFormDefaultButton","initSubTitleLink","initUrlsInMessages","$urlsInMessages","$urlInMessage","$urlInMessageDataMeetId","find","each","index","initOlsChatBody","$olsChatBody","chatButton","template","olsChatBodyFunc","initOlsChatButton","$olsChatButton","initOlsLabelTitle","$olsLabelTitle","customPlaceholders","olsLabelTitle","initOlsLabelSubTitle","$olsLabelSubtitle","initTranscript","$transcript","initMopinion","$mopinion","removeClasses","$element","value","toggleMopinion","toggle","initStatus","cssStatusEnumStatus","meetIdStatusEnumStatus","olsLabelSubtitle","registerCommand","data","rtsStatus","olsLabelSubtitleOnline","chatTitle","olsLabelSubtitleOffline","deferred","resolve","publish","animate","scrollTop","empty","disabled","republish","ready","RvtExtension","setRvt","getRvt","pollRvt","val","ajaxPrefilter","options","originalOptions","jqXHR","url","indexOf","type","setRequestHeader","ajax","headers","dataType","async","done","always","OlsExtension","reject","extend","form","LiveAgentRtsSkill","subscribe","liveAgentRtsSkill","statusOnce","CookieExtension","setCookie","name","days","expires","date","Date","setTime","getTime","toUTCString","document","cookie","domain","match","getCookie","cname","ca","i","c","decodeURIComponent","split","charAt","substring","FunctionalExtension","agentNames","busyInjectMessageCommandData","chatBotTwentyFourSeven","chatBotNickname","chatBotNicknameCookieName","chatTypeCookieName","chatSession","genesysId","chatSkill","bekendeGebruiker","activity","webchatClosed","webChatServiceRestored","setUserData","startPolling","rtsStatusEnum","Busy","setMopinionData","key","deleteMopinionData","setGenesysId","resetUserData","rouLOB","rouLabel","TwentyFourSeven","Nickname","SAP_BP_ID","setTypeOfChat","setChatTypeCookie","chatTypeCookieValue","dataURL","injectBusyMessageBasedOnCookie","injectBusyMessage","isEmptyObject","unsubscribe","busyMessageInjected","injectMessages","boolInChatStatusPublishing","inChatStatusPublishing","getConnectedAgentNames","agents","agentIndex","agentValue","connected","inArray","push","setNickName","inputs","inputIndex","inputValue","array","str","cryptoObj","uint32Array","id","crypto","msCrypto","Uint32Array","getRandomValues","toString","slice","messagesToInject","forEach","messageToInject","updateHtml","boolInitLanguage","lang","main","setChatTypeBasedOnChatBotNickname","setChatTypeBasedOnComparisonValue","comparisonIndexValue","before","restoring","autoSubmit","formJSON","restoredInjectMessageCommandData","welcomeInjectMessageCommandData","mopinionInjectMessageCommandData","Pastease","forceParse","StatusExtension","ophalenRtsJqxhr","pollOphalenRts","timeOut","ophalenRts","publishStatus","stopPolling","stopPollingOphalenRts","abort","clearTimeout","setPollOphalenRts","JSON","stringify","getRtsStatus","fail","ophalenRtsOnce","rtsStatusOnce","groupStatus","getRtsStats","stats","nameKey","obj","res","hasOwnProperty","Object","keys","filter","k","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__"],"sourceRoot":""}