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 _0x978c=['emit','removeListener','length','./chatWebsite.events','save','remove','update'];(function(_0x36cb22,_0x340b23){var _0x5f8af7=function(_0x5d395f){while(--_0x5d395f){_0x36cb22['push'](_0x36cb22['shift']());}};_0x5f8af7(++_0x340b23);}(_0x978c,0x88));var _0xc978=function(_0x164eca,_0x555e28){_0x164eca=_0x164eca-0x0;var _0x2ce562=_0x978c[_0x164eca];return _0x2ce562;};'use strict';var ChatWebsiteEvents=require(_0xc978('0x0'));var events=[_0xc978('0x1'),_0xc978('0x2'),_0xc978('0x3')];function createListener(_0x3181a7,_0x3d75e4){return function(_0x41a6fc){_0x3d75e4[_0xc978('0x4')](_0x3181a7,_0x41a6fc);};}function removeListener(_0x5de95e,_0x21bb2d){return function(){ChatWebsiteEvents[_0xc978('0x5')](_0x5de95e,_0x21bb2d);};}exports['register']=function(_0x9ac4e1){for(var _0xfdd669=0x0,_0x1ba9ba=events[_0xc978('0x6')];_0xfdd669<_0x1ba9ba;_0xfdd669++){var _0x5d56c7=events[_0xfdd669];var _0x1874a1=createListener('chatWebsite:'+_0x5d56c7,_0x9ac4e1);ChatWebsiteEvents['on'](_0x5d56c7,_0x1874a1);}};