Built motion from commit (unavailable).|2.5.2
[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 _0xc49f=['save','remove','update','removeListener','length','userVoiceQueueRt:'];(function(_0x2d5805,_0x21954e){var _0x1cae4f=function(_0x53ff24){while(--_0x53ff24){_0x2d5805['push'](_0x2d5805['shift']());}};_0x1cae4f(++_0x21954e);}(_0xc49f,0x1bc));var _0xfc49=function(_0x3c1328,_0x237895){_0x3c1328=_0x3c1328-0x0;var _0x3a0544=_0xc49f[_0x3c1328];return _0x3a0544;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0xfc49('0x0'),_0xfc49('0x1'),_0xfc49('0x2')];function createListener(_0x1df1bd,_0x207c2a){return function(_0x824356){_0x207c2a['emit'](_0x1df1bd,_0x824356);};}function removeListener(_0x4ff7a5,_0x1ff776){return function(){UserVoiceQueueRtEvents[_0xfc49('0x3')](_0x4ff7a5,_0x1ff776);};}exports['register']=function(_0xe8b222){for(var _0xf8576f=0x0,_0x5aab2a=events[_0xfc49('0x4')];_0xf8576f<_0x5aab2a;_0xf8576f++){var _0x10c8e0=events[_0xf8576f];var _0x2ef21b=createListener(_0xfc49('0x5')+_0x10c8e0,_0xe8b222);UserVoiceQueueRtEvents['on'](_0x10c8e0,_0x2ef21b);}};