Built motion from commit (unavailable).|2.5.31
[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 _0xb9f6=['length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','remove','update','emit','removeListener','register'];(function(_0x16828c,_0x182eb7){var _0x8478d3=function(_0x55d157){while(--_0x55d157){_0x16828c['push'](_0x16828c['shift']());}};_0x8478d3(++_0x182eb7);}(_0xb9f6,0x14f));var _0x6b9f=function(_0x26fece,_0x260464){_0x26fece=_0x26fece-0x0;var _0x18f2c1=_0xb9f6[_0x26fece];return _0x18f2c1;};'use strict';var UserVoiceQueueRtEvents=require(_0x6b9f('0x0'));var events=[_0x6b9f('0x1'),_0x6b9f('0x2'),_0x6b9f('0x3')];function createListener(_0x1522e2,_0x55dcad){return function(_0xfb4bf){_0x55dcad[_0x6b9f('0x4')](_0x1522e2,_0xfb4bf);};}function removeListener(_0x533905,_0x1f7f90){return function(){UserVoiceQueueRtEvents[_0x6b9f('0x5')](_0x533905,_0x1f7f90);};}exports[_0x6b9f('0x6')]=function(_0x5837fb){for(var _0x4613a8=0x0,_0x1d1788=events[_0x6b9f('0x7')];_0x4613a8<_0x1d1788;_0x4613a8++){var _0x3eff14=events[_0x4613a8];var _0x14413f=createListener(_0x6b9f('0x8')+_0x3eff14,_0x5837fb);UserVoiceQueueRtEvents['on'](_0x3eff14,_0x14413f);}};