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 _0xe7d9=['emit','removeListener','register','length','whatsappQueue:','./whatsappQueue.events','update'];(function(_0x59af8f,_0xb91cb2){var _0x21e78e=function(_0xc0923e){while(--_0xc0923e){_0x59af8f['push'](_0x59af8f['shift']());}};_0x21e78e(++_0xb91cb2);}(_0xe7d9,0x1cc));var _0x9e7d=function(_0x4001e8,_0x5b6a29){_0x4001e8=_0x4001e8-0x0;var _0x521350=_0xe7d9[_0x4001e8];return _0x521350;};'use strict';var WhatsappQueueEvents=require(_0x9e7d('0x0'));var events=['save','remove',_0x9e7d('0x1')];function createListener(_0x3a7ac7,_0x5944f6){return function(_0x34d006){_0x5944f6[_0x9e7d('0x2')](_0x3a7ac7,_0x34d006);};}function removeListener(_0x349b25,_0x2a580f){return function(){WhatsappQueueEvents[_0x9e7d('0x3')](_0x349b25,_0x2a580f);};}exports[_0x9e7d('0x4')]=function(_0x40ab80){for(var _0x442489=0x0,_0x3f26c2=events[_0x9e7d('0x5')];_0x442489<_0x3f26c2;_0x442489++){var _0x22b493=events[_0x442489];var _0x1d4ceb=createListener(_0x9e7d('0x6')+_0x22b493,_0x40ab80);WhatsappQueueEvents['on'](_0x22b493,_0x1d4ceb);}};