Built motion from commit 10af8726.|2.6.34
[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 _0xf50b=['removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save','update'];(function(_0x4b7b62,_0x4920a9){var _0x2280df=function(_0x21e1f8){while(--_0x21e1f8){_0x4b7b62['push'](_0x4b7b62['shift']());}};_0x2280df(++_0x4920a9);}(_0xf50b,0xc8));var _0xbf50=function(_0x43e8c1,_0x1740b3){_0x43e8c1=_0x43e8c1-0x0;var _0x8a75d3=_0xf50b[_0x43e8c1];return _0x8a75d3;};'use strict';var VoiceQueueReportEvents=require(_0xbf50('0x0'));var events=[_0xbf50('0x1'),'remove',_0xbf50('0x2')];function createListener(_0x18c2f1,_0x3336bb){return function(_0x443bf8){_0x3336bb['emit'](_0x18c2f1,_0x443bf8);};}function removeListener(_0x32217d,_0x4f5ba8){return function(){VoiceQueueReportEvents[_0xbf50('0x3')](_0x32217d,_0x4f5ba8);};}exports[_0xbf50('0x4')]=function(_0x1ecb62){for(var _0x117cc8=0x0,_0x3dd305=events[_0xbf50('0x5')];_0x117cc8<_0x3dd305;_0x117cc8++){var _0xce290=events[_0x117cc8];var _0x497c4c=createListener(_0xbf50('0x6')+_0xce290,_0x1ecb62);VoiceQueueReportEvents['on'](_0xce290,_0x497c4c);}};