Built motion from commit (unavailable).|2.5.2
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0xa2b5=['save','remove','emit','removeListener','length','voiceQueueReport:','./voiceQueueReport.events'];(function(_0x478dbb,_0x48b454){var _0x3ff700=function(_0x95f597){while(--_0x95f597){_0x478dbb['push'](_0x478dbb['shift']());}};_0x3ff700(++_0x48b454);}(_0xa2b5,0x133));var _0x5a2b=function(_0x7bb562,_0x19a552){_0x7bb562=_0x7bb562-0x0;var _0x417df2=_0xa2b5[_0x7bb562];return _0x417df2;};'use strict';var VoiceQueueReportEvents=require(_0x5a2b('0x0'));var events=[_0x5a2b('0x1'),_0x5a2b('0x2'),'update'];function createListener(_0x13b211,_0x32b8c5){return function(_0x11705d){_0x32b8c5[_0x5a2b('0x3')](_0x13b211,_0x11705d);};}function removeListener(_0x3e92d4,_0x42bd7b){return function(){VoiceQueueReportEvents[_0x5a2b('0x4')](_0x3e92d4,_0x42bd7b);};}exports['register']=function(_0x24536f){for(var _0xba229d=0x0,_0x190efd=events[_0x5a2b('0x5')];_0xba229d<_0x190efd;_0xba229d++){var _0x55845e=events[_0xba229d];var _0x1d2080=createListener(_0x5a2b('0x6')+_0x55845e,_0x24536f);VoiceQueueReportEvents['on'](_0x55845e,_0x1d2080);}};