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 _0xf03f=['whatsappAccount:','./whatsappAccount.events','save','remove','update','emit','removeListener','length'];(function(_0x5e8fc,_0x1ccc06){var _0x41c58c=function(_0x495f2c){while(--_0x495f2c){_0x5e8fc['push'](_0x5e8fc['shift']());}};_0x41c58c(++_0x1ccc06);}(_0xf03f,0xa1));var _0xff03=function(_0x3806e6,_0x2f55d1){_0x3806e6=_0x3806e6-0x0;var _0x43aea8=_0xf03f[_0x3806e6];return _0x43aea8;};'use strict';var WhatsappAccountEvents=require(_0xff03('0x0'));var events=[_0xff03('0x1'),_0xff03('0x2'),_0xff03('0x3')];function createListener(_0x24d309,_0xf7807f){return function(_0x498fb2){_0xf7807f[_0xff03('0x4')](_0x24d309,_0x498fb2);};}function removeListener(_0x104302,_0x2ca703){return function(){WhatsappAccountEvents[_0xff03('0x5')](_0x104302,_0x2ca703);};}exports['register']=function(_0x4ed949){for(var _0x3c80d1=0x0,_0x2dbb84=events[_0xff03('0x6')];_0x3c80d1<_0x2dbb84;_0x3c80d1++){var _0x3e9f27=events[_0x3c80d1];var _0x62d498=createListener(_0xff03('0x7')+_0x3e9f27,_0x4ed949);WhatsappAccountEvents['on'](_0x3e9f27,_0x62d498);}};