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 _0x433e=['removeListener','register','chatWebsite:','./chatWebsite.events','save','remove','emit'];(function(_0x364390,_0x46b408){var _0x3cf60d=function(_0x551d05){while(--_0x551d05){_0x364390['push'](_0x364390['shift']());}};_0x3cf60d(++_0x46b408);}(_0x433e,0xf8));var _0xe433=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x433e[_0x20a584];return _0x4b41a8;};'use strict';var ChatWebsiteEvents=require(_0xe433('0x0'));var events=[_0xe433('0x1'),_0xe433('0x2'),'update'];function createListener(_0x38472e,_0x394fc1){return function(_0x166975){_0x394fc1[_0xe433('0x3')](_0x38472e,_0x166975);};}function removeListener(_0x2e996a,_0x4792af){return function(){ChatWebsiteEvents[_0xe433('0x4')](_0x2e996a,_0x4792af);};}exports[_0xe433('0x5')]=function(_0x2fadd8){for(var _0x2ab33a=0x0,_0x5e953a=events['length'];_0x2ab33a<_0x5e953a;_0x2ab33a++){var _0x49b7e2=events[_0x2ab33a];var _0x488088=createListener(_0xe433('0x6')+_0x49b7e2,_0x2fadd8);ChatWebsiteEvents['on'](_0x49b7e2,_0x488088);}};