Built motion from commit e02f907f.|2.6.14
[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 _0xb7a7=['remove','update','emit','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save'];(function(_0x4dab14,_0x164ea0){var _0xf41aa=function(_0x305d50){while(--_0x305d50){_0x4dab14['push'](_0x4dab14['shift']());}};_0xf41aa(++_0x164ea0);}(_0xb7a7,0x6e));var _0x7b7a=function(_0x215d04,_0x5efb80){_0x215d04=_0x215d04-0x0;var _0x33f00c=_0xb7a7[_0x215d04];return _0x33f00c;};'use strict';var UserVoiceQueueRtEvents=require(_0x7b7a('0x0'));var events=[_0x7b7a('0x1'),_0x7b7a('0x2'),_0x7b7a('0x3')];function createListener(_0xdc2ef1,_0x517dd4){return function(_0x51de97){_0x517dd4[_0x7b7a('0x4')](_0xdc2ef1,_0x51de97);};}function removeListener(_0x290959,_0x42d678){return function(){UserVoiceQueueRtEvents['removeListener'](_0x290959,_0x42d678);};}exports[_0x7b7a('0x5')]=function(_0x6e7b3c){for(var _0x3739f9=0x0,_0xf003bc=events[_0x7b7a('0x6')];_0x3739f9<_0xf003bc;_0x3739f9++){var _0x1ef0f3=events[_0x3739f9];var _0x27e956=createListener(_0x7b7a('0x7')+_0x1ef0f3,_0x6e7b3c);UserVoiceQueueRtEvents['on'](_0x1ef0f3,_0x27e956);}};