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 _0x1881=['length','save','update','emit'];(function(_0x127c86,_0x55485c){var _0x1e5c3d=function(_0x3493d8){while(--_0x3493d8){_0x127c86['push'](_0x127c86['shift']());}};_0x1e5c3d(++_0x55485c);}(_0x1881,0x99));var _0x1188=function(_0x47d7ec,_0x17f197){_0x47d7ec=_0x47d7ec-0x0;var _0x98674a=_0x1881[_0x47d7ec];return _0x98674a;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0x1188('0x0'),'remove',_0x1188('0x1')];function createListener(_0x52495d,_0x9c1070){return function(_0xe820fa){_0x9c1070[_0x1188('0x2')](_0x52495d,_0xe820fa);};}function removeListener(_0x544d32,_0x4632b7){return function(){WhatsappAccountEvents['removeListener'](_0x544d32,_0x4632b7);};}exports['register']=function(_0x3eec88){for(var _0x3940a9=0x0,_0xc12e50=events[_0x1188('0x3')];_0x3940a9<_0xc12e50;_0x3940a9++){var _0x2803a5=events[_0x3940a9];var _0x42aaa2=createListener('whatsappAccount:'+_0x2803a5,_0x3eec88);WhatsappAccountEvents['on'](_0x2803a5,_0x42aaa2);}};