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 _0xd519=['remove','update','emit','register','length','./chatWebsite.events'];(function(_0x6dd5c,_0x4bfc19){var _0x5a87fa=function(_0x3b068b){while(--_0x3b068b){_0x6dd5c['push'](_0x6dd5c['shift']());}};_0x5a87fa(++_0x4bfc19);}(_0xd519,0xe9));var _0x9d51=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xd519[_0x14add3];return _0x4a174f;};'use strict';var ChatWebsiteEvents=require(_0x9d51('0x0'));var events=['save',_0x9d51('0x1'),_0x9d51('0x2')];function createListener(_0x402fb9,_0x28e951){return function(_0x184be1){_0x28e951[_0x9d51('0x3')](_0x402fb9,_0x184be1);};}function removeListener(_0x1d7583,_0x213af8){return function(){ChatWebsiteEvents['removeListener'](_0x1d7583,_0x213af8);};}exports[_0x9d51('0x4')]=function(_0x352aa4){for(var _0x40f024=0x0,_0x89fa60=events[_0x9d51('0x5')];_0x40f024<_0x89fa60;_0x40f024++){var _0x10b078=events[_0x40f024];var _0x4ff763=createListener('chatWebsite:'+_0x10b078,_0x352aa4);ChatWebsiteEvents['on'](_0x10b078,_0x4ff763);}};