2d7abe009f3430ab99a77cacd904da5daf8fab0c
[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 _0x66f1=['emit','removeListener','register','length','./userVoiceQueueRt.events','save','remove','update'];(function(_0xc65834,_0x5df6fb){var _0x5da298=function(_0x30fbc2){while(--_0x30fbc2){_0xc65834['push'](_0xc65834['shift']());}};_0x5da298(++_0x5df6fb);}(_0x66f1,0xf4));var _0x166f=function(_0x5557c2,_0x37de81){_0x5557c2=_0x5557c2-0x0;var _0x2c1eff=_0x66f1[_0x5557c2];return _0x2c1eff;};'use strict';var UserVoiceQueueRtEvents=require(_0x166f('0x0'));var events=[_0x166f('0x1'),_0x166f('0x2'),_0x166f('0x3')];function createListener(_0x2db553,_0x1d54ad){return function(_0x248e45){_0x1d54ad[_0x166f('0x4')](_0x2db553,_0x248e45);};}function removeListener(_0x7de522,_0x1d7592){return function(){UserVoiceQueueRtEvents[_0x166f('0x5')](_0x7de522,_0x1d7592);};}exports[_0x166f('0x6')]=function(_0x5ee7c0){for(var _0x45b380=0x0,_0x5bf5d2=events[_0x166f('0x7')];_0x45b380<_0x5bf5d2;_0x45b380++){var _0x1cd867=events[_0x45b380];var _0x2fc951=createListener('userVoiceQueueRt:'+_0x1cd867,_0x5ee7c0);UserVoiceQueueRtEvents['on'](_0x1cd867,_0x2fc951);}};