Built motion from commit (unavailable).|2.5.25
[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 _0x3a33=['save','update','emit','removeListener','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events'];(function(_0x48cb7,_0x15c04d){var _0x280262=function(_0x17edbf){while(--_0x17edbf){_0x48cb7['push'](_0x48cb7['shift']());}};_0x280262(++_0x15c04d);}(_0x3a33,0x107));var _0x33a3=function(_0x5783f4,_0x4a9e0a){_0x5783f4=_0x5783f4-0x0;var _0x28e380=_0x3a33[_0x5783f4];return _0x28e380;};'use strict';var UserVoiceQueueRtEvents=require(_0x33a3('0x0'));var events=[_0x33a3('0x1'),'remove',_0x33a3('0x2')];function createListener(_0x18eb16,_0xe5d421){return function(_0x3908a2){_0xe5d421[_0x33a3('0x3')](_0x18eb16,_0x3908a2);};}function removeListener(_0x1802c6,_0x13c716){return function(){UserVoiceQueueRtEvents[_0x33a3('0x4')](_0x1802c6,_0x13c716);};}exports[_0x33a3('0x5')]=function(_0x1120d6){for(var _0x2d3cd4=0x0,_0x2e2699=events[_0x33a3('0x6')];_0x2d3cd4<_0x2e2699;_0x2d3cd4++){var _0x9d69a9=events[_0x2d3cd4];var _0x36d967=createListener(_0x33a3('0x7')+_0x9d69a9,_0x1120d6);UserVoiceQueueRtEvents['on'](_0x9d69a9,_0x36d967);}};