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 _0x505f=['length','whatsappAccount:','./whatsappAccount.events','remove','update','emit'];(function(_0x3599fc,_0x5455e8){var _0x5991c7=function(_0x82374f){while(--_0x82374f){_0x3599fc['push'](_0x3599fc['shift']());}};_0x5991c7(++_0x5455e8);}(_0x505f,0x1a0));var _0xf505=function(_0x2f5a36,_0x34a9af){_0x2f5a36=_0x2f5a36-0x0;var _0x561c9b=_0x505f[_0x2f5a36];return _0x561c9b;};'use strict';var WhatsappAccountEvents=require(_0xf505('0x0'));var events=['save',_0xf505('0x1'),_0xf505('0x2')];function createListener(_0x1a176f,_0x4bd3bc){return function(_0x1ab09e){_0x4bd3bc[_0xf505('0x3')](_0x1a176f,_0x1ab09e);};}function removeListener(_0x5dfe52,_0x499970){return function(){WhatsappAccountEvents['removeListener'](_0x5dfe52,_0x499970);};}exports['register']=function(_0xc45929){for(var _0x3b75af=0x0,_0x2523c8=events[_0xf505('0x4')];_0x3b75af<_0x2523c8;_0x3b75af++){var _0x49e931=events[_0x3b75af];var _0x560cdc=createListener(_0xf505('0x5')+_0x49e931,_0xc45929);WhatsappAccountEvents['on'](_0x49e931,_0x560cdc);}};