bfb120049be21b65acb2445309a3e0ebaa019c6d
[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 _0x4e05=['./userVoiceQueueRt.events','save','remove','update','emit','register','length','userVoiceQueueRt:'];(function(_0x1f9f37,_0x18776e){var _0x21c080=function(_0x4acb93){while(--_0x4acb93){_0x1f9f37['push'](_0x1f9f37['shift']());}};_0x21c080(++_0x18776e);}(_0x4e05,0xc8));var _0x54e0=function(_0x24b090,_0x502f83){_0x24b090=_0x24b090-0x0;var _0x2005b2=_0x4e05[_0x24b090];return _0x2005b2;};'use strict';var UserVoiceQueueRtEvents=require(_0x54e0('0x0'));var events=[_0x54e0('0x1'),_0x54e0('0x2'),_0x54e0('0x3')];function createListener(_0x199153,_0x25fa0b){return function(_0x4c667a){_0x25fa0b[_0x54e0('0x4')](_0x199153,_0x4c667a);};}function removeListener(_0x110c78,_0x1062db){return function(){UserVoiceQueueRtEvents['removeListener'](_0x110c78,_0x1062db);};}exports[_0x54e0('0x5')]=function(_0x2f50bf){for(var _0xb522eb=0x0,_0x42526e=events[_0x54e0('0x6')];_0xb522eb<_0x42526e;_0xb522eb++){var _0x5b0285=events[_0xb522eb];var _0x426357=createListener(_0x54e0('0x7')+_0x5b0285,_0x2f50bf);UserVoiceQueueRtEvents['on'](_0x5b0285,_0x426357);}};