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 _0x6e87=['./whatsappQueue.events','save','remove','update','removeListener','register'];(function(_0x5552c7,_0x3fc755){var _0x5ad7ca=function(_0x40ee17){while(--_0x40ee17){_0x5552c7['push'](_0x5552c7['shift']());}};_0x5ad7ca(++_0x3fc755);}(_0x6e87,0xb4));var _0x76e8=function(_0xa51ba0,_0x3bf58d){_0xa51ba0=_0xa51ba0-0x0;var _0x17f343=_0x6e87[_0xa51ba0];return _0x17f343;};'use strict';var WhatsappQueueEvents=require(_0x76e8('0x0'));var events=[_0x76e8('0x1'),_0x76e8('0x2'),_0x76e8('0x3')];function createListener(_0x4668ab,_0x25db1e){return function(_0x229afa){_0x25db1e['emit'](_0x4668ab,_0x229afa);};}function removeListener(_0x3f56f4,_0x41474d){return function(){WhatsappQueueEvents[_0x76e8('0x4')](_0x3f56f4,_0x41474d);};}exports[_0x76e8('0x5')]=function(_0x12a084){for(var _0x5c2624=0x0,_0xe9fca5=events['length'];_0x5c2624<_0xe9fca5;_0x5c2624++){var _0xc13f35=events[_0x5c2624];var _0x477a50=createListener('whatsappQueue:'+_0xc13f35,_0x12a084);WhatsappQueueEvents['on'](_0xc13f35,_0x477a50);}};