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 _0x3f80=['length','./whatsappAccount.events','save','remove','update','removeListener'];(function(_0x501ee0,_0x423d0f){var _0x342925=function(_0x311574){while(--_0x311574){_0x501ee0['push'](_0x501ee0['shift']());}};_0x342925(++_0x423d0f);}(_0x3f80,0x67));var _0x03f8=function(_0x4580ff,_0x31dfbe){_0x4580ff=_0x4580ff-0x0;var _0x145e0d=_0x3f80[_0x4580ff];return _0x145e0d;};'use strict';var WhatsappAccountEvents=require(_0x03f8('0x0'));var events=[_0x03f8('0x1'),_0x03f8('0x2'),_0x03f8('0x3')];function createListener(_0x3d37cd,_0x2427cd){return function(_0x59efca){_0x2427cd['emit'](_0x3d37cd,_0x59efca);};}function removeListener(_0x811623,_0x3e89a0){return function(){WhatsappAccountEvents[_0x03f8('0x4')](_0x811623,_0x3e89a0);};}exports['register']=function(_0x3688be){for(var _0x4671b8=0x0,_0x2f4f1a=events[_0x03f8('0x5')];_0x4671b8<_0x2f4f1a;_0x4671b8++){var _0x2c6c45=events[_0x4671b8];var _0x54aa10=createListener('whatsappAccount:'+_0x2c6c45,_0x3688be);WhatsappAccountEvents['on'](_0x2c6c45,_0x54aa10);}};