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 _0xd146=['save','remove','update','emit','length','whatsappAccount:','./whatsappAccount.events'];(function(_0x110c3d,_0x12ee06){var _0x226d67=function(_0x1fb6e1){while(--_0x1fb6e1){_0x110c3d['push'](_0x110c3d['shift']());}};_0x226d67(++_0x12ee06);}(_0xd146,0x99));var _0x6d14=function(_0xe45c34,_0x45c8e1){_0xe45c34=_0xe45c34-0x0;var _0x432df2=_0xd146[_0xe45c34];return _0x432df2;};'use strict';var WhatsappAccountEvents=require(_0x6d14('0x0'));var events=[_0x6d14('0x1'),_0x6d14('0x2'),_0x6d14('0x3')];function createListener(_0xf22960,_0x16c580){return function(_0xc378fd){_0x16c580[_0x6d14('0x4')](_0xf22960,_0xc378fd);};}function removeListener(_0xbb8a97,_0x583908){return function(){WhatsappAccountEvents['removeListener'](_0xbb8a97,_0x583908);};}exports['register']=function(_0x4c3c50){for(var _0x2bb545=0x0,_0x3fa464=events[_0x6d14('0x5')];_0x2bb545<_0x3fa464;_0x2bb545++){var _0x55ba5d=events[_0x2bb545];var _0x3b4dfe=createListener(_0x6d14('0x6')+_0x55ba5d,_0x4c3c50);WhatsappAccountEvents['on'](_0x55ba5d,_0x3b4dfe);}};