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 _0x7cf4=['whatsappAccount:','./whatsappAccount.events','remove','update','register'];(function(_0x4c7b20,_0x361515){var _0x4872bd=function(_0x358e19){while(--_0x358e19){_0x4c7b20['push'](_0x4c7b20['shift']());}};_0x4872bd(++_0x361515);}(_0x7cf4,0x1c8));var _0x47cf=function(_0x2c7a01,_0x478d98){_0x2c7a01=_0x2c7a01-0x0;var _0x5e7b47=_0x7cf4[_0x2c7a01];return _0x5e7b47;};'use strict';var WhatsappAccountEvents=require(_0x47cf('0x0'));var events=['save',_0x47cf('0x1'),_0x47cf('0x2')];function createListener(_0xc5b7e7,_0x1e9ee1){return function(_0x1edfd8){_0x1e9ee1['emit'](_0xc5b7e7,_0x1edfd8);};}function removeListener(_0x3fcf4f,_0x131dc2){return function(){WhatsappAccountEvents['removeListener'](_0x3fcf4f,_0x131dc2);};}exports[_0x47cf('0x3')]=function(_0x39531c){for(var _0x390ac8=0x0,_0x54b806=events['length'];_0x390ac8<_0x54b806;_0x390ac8++){var _0x3b3c4c=events[_0x390ac8];var _0x27bfe3=createListener(_0x47cf('0x4')+_0x3b3c4c,_0x39531c);WhatsappAccountEvents['on'](_0x3b3c4c,_0x27bfe3);}};