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 _0x54a9=['register','length','chatWebsite:','./chatWebsite.events','save','remove','update','emit','removeListener'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x54a9,0x1c5));var _0x954a=function(_0x1febe9,_0x52b65a){_0x1febe9=_0x1febe9-0x0;var _0x24e1de=_0x54a9[_0x1febe9];return _0x24e1de;};'use strict';var ChatWebsiteEvents=require(_0x954a('0x0'));var events=[_0x954a('0x1'),_0x954a('0x2'),_0x954a('0x3')];function createListener(_0x4852c9,_0x55b10f){return function(_0x4c05b7){_0x55b10f[_0x954a('0x4')](_0x4852c9,_0x4c05b7);};}function removeListener(_0x356121,_0x11c8b6){return function(){ChatWebsiteEvents[_0x954a('0x5')](_0x356121,_0x11c8b6);};}exports[_0x954a('0x6')]=function(_0x1bd698){for(var _0x399ec1=0x0,_0x167531=events[_0x954a('0x7')];_0x399ec1<_0x167531;_0x399ec1++){var _0x194d87=events[_0x399ec1];var _0xe5ac80=createListener(_0x954a('0x8')+_0x194d87,_0x1bd698);ChatWebsiteEvents['on'](_0x194d87,_0xe5ac80);}};