Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / whatsappQueue / whatsappQueue.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x8fc0=['update','emit','removeListener','register','length','whatsappQueue:','remove'];(function(_0x2e124d,_0x1fda78){var _0x30786a=function(_0x2ae531){while(--_0x2ae531){_0x2e124d['push'](_0x2e124d['shift']());}};_0x30786a(++_0x1fda78);}(_0x8fc0,0x1e9));var _0x08fc=function(_0x42bdad,_0x12836c){_0x42bdad=_0x42bdad-0x0;var _0x122626=_0x8fc0[_0x42bdad];return _0x122626;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=['save',_0x08fc('0x0'),_0x08fc('0x1')];function createListener(_0x477eb5,_0x409c6c){return function(_0x373218){_0x409c6c[_0x08fc('0x2')](_0x477eb5,_0x373218);};}function removeListener(_0x197f7a,_0x1c75bc){return function(){WhatsappQueueEvents[_0x08fc('0x3')](_0x197f7a,_0x1c75bc);};}exports[_0x08fc('0x4')]=function(_0x5c6997){for(var _0x53ecdd=0x0,_0x37abd2=events[_0x08fc('0x5')];_0x53ecdd<_0x37abd2;_0x53ecdd++){var _0x1c14ba=events[_0x53ecdd];var _0x35ec91=createListener(_0x08fc('0x6')+_0x1c14ba,_0x5c6997);WhatsappQueueEvents['on'](_0x1c14ba,_0x35ec91);}};