Built motion from commit 5b761a7b.|2.5.36
[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 _0x3714=['save','update','emit','register','userVoiceQueueRt:','./userVoiceQueueRt.events'];(function(_0x114598,_0x1b2d71){var _0x43a705=function(_0x46c2f8){while(--_0x46c2f8){_0x114598['push'](_0x114598['shift']());}};_0x43a705(++_0x1b2d71);}(_0x3714,0x95));var _0x4371=function(_0x2ef97c,_0x4a4abd){_0x2ef97c=_0x2ef97c-0x0;var _0x1efd9c=_0x3714[_0x2ef97c];return _0x1efd9c;};'use strict';var UserVoiceQueueRtEvents=require(_0x4371('0x0'));var events=[_0x4371('0x1'),'remove',_0x4371('0x2')];function createListener(_0x3f7fa8,_0x301389){return function(_0x497777){_0x301389[_0x4371('0x3')](_0x3f7fa8,_0x497777);};}function removeListener(_0x20929e,_0x2c0435){return function(){UserVoiceQueueRtEvents['removeListener'](_0x20929e,_0x2c0435);};}exports[_0x4371('0x4')]=function(_0x5650a7){for(var _0x349031=0x0,_0x2280c1=events['length'];_0x349031<_0x2280c1;_0x349031++){var _0x31a32f=events[_0x349031];var _0x37af33=createListener(_0x4371('0x5')+_0x31a32f,_0x5650a7);UserVoiceQueueRtEvents['on'](_0x31a32f,_0x37af33);}};