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 _0x591d=['update','emit','removeListener','whatsappAccount:','./whatsappAccount.events','save','remove'];(function(_0x54c177,_0x3b1abf){var _0x31e301=function(_0x522872){while(--_0x522872){_0x54c177['push'](_0x54c177['shift']());}};_0x31e301(++_0x3b1abf);}(_0x591d,0x1c4));var _0xd591=function(_0x1a990c,_0x570ceb){_0x1a990c=_0x1a990c-0x0;var _0x4f1eee=_0x591d[_0x1a990c];return _0x4f1eee;};'use strict';var WhatsappAccountEvents=require(_0xd591('0x0'));var events=[_0xd591('0x1'),_0xd591('0x2'),_0xd591('0x3')];function createListener(_0x1c0103,_0x1dfa49){return function(_0x3cfb0d){_0x1dfa49[_0xd591('0x4')](_0x1c0103,_0x3cfb0d);};}function removeListener(_0x5e3500,_0x58c372){return function(){WhatsappAccountEvents[_0xd591('0x5')](_0x5e3500,_0x58c372);};}exports['register']=function(_0x543723){for(var _0x130a50=0x0,_0x464f1f=events['length'];_0x130a50<_0x464f1f;_0x130a50++){var _0x3faef4=events[_0x130a50];var _0x30e7c1=createListener(_0xd591('0x6')+_0x3faef4,_0x543723);WhatsappAccountEvents['on'](_0x3faef4,_0x30e7c1);}};