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 _0xf357=['save','emit','removeListener','register','whatsappQueue:','./whatsappQueue.events'];(function(_0x2697ab,_0x53fcb6){var _0x1a9a11=function(_0x2d9884){while(--_0x2d9884){_0x2697ab['push'](_0x2697ab['shift']());}};_0x1a9a11(++_0x53fcb6);}(_0xf357,0x77));var _0x7f35=function(_0x2e344e,_0x292d58){_0x2e344e=_0x2e344e-0x0;var _0x552bb3=_0xf357[_0x2e344e];return _0x552bb3;};'use strict';var WhatsappQueueEvents=require(_0x7f35('0x0'));var events=[_0x7f35('0x1'),'remove','update'];function createListener(_0x1c1bc6,_0x232067){return function(_0x1d5275){_0x232067[_0x7f35('0x2')](_0x1c1bc6,_0x1d5275);};}function removeListener(_0x5961d4,_0x20713e){return function(){WhatsappQueueEvents[_0x7f35('0x3')](_0x5961d4,_0x20713e);};}exports[_0x7f35('0x4')]=function(_0x11962b){for(var _0x504088=0x0,_0x47e8d8=events['length'];_0x504088<_0x47e8d8;_0x504088++){var _0xf193ae=events[_0x504088];var _0x215ebf=createListener(_0x7f35('0x5')+_0xf193ae,_0x11962b);WhatsappQueueEvents['on'](_0xf193ae,_0x215ebf);}};