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 _0xf68f=['remove','update','emit','removeListener','register','./whatsappQueue.events','save'];(function(_0x16771d,_0x224c60){var _0x386f11=function(_0x3d7a87){while(--_0x3d7a87){_0x16771d['push'](_0x16771d['shift']());}};_0x386f11(++_0x224c60);}(_0xf68f,0xe5));var _0xff68=function(_0xa3463d,_0x323da0){_0xa3463d=_0xa3463d-0x0;var _0x18f7ca=_0xf68f[_0xa3463d];return _0x18f7ca;};'use strict';var WhatsappQueueEvents=require(_0xff68('0x0'));var events=[_0xff68('0x1'),_0xff68('0x2'),_0xff68('0x3')];function createListener(_0x443b24,_0x361403){return function(_0x333f56){_0x361403[_0xff68('0x4')](_0x443b24,_0x333f56);};}function removeListener(_0x1dd8eb,_0x3e6c3a){return function(){WhatsappQueueEvents[_0xff68('0x5')](_0x1dd8eb,_0x3e6c3a);};}exports[_0xff68('0x6')]=function(_0x5e18fd){for(var _0x232bb4=0x0,_0x58f96a=events['length'];_0x232bb4<_0x58f96a;_0x232bb4++){var _0x44a08c=events[_0x232bb4];var _0x3848fb=createListener('whatsappQueue:'+_0x44a08c,_0x5e18fd);WhatsappQueueEvents['on'](_0x44a08c,_0x3848fb);}};