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 _0x16eb=['update','emit','removeListener','register','length','remove'];(function(_0x25212e,_0x35c573){var _0xa65397=function(_0x351170){while(--_0x351170){_0x25212e['push'](_0x25212e['shift']());}};_0xa65397(++_0x35c573);}(_0x16eb,0x89));var _0xb16e=function(_0x353da0,_0x109fe){_0x353da0=_0x353da0-0x0;var _0x14d23f=_0x16eb[_0x353da0];return _0x14d23f;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=['save',_0xb16e('0x0'),_0xb16e('0x1')];function createListener(_0x303666,_0x448a18){return function(_0x5e1a77){_0x448a18[_0xb16e('0x2')](_0x303666,_0x5e1a77);};}function removeListener(_0x297bfb,_0x210640){return function(){WhatsappAccountEvents[_0xb16e('0x3')](_0x297bfb,_0x210640);};}exports[_0xb16e('0x4')]=function(_0x22f9c5){for(var _0x280b9a=0x0,_0x1bb007=events[_0xb16e('0x5')];_0x280b9a<_0x1bb007;_0x280b9a++){var _0xebf31b=events[_0x280b9a];var _0x1ae537=createListener('whatsappAccount:'+_0xebf31b,_0x22f9c5);WhatsappAccountEvents['on'](_0xebf31b,_0x1ae537);}};