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 _0xa16c=['length','save','remove','update','removeListener','register'];(function(_0x377a6e,_0x59b99d){var _0x37f751=function(_0x2ed25c){while(--_0x2ed25c){_0x377a6e['push'](_0x377a6e['shift']());}};_0x37f751(++_0x59b99d);}(_0xa16c,0x6d));var _0xca16=function(_0x117bdd,_0x29a86e){_0x117bdd=_0x117bdd-0x0;var _0x93ed36=_0xa16c[_0x117bdd];return _0x93ed36;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0xca16('0x0'),_0xca16('0x1'),_0xca16('0x2')];function createListener(_0x1283f0,_0x1b0a68){return function(_0x624294){_0x1b0a68['emit'](_0x1283f0,_0x624294);};}function removeListener(_0x160ad7,_0x516e7d){return function(){WhatsappAccountEvents[_0xca16('0x3')](_0x160ad7,_0x516e7d);};}exports[_0xca16('0x4')]=function(_0x3ce66d){for(var _0x45036e=0x0,_0x6ce5a1=events[_0xca16('0x5')];_0x45036e<_0x6ce5a1;_0x45036e++){var _0x33f9b5=events[_0x45036e];var _0x1bace2=createListener('whatsappAccount:'+_0x33f9b5,_0x3ce66d);WhatsappAccountEvents['on'](_0x33f9b5,_0x1bace2);}};