2773c6685e9166913b20a3b02d97577a200211ee
[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 _0xf00c=['register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','update','emit','removeListener'];(function(_0x28d248,_0x1313c0){var _0x529996=function(_0x49334d){while(--_0x49334d){_0x28d248['push'](_0x28d248['shift']());}};_0x529996(++_0x1313c0);}(_0xf00c,0xe3));var _0xcf00=function(_0x3f3b09,_0x43fc8a){_0x3f3b09=_0x3f3b09-0x0;var _0x157d38=_0xf00c[_0x3f3b09];return _0x157d38;};'use strict';var UserVoiceQueueRtEvents=require(_0xcf00('0x0'));var events=[_0xcf00('0x1'),'remove',_0xcf00('0x2')];function createListener(_0x4ce011,_0x3da5b9){return function(_0x442f98){_0x3da5b9[_0xcf00('0x3')](_0x4ce011,_0x442f98);};}function removeListener(_0x471de0,_0x2588a2){return function(){UserVoiceQueueRtEvents[_0xcf00('0x4')](_0x471de0,_0x2588a2);};}exports[_0xcf00('0x5')]=function(_0x2d2635){for(var _0x5d160e=0x0,_0x11412a=events[_0xcf00('0x6')];_0x5d160e<_0x11412a;_0x5d160e++){var _0x2b924d=events[_0x5d160e];var _0x2f92bc=createListener(_0xcf00('0x7')+_0x2b924d,_0x2d2635);UserVoiceQueueRtEvents['on'](_0x2b924d,_0x2f92bc);}};