Built motion from commit bab6f49e.|2.6.17
[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 _0xc9c3=['remove','emit','removeListener','length','userVoiceQueueRt:'];(function(_0x1cc8fe,_0x105328){var _0x230054=function(_0x1a1b56){while(--_0x1a1b56){_0x1cc8fe['push'](_0x1cc8fe['shift']());}};_0x230054(++_0x105328);}(_0xc9c3,0x96));var _0x3c9c=function(_0x197c16,_0x5c7cf8){_0x197c16=_0x197c16-0x0;var _0x5be01a=_0xc9c3[_0x197c16];return _0x5be01a;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save',_0x3c9c('0x0'),'update'];function createListener(_0xf34a69,_0x11a901){return function(_0x4185dc){_0x11a901[_0x3c9c('0x1')](_0xf34a69,_0x4185dc);};}function removeListener(_0x2b0045,_0xe07e05){return function(){UserVoiceQueueRtEvents[_0x3c9c('0x2')](_0x2b0045,_0xe07e05);};}exports['register']=function(_0x48b219){for(var _0x5c86bd=0x0,_0x5a2836=events[_0x3c9c('0x3')];_0x5c86bd<_0x5a2836;_0x5c86bd++){var _0xc35e75=events[_0x5c86bd];var _0x2eb946=createListener(_0x3c9c('0x4')+_0xc35e75,_0x48b219);UserVoiceQueueRtEvents['on'](_0xc35e75,_0x2eb946);}};