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 _0xf459=['whatsappQueue:','./whatsappQueue.events','save','remove','update','emit','register','length'];(function(_0x20845e,_0x211e78){var _0x28cf2b=function(_0x31d613){while(--_0x31d613){_0x20845e['push'](_0x20845e['shift']());}};_0x28cf2b(++_0x211e78);}(_0xf459,0x199));var _0x9f45=function(_0x18f152,_0x41585a){_0x18f152=_0x18f152-0x0;var _0xa10b34=_0xf459[_0x18f152];return _0xa10b34;};'use strict';var WhatsappQueueEvents=require(_0x9f45('0x0'));var events=[_0x9f45('0x1'),_0x9f45('0x2'),_0x9f45('0x3')];function createListener(_0x8c6187,_0x320208){return function(_0x42104a){_0x320208[_0x9f45('0x4')](_0x8c6187,_0x42104a);};}function removeListener(_0x3ef989,_0x8c56ee){return function(){WhatsappQueueEvents['removeListener'](_0x3ef989,_0x8c56ee);};}exports[_0x9f45('0x5')]=function(_0x1783ed){for(var _0x240285=0x0,_0x1fdaaf=events[_0x9f45('0x6')];_0x240285<_0x1fdaaf;_0x240285++){var _0x5abcd8=events[_0x240285];var _0x2d8ef3=createListener(_0x9f45('0x7')+_0x5abcd8,_0x1783ed);WhatsappQueueEvents['on'](_0x5abcd8,_0x2d8ef3);}};