c2135dd607251c954471b9969731e0ad160f7b6f
[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 _0x0272=['register','./userVoiceQueueRt.events','save','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0272,0x15a));var _0x2027=function(_0x15e1d6,_0x2fc2ad){_0x15e1d6=_0x15e1d6-0x0;var _0x3e07de=_0x0272[_0x15e1d6];return _0x3e07de;};'use strict';var UserVoiceQueueRtEvents=require(_0x2027('0x0'));var events=[_0x2027('0x1'),'remove',_0x2027('0x2')];function createListener(_0x2cf50c,_0x3ead68){return function(_0xcc1624){_0x3ead68[_0x2027('0x3')](_0x2cf50c,_0xcc1624);};}function removeListener(_0x2ec914,_0x5844b7){return function(){UserVoiceQueueRtEvents['removeListener'](_0x2ec914,_0x5844b7);};}exports[_0x2027('0x4')]=function(_0x1ea303){for(var _0x2deefc=0x0,_0x54a8f1=events['length'];_0x2deefc<_0x54a8f1;_0x2deefc++){var _0x56c261=events[_0x2deefc];var _0x2ac3bd=createListener('userVoiceQueueRt:'+_0x56c261,_0x1ea303);UserVoiceQueueRtEvents['on'](_0x56c261,_0x2ac3bd);}};