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 _0x366c=['emit','removeListener','register','length','chatWebsite:','./chatWebsite.events','save','remove'];(function(_0x248c66,_0x3d7b1f){var _0x210ad1=function(_0x5a7ffd){while(--_0x5a7ffd){_0x248c66['push'](_0x248c66['shift']());}};_0x210ad1(++_0x3d7b1f);}(_0x366c,0x9d));var _0xc366=function(_0x37c87a,_0x3fb2a2){_0x37c87a=_0x37c87a-0x0;var _0x288005=_0x366c[_0x37c87a];return _0x288005;};'use strict';var ChatWebsiteEvents=require(_0xc366('0x0'));var events=[_0xc366('0x1'),_0xc366('0x2'),'update'];function createListener(_0x362f6f,_0x2a48bc){return function(_0x1350be){_0x2a48bc[_0xc366('0x3')](_0x362f6f,_0x1350be);};}function removeListener(_0x3756a5,_0x42a36a){return function(){ChatWebsiteEvents[_0xc366('0x4')](_0x3756a5,_0x42a36a);};}exports[_0xc366('0x5')]=function(_0x8d7838){for(var _0x4a305f=0x0,_0x5e0305=events[_0xc366('0x6')];_0x4a305f<_0x5e0305;_0x4a305f++){var _0x15e875=events[_0x4a305f];var _0x300144=createListener(_0xc366('0x7')+_0x15e875,_0x8d7838);ChatWebsiteEvents['on'](_0x15e875,_0x300144);}};