Built motion from commit 449495f6.|2.6.27
[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 _0x00cd=['./userVoiceQueueRt.events','save','remove','emit','register','length','userVoiceQueueRt:'];(function(_0x310504,_0x26ad95){var _0x5b36d0=function(_0x253f28){while(--_0x253f28){_0x310504['push'](_0x310504['shift']());}};_0x5b36d0(++_0x26ad95);}(_0x00cd,0xee));var _0xd00c=function(_0x260b48,_0x117977){_0x260b48=_0x260b48-0x0;var _0x3f730b=_0x00cd[_0x260b48];return _0x3f730b;};'use strict';var UserVoiceQueueRtEvents=require(_0xd00c('0x0'));var events=[_0xd00c('0x1'),_0xd00c('0x2'),'update'];function createListener(_0x4f7c2a,_0x209fc9){return function(_0x471a0d){_0x209fc9[_0xd00c('0x3')](_0x4f7c2a,_0x471a0d);};}function removeListener(_0x2291b2,_0x2187fa){return function(){UserVoiceQueueRtEvents['removeListener'](_0x2291b2,_0x2187fa);};}exports[_0xd00c('0x4')]=function(_0xbeac62){for(var _0x2eb6ca=0x0,_0x6af060=events[_0xd00c('0x5')];_0x2eb6ca<_0x6af060;_0x2eb6ca++){var _0x751801=events[_0x2eb6ca];var _0x40c5ad=createListener(_0xd00c('0x6')+_0x751801,_0xbeac62);UserVoiceQueueRtEvents['on'](_0x751801,_0x40c5ad);}};