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 _0x74a5=['register','length','./whatsappAccount.events','remove','update','emit','removeListener'];(function(_0x23e7c1,_0x35110c){var _0x1add43=function(_0x238918){while(--_0x238918){_0x23e7c1['push'](_0x23e7c1['shift']());}};_0x1add43(++_0x35110c);}(_0x74a5,0x17c));var _0x574a=function(_0x520712,_0x336674){_0x520712=_0x520712-0x0;var _0xe7ab1c=_0x74a5[_0x520712];return _0xe7ab1c;};'use strict';var WhatsappAccountEvents=require(_0x574a('0x0'));var events=['save',_0x574a('0x1'),_0x574a('0x2')];function createListener(_0x43bb15,_0x319298){return function(_0x16eecc){_0x319298[_0x574a('0x3')](_0x43bb15,_0x16eecc);};}function removeListener(_0x1bc4a1,_0x27992f){return function(){WhatsappAccountEvents[_0x574a('0x4')](_0x1bc4a1,_0x27992f);};}exports[_0x574a('0x5')]=function(_0x3e99aa){for(var _0x2be7e0=0x0,_0x6d4e99=events[_0x574a('0x6')];_0x2be7e0<_0x6d4e99;_0x2be7e0++){var _0x43ed18=events[_0x2be7e0];var _0x461453=createListener('whatsappAccount:'+_0x43ed18,_0x3e99aa);WhatsappAccountEvents['on'](_0x43ed18,_0x461453);}};