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 _0x23dd=['remove','update','register','whatsappQueue:'];(function(_0x114e4f,_0xbe96ca){var _0x27010e=function(_0x167474){while(--_0x167474){_0x114e4f['push'](_0x114e4f['shift']());}};_0x27010e(++_0xbe96ca);}(_0x23dd,0xac));var _0xd23d=function(_0x571e87,_0x85f3e5){_0x571e87=_0x571e87-0x0;var _0x568bb9=_0x23dd[_0x571e87];return _0x568bb9;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=['save',_0xd23d('0x0'),_0xd23d('0x1')];function createListener(_0x4306b9,_0x3cb8eb){return function(_0x5c91e7){_0x3cb8eb['emit'](_0x4306b9,_0x5c91e7);};}function removeListener(_0x39e14f,_0x55221a){return function(){WhatsappQueueEvents['removeListener'](_0x39e14f,_0x55221a);};}exports[_0xd23d('0x2')]=function(_0x370a72){for(var _0x1fb0bb=0x0,_0x42eaf5=events['length'];_0x1fb0bb<_0x42eaf5;_0x1fb0bb++){var _0x184c8c=events[_0x1fb0bb];var _0x91b0cd=createListener(_0xd23d('0x3')+_0x184c8c,_0x370a72);WhatsappQueueEvents['on'](_0x184c8c,_0x91b0cd);}};