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 _0x7711=['whatsappQueue:','save','remove','update','emit','register','length'];(function(_0x1a2a30,_0x5c98fa){var _0x1e7047=function(_0x59bd9b){while(--_0x59bd9b){_0x1a2a30['push'](_0x1a2a30['shift']());}};_0x1e7047(++_0x5c98fa);}(_0x7711,0xfd));var _0x1771=function(_0x17d382,_0x5ae511){_0x17d382=_0x17d382-0x0;var _0x1ef1cd=_0x7711[_0x17d382];return _0x1ef1cd;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=[_0x1771('0x0'),_0x1771('0x1'),_0x1771('0x2')];function createListener(_0x2e6464,_0x5ce0c9){return function(_0x53e07f){_0x5ce0c9[_0x1771('0x3')](_0x2e6464,_0x53e07f);};}function removeListener(_0x33ab46,_0x135e8d){return function(){WhatsappQueueEvents['removeListener'](_0x33ab46,_0x135e8d);};}exports[_0x1771('0x4')]=function(_0x452be2){for(var _0x39ef9e=0x0,_0x38d63f=events[_0x1771('0x5')];_0x39ef9e<_0x38d63f;_0x39ef9e++){var _0x9a1849=events[_0x39ef9e];var _0x318053=createListener(_0x1771('0x6')+_0x9a1849,_0x452be2);WhatsappQueueEvents['on'](_0x9a1849,_0x318053);}};