1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xc447=['register','length','./chatWebsite.events','save','remove','update','emit'];(function(_0x100d76,_0x351c25){var _0x31fbcf=function(_0x481293){while(--_0x481293){_0x100d76['push'](_0x100d76['shift']());}};_0x31fbcf(++_0x351c25);}(_0xc447,0x8e));var _0x7c44=function(_0x16494d,_0x3cbf7a){_0x16494d=_0x16494d-0x0;var _0x28a859=_0xc447[_0x16494d];return _0x28a859;};'use strict';var ChatWebsiteEvents=require(_0x7c44('0x0'));var events=[_0x7c44('0x1'),_0x7c44('0x2'),_0x7c44('0x3')];function createListener(_0x48726e,_0x342054){return function(_0x352101){_0x342054[_0x7c44('0x4')](_0x48726e,_0x352101);};}function removeListener(_0x52741a,_0x14bcb2){return function(){ChatWebsiteEvents['removeListener'](_0x52741a,_0x14bcb2);};}exports[_0x7c44('0x5')]=function(_0x208d37){for(var _0x3f3972=0x0,_0x2a3c79=events[_0x7c44('0x6')];_0x3f3972<_0x2a3c79;_0x3f3972++){var _0x2d863a=events[_0x3f3972];var _0x17e1d3=createListener('chatWebsite:'+_0x2d863a,_0x208d37);ChatWebsiteEvents['on'](_0x2d863a,_0x17e1d3);}};