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 _0x5bfe=['emit','removeListener','./whatsappAccount.events','save','remove','update'];(function(_0x594670,_0x4b9fdd){var _0x36a5b7=function(_0x45471e){while(--_0x45471e){_0x594670['push'](_0x594670['shift']());}};_0x36a5b7(++_0x4b9fdd);}(_0x5bfe,0x13a));var _0xe5bf=function(_0x4a1820,_0x42bdcb){_0x4a1820=_0x4a1820-0x0;var _0x2b2729=_0x5bfe[_0x4a1820];return _0x2b2729;};'use strict';var WhatsappAccountEvents=require(_0xe5bf('0x0'));var events=[_0xe5bf('0x1'),_0xe5bf('0x2'),_0xe5bf('0x3')];function createListener(_0x254f48,_0xabfe44){return function(_0x5e445a){_0xabfe44[_0xe5bf('0x4')](_0x254f48,_0x5e445a);};}function removeListener(_0x4f71e0,_0x53e567){return function(){WhatsappAccountEvents[_0xe5bf('0x5')](_0x4f71e0,_0x53e567);};}exports['register']=function(_0x479f97){for(var _0x344299=0x0,_0x51936d=events['length'];_0x344299<_0x51936d;_0x344299++){var _0x4dd33f=events[_0x344299];var _0x55d4cf=createListener('whatsappAccount:'+_0x4dd33f,_0x479f97);WhatsappAccountEvents['on'](_0x4dd33f,_0x55d4cf);}};