Built motion from commit (unavailable).|2.5.23
[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 _0x268f=['register','userVoiceQueueRt:','./userVoiceQueueRt.events','save','remove','update','emit','removeListener'];(function(_0x581be7,_0x346716){var _0x74bcad=function(_0x4ac63f){while(--_0x4ac63f){_0x581be7['push'](_0x581be7['shift']());}};_0x74bcad(++_0x346716);}(_0x268f,0xda));var _0xf268=function(_0x394985,_0x2710e3){_0x394985=_0x394985-0x0;var _0x5a84b5=_0x268f[_0x394985];return _0x5a84b5;};'use strict';var UserVoiceQueueRtEvents=require(_0xf268('0x0'));var events=[_0xf268('0x1'),_0xf268('0x2'),_0xf268('0x3')];function createListener(_0x4f235e,_0x58ea63){return function(_0x3132dd){_0x58ea63[_0xf268('0x4')](_0x4f235e,_0x3132dd);};}function removeListener(_0x146592,_0x9e3e38){return function(){UserVoiceQueueRtEvents[_0xf268('0x5')](_0x146592,_0x9e3e38);};}exports[_0xf268('0x6')]=function(_0x418293){for(var _0x22b4f5=0x0,_0x3c6c6d=events['length'];_0x22b4f5<_0x3c6c6d;_0x22b4f5++){var _0x4c4b8e=events[_0x22b4f5];var _0x4d245b=createListener(_0xf268('0x7')+_0x4c4b8e,_0x418293);UserVoiceQueueRtEvents['on'](_0x4c4b8e,_0x4d245b);}};