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 _0x06e9=['chatWebsite:','./chatWebsite.events','save','remove','emit','removeListener','length'];(function(_0x1bb9d5,_0x5030a5){var _0x1fd7c6=function(_0x4d0405){while(--_0x4d0405){_0x1bb9d5['push'](_0x1bb9d5['shift']());}};_0x1fd7c6(++_0x5030a5);}(_0x06e9,0x1e4));var _0x906e=function(_0xdc37a1,_0x53ebb9){_0xdc37a1=_0xdc37a1-0x0;var _0x99b4fe=_0x06e9[_0xdc37a1];return _0x99b4fe;};'use strict';var ChatWebsiteEvents=require(_0x906e('0x0'));var events=[_0x906e('0x1'),_0x906e('0x2'),'update'];function createListener(_0x40f400,_0x556e25){return function(_0x22dbd3){_0x556e25[_0x906e('0x3')](_0x40f400,_0x22dbd3);};}function removeListener(_0x12b4ea,_0x134e8c){return function(){ChatWebsiteEvents[_0x906e('0x4')](_0x12b4ea,_0x134e8c);};}exports['register']=function(_0x1ea7d7){for(var _0x6952ae=0x0,_0x4d4b95=events[_0x906e('0x5')];_0x6952ae<_0x4d4b95;_0x6952ae++){var _0x318faa=events[_0x6952ae];var _0x2a7a08=createListener(_0x906e('0x6')+_0x318faa,_0x1ea7d7);ChatWebsiteEvents['on'](_0x318faa,_0x2a7a08);}};