93721fc7862779f77ddf3e2bf93f644ff42664b4
[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 _0x8a2a=['register','save','remove','emit'];(function(_0x48078b,_0x56468e){var _0x383c80=function(_0x25bf79){while(--_0x25bf79){_0x48078b['push'](_0x48078b['shift']());}};_0x383c80(++_0x56468e);}(_0x8a2a,0x1d5));var _0xa8a2=function(_0x36c5b0,_0x5001da){_0x36c5b0=_0x36c5b0-0x0;var _0xf19333=_0x8a2a[_0x36c5b0];return _0xf19333;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0xa8a2('0x0'),_0xa8a2('0x1'),'update'];function createListener(_0x371a4c,_0x5855cc){return function(_0x531b37){_0x5855cc[_0xa8a2('0x2')](_0x371a4c,_0x531b37);};}function removeListener(_0x4b1790,_0x3248a2){return function(){UserVoiceQueueRtEvents['removeListener'](_0x4b1790,_0x3248a2);};}exports[_0xa8a2('0x3')]=function(_0x2e0587){for(var _0x33b3d8=0x0,_0x15eb4a=events['length'];_0x33b3d8<_0x15eb4a;_0x33b3d8++){var _0x1596f6=events[_0x33b3d8];var _0x14d7cf=createListener('userVoiceQueueRt:'+_0x1596f6,_0x2e0587);UserVoiceQueueRtEvents['on'](_0x1596f6,_0x14d7cf);}};