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 _0x036f=['remove','update','emit','register','length'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x036f,0x18b));var _0xf036=function(_0xfc7019,_0x277c9e){_0xfc7019=_0xfc7019-0x0;var _0x2af8f4=_0x036f[_0xfc7019];return _0x2af8f4;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=['save',_0xf036('0x0'),_0xf036('0x1')];function createListener(_0x12914b,_0x6c4ae8){return function(_0x336872){_0x6c4ae8[_0xf036('0x2')](_0x12914b,_0x336872);};}function removeListener(_0x53f901,_0x11f7a5){return function(){WhatsappAccountEvents['removeListener'](_0x53f901,_0x11f7a5);};}exports[_0xf036('0x3')]=function(_0x17954f){for(var _0x5e02b2=0x0,_0x3442f3=events[_0xf036('0x4')];_0x5e02b2<_0x3442f3;_0x5e02b2++){var _0x357805=events[_0x5e02b2];var _0x39bcca=createListener('whatsappAccount:'+_0x357805,_0x17954f);WhatsappAccountEvents['on'](_0x357805,_0x39bcca);}};