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 _0x8a91=['length','chatWebsite:','./chatWebsite.events','save','remove','emit','removeListener','register'];(function(_0x5e2a72,_0x725538){var _0x401b4d=function(_0x3f9ca5){while(--_0x3f9ca5){_0x5e2a72['push'](_0x5e2a72['shift']());}};_0x401b4d(++_0x725538);}(_0x8a91,0x162));var _0x18a9=function(_0xb2c7d,_0x53439c){_0xb2c7d=_0xb2c7d-0x0;var _0x2764e2=_0x8a91[_0xb2c7d];return _0x2764e2;};'use strict';var ChatWebsiteEvents=require(_0x18a9('0x0'));var events=[_0x18a9('0x1'),_0x18a9('0x2'),'update'];function createListener(_0x1c095d,_0x1c9b60){return function(_0x2eabe6){_0x1c9b60[_0x18a9('0x3')](_0x1c095d,_0x2eabe6);};}function removeListener(_0x32cf46,_0x38f779){return function(){ChatWebsiteEvents[_0x18a9('0x4')](_0x32cf46,_0x38f779);};}exports[_0x18a9('0x5')]=function(_0x402728){for(var _0x2caf7e=0x0,_0x380cb6=events[_0x18a9('0x6')];_0x2caf7e<_0x380cb6;_0x2caf7e++){var _0x5d8a51=events[_0x2caf7e];var _0xab9525=createListener(_0x18a9('0x7')+_0x5d8a51,_0x402728);ChatWebsiteEvents['on'](_0x5d8a51,_0xab9525);}};