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 _0x59f6=['emit','removeListener','update'];(function(_0x1096f3,_0x4a7d3d){var _0x15727d=function(_0x1b0b92){while(--_0x1b0b92){_0x1096f3['push'](_0x1096f3['shift']());}};_0x15727d(++_0x4a7d3d);}(_0x59f6,0x1d0));var _0x659f=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0x59f6[_0x465a0c];return _0x1e202e;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=['save','remove',_0x659f('0x0')];function createListener(_0x4fe47c,_0x5a89fe){return function(_0x12a4bf){_0x5a89fe[_0x659f('0x1')](_0x4fe47c,_0x12a4bf);};}function removeListener(_0x2fad79,_0x1ce75d){return function(){WhatsappAccountEvents[_0x659f('0x2')](_0x2fad79,_0x1ce75d);};}exports['register']=function(_0x27735d){for(var _0x70ff80=0x0,_0x2de6f2=events['length'];_0x70ff80<_0x2de6f2;_0x70ff80++){var _0x13554c=events[_0x70ff80];var _0x2ac29a=createListener('whatsappAccount:'+_0x13554c,_0x27735d);WhatsappAccountEvents['on'](_0x13554c,_0x2ac29a);}};