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 _0x2fa1=['./whatsappQueue.events','save','remove','emit','removeListener','whatsappQueue:'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x2fa1,0x1d4));var _0x12fa=function(_0x12b3d0,_0x2015a0){_0x12b3d0=_0x12b3d0-0x0;var _0x138985=_0x2fa1[_0x12b3d0];return _0x138985;};'use strict';var WhatsappQueueEvents=require(_0x12fa('0x0'));var events=[_0x12fa('0x1'),_0x12fa('0x2'),'update'];function createListener(_0x5dcf6d,_0xcfd591){return function(_0x23479a){_0xcfd591[_0x12fa('0x3')](_0x5dcf6d,_0x23479a);};}function removeListener(_0x4483e2,_0x24602c){return function(){WhatsappQueueEvents[_0x12fa('0x4')](_0x4483e2,_0x24602c);};}exports['register']=function(_0x315d11){for(var _0x42e0ef=0x0,_0x5cacbd=events['length'];_0x42e0ef<_0x5cacbd;_0x42e0ef++){var _0x53115a=events[_0x42e0ef];var _0x2a2848=createListener(_0x12fa('0x5')+_0x53115a,_0x315d11);WhatsappQueueEvents['on'](_0x53115a,_0x2a2848);}};