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 _0x0584=['removeListener','length','whatsappQueue:','./whatsappQueue.events','save','remove','emit'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x0584,0xab));var _0x4058=function(_0x484e36,_0x4482d8){_0x484e36=_0x484e36-0x0;var _0xafc85d=_0x0584[_0x484e36];return _0xafc85d;};'use strict';var WhatsappQueueEvents=require(_0x4058('0x0'));var events=[_0x4058('0x1'),_0x4058('0x2'),'update'];function createListener(_0x15e200,_0x4f940e){return function(_0xb62fac){_0x4f940e[_0x4058('0x3')](_0x15e200,_0xb62fac);};}function removeListener(_0x5aab88,_0x69c25c){return function(){WhatsappQueueEvents[_0x4058('0x4')](_0x5aab88,_0x69c25c);};}exports['register']=function(_0x26602c){for(var _0x753de6=0x0,_0x5d8dcf=events[_0x4058('0x5')];_0x753de6<_0x5d8dcf;_0x753de6++){var _0x2ef4bc=events[_0x753de6];var _0x581e91=createListener(_0x4058('0x6')+_0x2ef4bc,_0x26602c);WhatsappQueueEvents['on'](_0x2ef4bc,_0x581e91);}};