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 _0x6afe=['./whatsappAccount.events','save','remove','emit','removeListener','length','whatsappAccount:'];(function(_0x39b5cc,_0x2d2940){var _0x14156d=function(_0x1588b0){while(--_0x1588b0){_0x39b5cc['push'](_0x39b5cc['shift']());}};_0x14156d(++_0x2d2940);}(_0x6afe,0x149));var _0xe6af=function(_0x4108e9,_0x58da63){_0x4108e9=_0x4108e9-0x0;var _0x369cc4=_0x6afe[_0x4108e9];return _0x369cc4;};'use strict';var WhatsappAccountEvents=require(_0xe6af('0x0'));var events=[_0xe6af('0x1'),_0xe6af('0x2'),'update'];function createListener(_0x5c4561,_0xd4cf7c){return function(_0x8cd1c6){_0xd4cf7c[_0xe6af('0x3')](_0x5c4561,_0x8cd1c6);};}function removeListener(_0x357887,_0x3cd67){return function(){WhatsappAccountEvents[_0xe6af('0x4')](_0x357887,_0x3cd67);};}exports['register']=function(_0x52256c){for(var _0x208fe2=0x0,_0x4a47dd=events[_0xe6af('0x5')];_0x208fe2<_0x4a47dd;_0x208fe2++){var _0xefcc3e=events[_0x208fe2];var _0x118023=createListener(_0xe6af('0x6')+_0xefcc3e,_0x52256c);WhatsappAccountEvents['on'](_0xefcc3e,_0x118023);}};