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 _0x1b96=['register','length','whatsappQueue:','./whatsappQueue.events','update'];(function(_0x5459b0,_0x4d2ef8){var _0x675a35=function(_0x538e11){while(--_0x538e11){_0x5459b0['push'](_0x5459b0['shift']());}};_0x675a35(++_0x4d2ef8);}(_0x1b96,0x1e8));var _0x61b9=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x1b96[_0x3b380d];return _0x54502b;};'use strict';var WhatsappQueueEvents=require(_0x61b9('0x0'));var events=['save','remove',_0x61b9('0x1')];function createListener(_0x1bb480,_0x116277){return function(_0xa0ea29){_0x116277['emit'](_0x1bb480,_0xa0ea29);};}function removeListener(_0x29813d,_0x27988f){return function(){WhatsappQueueEvents['removeListener'](_0x29813d,_0x27988f);};}exports[_0x61b9('0x2')]=function(_0x2ab232){for(var _0x1bc074=0x0,_0x3fe438=events[_0x61b9('0x3')];_0x1bc074<_0x3fe438;_0x1bc074++){var _0x325c56=events[_0x1bc074];var _0x142e8b=createListener(_0x61b9('0x4')+_0x325c56,_0x2ab232);WhatsappQueueEvents['on'](_0x325c56,_0x142e8b);}};