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 _0x6488=['emit','removeListener','register','length','whatsappAccount:','remove','update'];(function(_0xadf520,_0x4bcb72){var _0x5ea591=function(_0x391ebf){while(--_0x391ebf){_0xadf520['push'](_0xadf520['shift']());}};_0x5ea591(++_0x4bcb72);}(_0x6488,0x171));var _0x8648=function(_0x67b97a,_0x503a86){_0x67b97a=_0x67b97a-0x0;var _0x1c50b2=_0x6488[_0x67b97a];return _0x1c50b2;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=['save',_0x8648('0x0'),_0x8648('0x1')];function createListener(_0x2767ce,_0x221262){return function(_0x41634a){_0x221262[_0x8648('0x2')](_0x2767ce,_0x41634a);};}function removeListener(_0x1a209d,_0x23bf98){return function(){WhatsappAccountEvents[_0x8648('0x3')](_0x1a209d,_0x23bf98);};}exports[_0x8648('0x4')]=function(_0x8d87d1){for(var _0x1f4337=0x0,_0x820050=events[_0x8648('0x5')];_0x1f4337<_0x820050;_0x1f4337++){var _0x408ee1=events[_0x1f4337];var _0x448d50=createListener(_0x8648('0x6')+_0x408ee1,_0x8d87d1);WhatsappAccountEvents['on'](_0x408ee1,_0x448d50);}};