32463d3b4875664e9db078b11d4bf6b6ca60fefe
[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 _0x87b5=['update','emit','removeListener','register','userVoiceQueueRt:','save','remove'];(function(_0x528651,_0x85fecd){var _0x425450=function(_0x438f0d){while(--_0x438f0d){_0x528651['push'](_0x528651['shift']());}};_0x425450(++_0x85fecd);}(_0x87b5,0x15c));var _0x587b=function(_0x1f3867,_0x47cc5e){_0x1f3867=_0x1f3867-0x0;var _0x4425f0=_0x87b5[_0x1f3867];return _0x4425f0;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x587b('0x0'),_0x587b('0x1'),_0x587b('0x2')];function createListener(_0x2475f2,_0xd32aa6){return function(_0x2b43ab){_0xd32aa6[_0x587b('0x3')](_0x2475f2,_0x2b43ab);};}function removeListener(_0x5f25b6,_0x54cfdf){return function(){UserVoiceQueueRtEvents[_0x587b('0x4')](_0x5f25b6,_0x54cfdf);};}exports[_0x587b('0x5')]=function(_0x22574f){for(var _0x5e3e84=0x0,_0x64429f=events['length'];_0x5e3e84<_0x64429f;_0x5e3e84++){var _0x1c1e6c=events[_0x5e3e84];var _0x5c03df=createListener(_0x587b('0x6')+_0x1c1e6c,_0x22574f);UserVoiceQueueRtEvents['on'](_0x1c1e6c,_0x5c03df);}};