Built motion from commit (unavailable).|2.5.24
[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 _0xd05b=['./userVoiceQueueRt.events','save','remove','update','emit','removeListener','register','length'];(function(_0x2891d1,_0x2ddd3e){var _0x486948=function(_0x13fa0f){while(--_0x13fa0f){_0x2891d1['push'](_0x2891d1['shift']());}};_0x486948(++_0x2ddd3e);}(_0xd05b,0x158));var _0xbd05=function(_0x49ca18,_0x5e6d05){_0x49ca18=_0x49ca18-0x0;var _0x145d54=_0xd05b[_0x49ca18];return _0x145d54;};'use strict';var UserVoiceQueueRtEvents=require(_0xbd05('0x0'));var events=[_0xbd05('0x1'),_0xbd05('0x2'),_0xbd05('0x3')];function createListener(_0x421773,_0x3e1369){return function(_0x3148d3){_0x3e1369[_0xbd05('0x4')](_0x421773,_0x3148d3);};}function removeListener(_0x16ec32,_0x3a2735){return function(){UserVoiceQueueRtEvents[_0xbd05('0x5')](_0x16ec32,_0x3a2735);};}exports[_0xbd05('0x6')]=function(_0x592a38){for(var _0x502fe5=0x0,_0x521fc0=events[_0xbd05('0x7')];_0x502fe5<_0x521fc0;_0x502fe5++){var _0x2326a9=events[_0x502fe5];var _0x4f3c9a=createListener('userVoiceQueueRt:'+_0x2326a9,_0x592a38);UserVoiceQueueRtEvents['on'](_0x2326a9,_0x4f3c9a);}};