Built motion from commit 43538d75.|2.5.35
[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 _0xe767=['update','register','length','userVoiceQueueRt:','save','remove'];(function(_0x2f6528,_0x43ab3e){var _0x57367f=function(_0x2ad1b3){while(--_0x2ad1b3){_0x2f6528['push'](_0x2f6528['shift']());}};_0x57367f(++_0x43ab3e);}(_0xe767,0x11e));var _0x7e76=function(_0x490cc1,_0x137561){_0x490cc1=_0x490cc1-0x0;var _0x37471d=_0xe767[_0x490cc1];return _0x37471d;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x7e76('0x0'),_0x7e76('0x1'),_0x7e76('0x2')];function createListener(_0x431b0e,_0xcb0d17){return function(_0x1418d2){_0xcb0d17['emit'](_0x431b0e,_0x1418d2);};}function removeListener(_0x4fa707,_0x473b73){return function(){UserVoiceQueueRtEvents['removeListener'](_0x4fa707,_0x473b73);};}exports[_0x7e76('0x3')]=function(_0x5d179a){for(var _0x333c38=0x0,_0x2a703b=events[_0x7e76('0x4')];_0x333c38<_0x2a703b;_0x333c38++){var _0x3aaa07=events[_0x333c38];var _0x46ddea=createListener(_0x7e76('0x5')+_0x3aaa07,_0x5d179a);UserVoiceQueueRtEvents['on'](_0x3aaa07,_0x46ddea);}};