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 _0xc006=['chatWebsite:','update','removeListener','register','length'];(function(_0x5eaf09,_0x437f03){var _0x3b979a=function(_0x2ad706){while(--_0x2ad706){_0x5eaf09['push'](_0x5eaf09['shift']());}};_0x3b979a(++_0x437f03);}(_0xc006,0x119));var _0x6c00=function(_0xa72931,_0x37d87a){_0xa72931=_0xa72931-0x0;var _0x13b2f5=_0xc006[_0xa72931];return _0x13b2f5;};'use strict';var ChatWebsiteEvents=require('./chatWebsite.events');var events=['save','remove',_0x6c00('0x0')];function createListener(_0x7dc72d,_0x410b2c){return function(_0x3529d8){_0x410b2c['emit'](_0x7dc72d,_0x3529d8);};}function removeListener(_0x4e1e5a,_0x42471f){return function(){ChatWebsiteEvents[_0x6c00('0x1')](_0x4e1e5a,_0x42471f);};}exports[_0x6c00('0x2')]=function(_0x3afdbc){for(var _0xdb71f0=0x0,_0x4d1c17=events[_0x6c00('0x3')];_0xdb71f0<_0x4d1c17;_0xdb71f0++){var _0x2b5dfd=events[_0xdb71f0];var _0x5b813f=createListener(_0x6c00('0x4')+_0x2b5dfd,_0x3afdbc);ChatWebsiteEvents['on'](_0x2b5dfd,_0x5b813f);}};