Built motion from commit (unavailable).|2.5.28
[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 _0x3f56=['register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','remove'];(function(_0x554acd,_0x350d2a){var _0x1d2a22=function(_0xedd80f){while(--_0xedd80f){_0x554acd['push'](_0x554acd['shift']());}};_0x1d2a22(++_0x350d2a);}(_0x3f56,0x120));var _0x63f5=function(_0x3ed3b7,_0x43bd4b){_0x3ed3b7=_0x3ed3b7-0x0;var _0x4413c6=_0x3f56[_0x3ed3b7];return _0x4413c6;};'use strict';var UserVoiceQueueRtEvents=require(_0x63f5('0x0'));var events=['save',_0x63f5('0x1'),'update'];function createListener(_0x286689,_0x3ae4c4){return function(_0x27e7d3){_0x3ae4c4['emit'](_0x286689,_0x27e7d3);};}function removeListener(_0x53b21e,_0x576f56){return function(){UserVoiceQueueRtEvents['removeListener'](_0x53b21e,_0x576f56);};}exports[_0x63f5('0x2')]=function(_0x14a0a9){for(var _0x462df0=0x0,_0x50f382=events[_0x63f5('0x3')];_0x462df0<_0x50f382;_0x462df0++){var _0x58b931=events[_0x462df0];var _0x3825ae=createListener(_0x63f5('0x4')+_0x58b931,_0x14a0a9);UserVoiceQueueRtEvents['on'](_0x58b931,_0x3825ae);}};