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 _0x0fcf=['removeListener','register','length','whatsappQueue:','./whatsappQueue.events','remove'];(function(_0x472642,_0x229afa){var _0x3e97b8=function(_0x4d372f){while(--_0x4d372f){_0x472642['push'](_0x472642['shift']());}};_0x3e97b8(++_0x229afa);}(_0x0fcf,0x82));var _0xf0fc=function(_0x12c3e9,_0x58ed2c){_0x12c3e9=_0x12c3e9-0x0;var _0x158a1c=_0x0fcf[_0x12c3e9];return _0x158a1c;};'use strict';var WhatsappQueueEvents=require(_0xf0fc('0x0'));var events=['save',_0xf0fc('0x1'),'update'];function createListener(_0xd48d5c,_0x47e2cc){return function(_0x21b90e){_0x47e2cc['emit'](_0xd48d5c,_0x21b90e);};}function removeListener(_0x530265,_0x4d0c05){return function(){WhatsappQueueEvents[_0xf0fc('0x2')](_0x530265,_0x4d0c05);};}exports[_0xf0fc('0x3')]=function(_0x45c215){for(var _0x3ead00=0x0,_0x22d191=events[_0xf0fc('0x4')];_0x3ead00<_0x22d191;_0x3ead00++){var _0x4334fb=events[_0x3ead00];var _0x4e6218=createListener(_0xf0fc('0x5')+_0x4334fb,_0x45c215);WhatsappQueueEvents['on'](_0x4334fb,_0x4e6218);}};