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 _0xe202=['remove','emit','removeListener','length','chatWebsite:','./chatWebsite.events','save'];(function(_0x56bb85,_0x5a8b4a){var _0x4e5b1d=function(_0x441bc0){while(--_0x441bc0){_0x56bb85['push'](_0x56bb85['shift']());}};_0x4e5b1d(++_0x5a8b4a);}(_0xe202,0x83));var _0x2e20=function(_0x40ef24,_0x4e9c7e){_0x40ef24=_0x40ef24-0x0;var _0x4168db=_0xe202[_0x40ef24];return _0x4168db;};'use strict';var ChatWebsiteEvents=require(_0x2e20('0x0'));var events=[_0x2e20('0x1'),_0x2e20('0x2'),'update'];function createListener(_0x5e26aa,_0x245a11){return function(_0x3e493c){_0x245a11[_0x2e20('0x3')](_0x5e26aa,_0x3e493c);};}function removeListener(_0x7f6151,_0x16b7bf){return function(){ChatWebsiteEvents[_0x2e20('0x4')](_0x7f6151,_0x16b7bf);};}exports['register']=function(_0x330138){for(var _0x5d0b4b=0x0,_0xbfeb81=events[_0x2e20('0x5')];_0x5d0b4b<_0xbfeb81;_0x5d0b4b++){var _0xf106d7=events[_0x5d0b4b];var _0xd6a883=createListener(_0x2e20('0x6')+_0xf106d7,_0x330138);ChatWebsiteEvents['on'](_0xf106d7,_0xd6a883);}};