Built motion from commit (unavailable).|2.5.16
[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 _0x8b02=['register','length','userVoiceQueueRt:','save','remove','emit','removeListener'];(function(_0x556810,_0x341a2c){var _0x3eac2e=function(_0xedc37c){while(--_0xedc37c){_0x556810['push'](_0x556810['shift']());}};_0x3eac2e(++_0x341a2c);}(_0x8b02,0x1a7));var _0x28b0=function(_0x3709e3,_0x3383d4){_0x3709e3=_0x3709e3-0x0;var _0x4e3e8d=_0x8b02[_0x3709e3];return _0x4e3e8d;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x28b0('0x0'),_0x28b0('0x1'),'update'];function createListener(_0x5450df,_0x3faf06){return function(_0x54718a){_0x3faf06[_0x28b0('0x2')](_0x5450df,_0x54718a);};}function removeListener(_0x3a8fed,_0xda5dff){return function(){UserVoiceQueueRtEvents[_0x28b0('0x3')](_0x3a8fed,_0xda5dff);};}exports[_0x28b0('0x4')]=function(_0x485b4f){for(var _0x36de46=0x0,_0x42f448=events[_0x28b0('0x5')];_0x36de46<_0x42f448;_0x36de46++){var _0x11b58a=events[_0x36de46];var _0x387cab=createListener(_0x28b0('0x6')+_0x11b58a,_0x485b4f);UserVoiceQueueRtEvents['on'](_0x11b58a,_0x387cab);}};