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 _0x3500=['whatsappQueue:','./whatsappQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x44f4c3,_0x5e7c85){var _0x46dff2=function(_0x1177cf){while(--_0x1177cf){_0x44f4c3['push'](_0x44f4c3['shift']());}};_0x46dff2(++_0x5e7c85);}(_0x3500,0x1a9));var _0x0350=function(_0x4e1409,_0x2eb61d){_0x4e1409=_0x4e1409-0x0;var _0x37b0c1=_0x3500[_0x4e1409];return _0x37b0c1;};'use strict';var WhatsappQueueEvents=require(_0x0350('0x0'));var events=[_0x0350('0x1'),_0x0350('0x2'),_0x0350('0x3')];function createListener(_0x3a34e4,_0x5e2939){return function(_0x17020b){_0x5e2939[_0x0350('0x4')](_0x3a34e4,_0x17020b);};}function removeListener(_0x14a230,_0x5b6d44){return function(){WhatsappQueueEvents[_0x0350('0x5')](_0x14a230,_0x5b6d44);};}exports[_0x0350('0x6')]=function(_0x9599db){for(var _0x31701d=0x0,_0x35b872=events['length'];_0x31701d<_0x35b872;_0x31701d++){var _0x12a4b5=events[_0x31701d];var _0x11236b=createListener(_0x0350('0x7')+_0x12a4b5,_0x9599db);WhatsappQueueEvents['on'](_0x12a4b5,_0x11236b);}};