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 _0x6edc=['remove','length','whatsappAccount:','./whatsappAccount.events','save'];(function(_0x4cba56,_0x5b2c44){var _0x3cc9f3=function(_0x5bb80a){while(--_0x5bb80a){_0x4cba56['push'](_0x4cba56['shift']());}};_0x3cc9f3(++_0x5b2c44);}(_0x6edc,0xbc));var _0xc6ed=function(_0x5b8553,_0x4c8296){_0x5b8553=_0x5b8553-0x0;var _0x49da1e=_0x6edc[_0x5b8553];return _0x49da1e;};'use strict';var WhatsappAccountEvents=require(_0xc6ed('0x0'));var events=[_0xc6ed('0x1'),_0xc6ed('0x2'),'update'];function createListener(_0x445c41,_0x11935f){return function(_0x4b5cd6){_0x11935f['emit'](_0x445c41,_0x4b5cd6);};}function removeListener(_0x1432ac,_0x3f5546){return function(){WhatsappAccountEvents['removeListener'](_0x1432ac,_0x3f5546);};}exports['register']=function(_0x4fd814){for(var _0x3209f0=0x0,_0x484243=events[_0xc6ed('0x3')];_0x3209f0<_0x484243;_0x3209f0++){var _0x20e8f9=events[_0x3209f0];var _0x3a195b=createListener(_0xc6ed('0x4')+_0x20e8f9,_0x4fd814);WhatsappAccountEvents['on'](_0x20e8f9,_0x3a195b);}};