Built motion from commit 85328c08.|2.5.50
[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 _0xed20=['register','length','./userVoiceQueueRt.events','save','remove','emit'];(function(_0x247cdd,_0x2f2a84){var _0x3f9339=function(_0x4677ca){while(--_0x4677ca){_0x247cdd['push'](_0x247cdd['shift']());}};_0x3f9339(++_0x2f2a84);}(_0xed20,0xce));var _0x0ed2=function(_0x30258a,_0x363597){_0x30258a=_0x30258a-0x0;var _0x28b347=_0xed20[_0x30258a];return _0x28b347;};'use strict';var UserVoiceQueueRtEvents=require(_0x0ed2('0x0'));var events=[_0x0ed2('0x1'),_0x0ed2('0x2'),'update'];function createListener(_0x2a9ed0,_0x380277){return function(_0x1d5c58){_0x380277[_0x0ed2('0x3')](_0x2a9ed0,_0x1d5c58);};}function removeListener(_0x395e2d,_0x20cac9){return function(){UserVoiceQueueRtEvents['removeListener'](_0x395e2d,_0x20cac9);};}exports[_0x0ed2('0x4')]=function(_0x88640a){for(var _0x5c686a=0x0,_0x114121=events[_0x0ed2('0x5')];_0x5c686a<_0x114121;_0x5c686a++){var _0x65848d=events[_0x5c686a];var _0x39498b=createListener('userVoiceQueueRt:'+_0x65848d,_0x88640a);UserVoiceQueueRtEvents['on'](_0x65848d,_0x39498b);}};