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 _0x513b=['removeListener','register','length','whatsappQueue:','./whatsappQueue.events','remove','update','emit'];(function(_0x59c2cb,_0x671ebb){var _0x4d2910=function(_0x50c769){while(--_0x50c769){_0x59c2cb['push'](_0x59c2cb['shift']());}};_0x4d2910(++_0x671ebb);}(_0x513b,0xdc));var _0xb513=function(_0x1b7d42,_0x176be6){_0x1b7d42=_0x1b7d42-0x0;var _0x33b0af=_0x513b[_0x1b7d42];return _0x33b0af;};'use strict';var WhatsappQueueEvents=require(_0xb513('0x0'));var events=['save',_0xb513('0x1'),_0xb513('0x2')];function createListener(_0x2197f6,_0xeb43b8){return function(_0xde9902){_0xeb43b8[_0xb513('0x3')](_0x2197f6,_0xde9902);};}function removeListener(_0x167749,_0x3740cc){return function(){WhatsappQueueEvents[_0xb513('0x4')](_0x167749,_0x3740cc);};}exports[_0xb513('0x5')]=function(_0x1fc04e){for(var _0x395ff1=0x0,_0x4704d7=events[_0xb513('0x6')];_0x395ff1<_0x4704d7;_0x395ff1++){var _0x15af81=events[_0x395ff1];var _0x2ccc3b=createListener(_0xb513('0x7')+_0x15af81,_0x1fc04e);WhatsappQueueEvents['on'](_0x15af81,_0x2ccc3b);}};