Built motion from commit 7ab0e143.|2.5.49
[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 _0x02ca=['emit','removeListener','register','length','./userVoiceQueueRt.events','remove','update'];(function(_0x490c02,_0x2faa1b){var _0x4604ab=function(_0x336e0d){while(--_0x336e0d){_0x490c02['push'](_0x490c02['shift']());}};_0x4604ab(++_0x2faa1b);}(_0x02ca,0x97));var _0xa02c=function(_0x20b31e,_0x341e4a){_0x20b31e=_0x20b31e-0x0;var _0x5cd463=_0x02ca[_0x20b31e];return _0x5cd463;};'use strict';var UserVoiceQueueRtEvents=require(_0xa02c('0x0'));var events=['save',_0xa02c('0x1'),_0xa02c('0x2')];function createListener(_0x306f43,_0x182120){return function(_0x573a2b){_0x182120[_0xa02c('0x3')](_0x306f43,_0x573a2b);};}function removeListener(_0x18c88a,_0x31c03a){return function(){UserVoiceQueueRtEvents[_0xa02c('0x4')](_0x18c88a,_0x31c03a);};}exports[_0xa02c('0x5')]=function(_0x46533c){for(var _0xa0f1fe=0x0,_0x29c64a=events[_0xa02c('0x6')];_0xa0f1fe<_0x29c64a;_0xa0f1fe++){var _0x2b96c5=events[_0xa0f1fe];var _0x4033b9=createListener('userVoiceQueueRt:'+_0x2b96c5,_0x46533c);UserVoiceQueueRtEvents['on'](_0x2b96c5,_0x4033b9);}};