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 _0x74d3=['register','length','whatsappAccount:','./whatsappAccount.events','save','remove','emit','removeListener'];(function(_0x56916d,_0x37b935){var _0x2b7f1f=function(_0x206eb1){while(--_0x206eb1){_0x56916d['push'](_0x56916d['shift']());}};_0x2b7f1f(++_0x37b935);}(_0x74d3,0x113));var _0x374d=function(_0x53908a,_0x255910){_0x53908a=_0x53908a-0x0;var _0x41daec=_0x74d3[_0x53908a];return _0x41daec;};'use strict';var WhatsappAccountEvents=require(_0x374d('0x0'));var events=[_0x374d('0x1'),_0x374d('0x2'),'update'];function createListener(_0x376b70,_0x20e730){return function(_0x31c416){_0x20e730[_0x374d('0x3')](_0x376b70,_0x31c416);};}function removeListener(_0x24cb41,_0x4b7c06){return function(){WhatsappAccountEvents[_0x374d('0x4')](_0x24cb41,_0x4b7c06);};}exports[_0x374d('0x5')]=function(_0x570096){for(var _0x5c42de=0x0,_0x415442=events[_0x374d('0x6')];_0x5c42de<_0x415442;_0x5c42de++){var _0x2dcf03=events[_0x5c42de];var _0x1e7d88=createListener(_0x374d('0x7')+_0x2dcf03,_0x570096);WhatsappAccountEvents['on'](_0x2dcf03,_0x1e7d88);}};