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 _0xc63d=['save','update','removeListener','length','./whatsappQueue.events'];(function(_0x336ef7,_0x29d4a6){var _0x175278=function(_0x14737e){while(--_0x14737e){_0x336ef7['push'](_0x336ef7['shift']());}};_0x175278(++_0x29d4a6);}(_0xc63d,0xe5));var _0xdc63=function(_0x3659d0,_0x3b9d88){_0x3659d0=_0x3659d0-0x0;var _0x278523=_0xc63d[_0x3659d0];return _0x278523;};'use strict';var WhatsappQueueEvents=require(_0xdc63('0x0'));var events=[_0xdc63('0x1'),'remove',_0xdc63('0x2')];function createListener(_0x1fe705,_0x1887e7){return function(_0x489d42){_0x1887e7['emit'](_0x1fe705,_0x489d42);};}function removeListener(_0x189e8e,_0x4a82e9){return function(){WhatsappQueueEvents[_0xdc63('0x3')](_0x189e8e,_0x4a82e9);};}exports['register']=function(_0x160c97){for(var _0x1054a0=0x0,_0x4b55cc=events[_0xdc63('0x4')];_0x1054a0<_0x4b55cc;_0x1054a0++){var _0x2b9157=events[_0x1054a0];var _0x38ed0c=createListener('whatsappQueue:'+_0x2b9157,_0x160c97);WhatsappQueueEvents['on'](_0x2b9157,_0x38ed0c);}};