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 _0xa899=['update','removeListener','length','whatsappQueue:','./whatsappQueue.events'];(function(_0x39428c,_0x34b23a){var _0x52d069=function(_0x394962){while(--_0x394962){_0x39428c['push'](_0x39428c['shift']());}};_0x52d069(++_0x34b23a);}(_0xa899,0x162));var _0x9a89=function(_0xa30766,_0x6f613e){_0xa30766=_0xa30766-0x0;var _0x24e780=_0xa899[_0xa30766];return _0x24e780;};'use strict';var WhatsappQueueEvents=require(_0x9a89('0x0'));var events=['save','remove',_0x9a89('0x1')];function createListener(_0x300b51,_0x290432){return function(_0x3b47a7){_0x290432['emit'](_0x300b51,_0x3b47a7);};}function removeListener(_0x500cbc,_0x4b0012){return function(){WhatsappQueueEvents[_0x9a89('0x2')](_0x500cbc,_0x4b0012);};}exports['register']=function(_0x5f3c8e){for(var _0x1ae711=0x0,_0x4841f5=events[_0x9a89('0x3')];_0x1ae711<_0x4841f5;_0x1ae711++){var _0x4a3b2d=events[_0x1ae711];var _0x1a24a3=createListener(_0x9a89('0x4')+_0x4a3b2d,_0x5f3c8e);WhatsappQueueEvents['on'](_0x4a3b2d,_0x1a24a3);}};