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 _0x786a=['length','whatsappQueue:','./whatsappQueue.events','update','emit','removeListener','register'];(function(_0x5052fa,_0x2c1d45){var _0x2ad655=function(_0x119598){while(--_0x119598){_0x5052fa['push'](_0x5052fa['shift']());}};_0x2ad655(++_0x2c1d45);}(_0x786a,0xc6));var _0xa786=function(_0x9d9bda,_0x89670b){_0x9d9bda=_0x9d9bda-0x0;var _0x1c0425=_0x786a[_0x9d9bda];return _0x1c0425;};'use strict';var WhatsappQueueEvents=require(_0xa786('0x0'));var events=['save','remove',_0xa786('0x1')];function createListener(_0x22f659,_0x394cba){return function(_0x165356){_0x394cba[_0xa786('0x2')](_0x22f659,_0x165356);};}function removeListener(_0x248022,_0x24e198){return function(){WhatsappQueueEvents[_0xa786('0x3')](_0x248022,_0x24e198);};}exports[_0xa786('0x4')]=function(_0x51ce88){for(var _0x558715=0x0,_0x575c5e=events[_0xa786('0x5')];_0x558715<_0x575c5e;_0x558715++){var _0x355d46=events[_0x558715];var _0x4d907e=createListener(_0xa786('0x6')+_0x355d46,_0x51ce88);WhatsappQueueEvents['on'](_0x355d46,_0x4d907e);}};