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 _0xce69=['./whatsappQueue.events','remove','update','register','length','whatsappQueue:'];(function(_0x490074,_0x56bfa5){var _0x1c1d5a=function(_0x51cfd7){while(--_0x51cfd7){_0x490074['push'](_0x490074['shift']());}};_0x1c1d5a(++_0x56bfa5);}(_0xce69,0x198));var _0x9ce6=function(_0x289a67,_0x1e5a3c){_0x289a67=_0x289a67-0x0;var _0x572b49=_0xce69[_0x289a67];return _0x572b49;};'use strict';var WhatsappQueueEvents=require(_0x9ce6('0x0'));var events=['save',_0x9ce6('0x1'),_0x9ce6('0x2')];function createListener(_0x2e3805,_0x1b42c7){return function(_0x2b6aad){_0x1b42c7['emit'](_0x2e3805,_0x2b6aad);};}function removeListener(_0x4b141b,_0x4bc7bc){return function(){WhatsappQueueEvents['removeListener'](_0x4b141b,_0x4bc7bc);};}exports[_0x9ce6('0x3')]=function(_0x397123){for(var _0xce8119=0x0,_0x537b9b=events[_0x9ce6('0x4')];_0xce8119<_0x537b9b;_0xce8119++){var _0x3ce827=events[_0xce8119];var _0x4d3d6c=createListener(_0x9ce6('0x5')+_0x3ce827,_0x397123);WhatsappQueueEvents['on'](_0x3ce827,_0x4d3d6c);}};