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 _0x6271=['removeListener','register','length','whatsappQueue:','./whatsappQueue.events','save','remove','update','emit'];(function(_0x11d131,_0x1289de){var _0x401f57=function(_0xf8230a){while(--_0xf8230a){_0x11d131['push'](_0x11d131['shift']());}};_0x401f57(++_0x1289de);}(_0x6271,0x1e1));var _0x1627=function(_0x473f6e,_0x4cab7b){_0x473f6e=_0x473f6e-0x0;var _0x4facf5=_0x6271[_0x473f6e];return _0x4facf5;};'use strict';var WhatsappQueueEvents=require(_0x1627('0x0'));var events=[_0x1627('0x1'),_0x1627('0x2'),_0x1627('0x3')];function createListener(_0x55c171,_0x4a420){return function(_0x5d1c8a){_0x4a420[_0x1627('0x4')](_0x55c171,_0x5d1c8a);};}function removeListener(_0xda67b6,_0x4fe556){return function(){WhatsappQueueEvents[_0x1627('0x5')](_0xda67b6,_0x4fe556);};}exports[_0x1627('0x6')]=function(_0x5d061e){for(var _0x436095=0x0,_0x384724=events[_0x1627('0x7')];_0x436095<_0x384724;_0x436095++){var _0x18d7f3=events[_0x436095];var _0x1ffd80=createListener(_0x1627('0x8')+_0x18d7f3,_0x5d061e);WhatsappQueueEvents['on'](_0x18d7f3,_0x1ffd80);}};