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 _0x583e=['whatsappAccount:','./whatsappAccount.events','save','remove','update','removeListener','length'];(function(_0x170b0b,_0x4aa600){var _0x33cd22=function(_0x35263c){while(--_0x35263c){_0x170b0b['push'](_0x170b0b['shift']());}};_0x33cd22(++_0x4aa600);}(_0x583e,0xbe));var _0xe583=function(_0x397694,_0x4e36ef){_0x397694=_0x397694-0x0;var _0x59dcae=_0x583e[_0x397694];return _0x59dcae;};'use strict';var WhatsappAccountEvents=require(_0xe583('0x0'));var events=[_0xe583('0x1'),_0xe583('0x2'),_0xe583('0x3')];function createListener(_0x4e28d7,_0x2ab5fc){return function(_0x4687a1){_0x2ab5fc['emit'](_0x4e28d7,_0x4687a1);};}function removeListener(_0x16ec8a,_0x26cbe1){return function(){WhatsappAccountEvents[_0xe583('0x4')](_0x16ec8a,_0x26cbe1);};}exports['register']=function(_0xa111e8){for(var _0x1bbb91=0x0,_0x3085d9=events[_0xe583('0x5')];_0x1bbb91<_0x3085d9;_0x1bbb91++){var _0x5074cf=events[_0x1bbb91];var _0x3198c8=createListener(_0xe583('0x6')+_0x5074cf,_0xa111e8);WhatsappAccountEvents['on'](_0x5074cf,_0x3198c8);}};