7e628f525facf683c18adde5367515977b408b7b
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.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 _0x93b6=['register','length','userVoiceQueueRt:','update','removeListener'];(function(_0x3817a9,_0x29e215){var _0x443f30=function(_0x13940b){while(--_0x13940b){_0x3817a9['push'](_0x3817a9['shift']());}};_0x443f30(++_0x29e215);}(_0x93b6,0xa8));var _0x693b=function(_0x34d60b,_0x46b08a){_0x34d60b=_0x34d60b-0x0;var _0x217895=_0x93b6[_0x34d60b];return _0x217895;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save','remove',_0x693b('0x0')];function createListener(_0x323494,_0x404a32){return function(_0x58c022){_0x404a32['emit'](_0x323494,_0x58c022);};}function removeListener(_0x8840cc,_0x400c7c){return function(){UserVoiceQueueRtEvents[_0x693b('0x1')](_0x8840cc,_0x400c7c);};}exports[_0x693b('0x2')]=function(_0x3d1005){for(var _0x211b17=0x0,_0xe4a2d7=events[_0x693b('0x3')];_0x211b17<_0xe4a2d7;_0x211b17++){var _0xb22b4e=events[_0x211b17];var _0xb62170=createListener(_0x693b('0x4')+_0xb22b4e,_0x3d1005);UserVoiceQueueRtEvents['on'](_0xb22b4e,_0xb62170);}};