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 _0x5c04=['whatsappAccount:','./whatsappAccount.events','save','remove','update','emit','removeListener','length'];(function(_0x21debf,_0x5bab7b){var _0x324608=function(_0x2b9e13){while(--_0x2b9e13){_0x21debf['push'](_0x21debf['shift']());}};_0x324608(++_0x5bab7b);}(_0x5c04,0x189));var _0x45c0=function(_0x238075,_0x1ea113){_0x238075=_0x238075-0x0;var _0x482aa6=_0x5c04[_0x238075];return _0x482aa6;};'use strict';var WhatsappAccountEvents=require(_0x45c0('0x0'));var events=[_0x45c0('0x1'),_0x45c0('0x2'),_0x45c0('0x3')];function createListener(_0x4330ba,_0x3648a5){return function(_0x452430){_0x3648a5[_0x45c0('0x4')](_0x4330ba,_0x452430);};}function removeListener(_0x26a498,_0x28640d){return function(){WhatsappAccountEvents[_0x45c0('0x5')](_0x26a498,_0x28640d);};}exports['register']=function(_0x30d318){for(var _0x24f952=0x0,_0x17cd86=events[_0x45c0('0x6')];_0x24f952<_0x17cd86;_0x24f952++){var _0x7ac30a=events[_0x24f952];var _0x28d3c3=createListener(_0x45c0('0x7')+_0x7ac30a,_0x30d318);WhatsappAccountEvents['on'](_0x7ac30a,_0x28d3c3);}};