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 _0x6be9=['length','chatWebsite:','save','remove','register'];(function(_0xf6e834,_0x1b8457){var _0x1ce4c8=function(_0x361787){while(--_0x361787){_0xf6e834['push'](_0xf6e834['shift']());}};_0x1ce4c8(++_0x1b8457);}(_0x6be9,0x7f));var _0x96be=function(_0x1a766a,_0x33f146){_0x1a766a=_0x1a766a-0x0;var _0x3d0a28=_0x6be9[_0x1a766a];return _0x3d0a28;};'use strict';var ChatWebsiteEvents=require('./chatWebsite.events');var events=[_0x96be('0x0'),_0x96be('0x1'),'update'];function createListener(_0x2ffb41,_0x4f4fcc){return function(_0x18f5bf){_0x4f4fcc['emit'](_0x2ffb41,_0x18f5bf);};}function removeListener(_0x30a46c,_0x16a554){return function(){ChatWebsiteEvents['removeListener'](_0x30a46c,_0x16a554);};}exports[_0x96be('0x2')]=function(_0x53908b){for(var _0x37dd70=0x0,_0x72d10c=events[_0x96be('0x3')];_0x37dd70<_0x72d10c;_0x37dd70++){var _0x561b5b=events[_0x37dd70];var _0x5705e7=createListener(_0x96be('0x4')+_0x561b5b,_0x53908b);ChatWebsiteEvents['on'](_0x561b5b,_0x5705e7);}};