Built motion from commit (unavailable).|2.5.15
[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 _0xcc68=['update','emit','removeListener','register','length','userVoiceQueueRt:','save','remove'];(function(_0x47bc58,_0x1e1998){var _0x4a0860=function(_0x2a5b23){while(--_0x2a5b23){_0x47bc58['push'](_0x47bc58['shift']());}};_0x4a0860(++_0x1e1998);}(_0xcc68,0xa6));var _0x8cc6=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0xcc68[_0x59ee6f];return _0x4c0979;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x8cc6('0x0'),_0x8cc6('0x1'),_0x8cc6('0x2')];function createListener(_0x19ac35,_0x7c5c49){return function(_0x4c569f){_0x7c5c49[_0x8cc6('0x3')](_0x19ac35,_0x4c569f);};}function removeListener(_0x27cabc,_0x406fcb){return function(){UserVoiceQueueRtEvents[_0x8cc6('0x4')](_0x27cabc,_0x406fcb);};}exports[_0x8cc6('0x5')]=function(_0x2a6200){for(var _0x43de87=0x0,_0x37a4cb=events[_0x8cc6('0x6')];_0x43de87<_0x37a4cb;_0x43de87++){var _0x4dd1f5=events[_0x43de87];var _0x337fab=createListener(_0x8cc6('0x7')+_0x4dd1f5,_0x2a6200);UserVoiceQueueRtEvents['on'](_0x4dd1f5,_0x337fab);}};