Built motion from commit (unavailable).|2.5.30
[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 _0x1e4d=['update','emit','removeListener','register','length','./userVoiceQueueRt.events','save','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1e4d,0x1b5));var _0xd1e4=function(_0x234615,_0x2f4c64){_0x234615=_0x234615-0x0;var _0xfb23d3=_0x1e4d[_0x234615];return _0xfb23d3;};'use strict';var UserVoiceQueueRtEvents=require(_0xd1e4('0x0'));var events=[_0xd1e4('0x1'),_0xd1e4('0x2'),_0xd1e4('0x3')];function createListener(_0x5df54f,_0x178b24){return function(_0x967ea1){_0x178b24[_0xd1e4('0x4')](_0x5df54f,_0x967ea1);};}function removeListener(_0x4b4583,_0x37d658){return function(){UserVoiceQueueRtEvents[_0xd1e4('0x5')](_0x4b4583,_0x37d658);};}exports[_0xd1e4('0x6')]=function(_0x5bc699){for(var _0x1f8faa=0x0,_0x26dea8=events[_0xd1e4('0x7')];_0x1f8faa<_0x26dea8;_0x1f8faa++){var _0x179c50=events[_0x1f8faa];var _0x4e3924=createListener('userVoiceQueueRt:'+_0x179c50,_0x5bc699);UserVoiceQueueRtEvents['on'](_0x179c50,_0x4e3924);}};