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 _0x1da1=['./whatsappQueue.events','save','remove','update','emit','register'];(function(_0x1f9628,_0x1e0535){var _0x43d11e=function(_0x8e6503){while(--_0x8e6503){_0x1f9628['push'](_0x1f9628['shift']());}};_0x43d11e(++_0x1e0535);}(_0x1da1,0x1a4));var _0x11da=function(_0x2b57b5,_0x403d6){_0x2b57b5=_0x2b57b5-0x0;var _0x351acc=_0x1da1[_0x2b57b5];return _0x351acc;};'use strict';var WhatsappQueueEvents=require(_0x11da('0x0'));var events=[_0x11da('0x1'),_0x11da('0x2'),_0x11da('0x3')];function createListener(_0x46896e,_0x5b0fe4){return function(_0x55af86){_0x5b0fe4[_0x11da('0x4')](_0x46896e,_0x55af86);};}function removeListener(_0x1beca5,_0x3d6bd5){return function(){WhatsappQueueEvents['removeListener'](_0x1beca5,_0x3d6bd5);};}exports[_0x11da('0x5')]=function(_0x209cbb){for(var _0x15c324=0x0,_0x5ecc27=events['length'];_0x15c324<_0x5ecc27;_0x15c324++){var _0x287653=events[_0x15c324];var _0x109f4b=createListener('whatsappQueue:'+_0x287653,_0x209cbb);WhatsappQueueEvents['on'](_0x287653,_0x109f4b);}};