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 _0x9744=['save','remove','emit','register','./whatsappQueue.events'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9744,0x117));var _0x4974=function(_0x328e90,_0x32f900){_0x328e90=_0x328e90-0x0;var _0x340304=_0x9744[_0x328e90];return _0x340304;};'use strict';var WhatsappQueueEvents=require(_0x4974('0x0'));var events=[_0x4974('0x1'),_0x4974('0x2'),'update'];function createListener(_0x89622b,_0x451a82){return function(_0x5f7f8a){_0x451a82[_0x4974('0x3')](_0x89622b,_0x5f7f8a);};}function removeListener(_0x5bc2d1,_0x5ba5f8){return function(){WhatsappQueueEvents['removeListener'](_0x5bc2d1,_0x5ba5f8);};}exports[_0x4974('0x4')]=function(_0x103696){for(var _0x3fda9c=0x0,_0x5bcaaf=events['length'];_0x3fda9c<_0x5bcaaf;_0x3fda9c++){var _0x4e786a=events[_0x3fda9c];var _0x3cea04=createListener('whatsappQueue:'+_0x4e786a,_0x103696);WhatsappQueueEvents['on'](_0x4e786a,_0x3cea04);}};