f6a8badb1c6b6ff66fa59dd37c42303ac853a7bf
[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 _0xfd3a=['voiceQueueReport:','./voiceQueueReport.events','remove','update','removeListener','register','length'];(function(_0x595270,_0x19282f){var _0x215e9a=function(_0x36ee85){while(--_0x36ee85){_0x595270['push'](_0x595270['shift']());}};_0x215e9a(++_0x19282f);}(_0xfd3a,0x189));var _0xafd3=function(_0x3a69a6,_0x524813){_0x3a69a6=_0x3a69a6-0x0;var _0x3b20c9=_0xfd3a[_0x3a69a6];return _0x3b20c9;};'use strict';var VoiceQueueReportEvents=require(_0xafd3('0x0'));var events=['save',_0xafd3('0x1'),_0xafd3('0x2')];function createListener(_0x1f8084,_0x45f737){return function(_0x5d8019){_0x45f737['emit'](_0x1f8084,_0x5d8019);};}function removeListener(_0x275f9f,_0x463338){return function(){VoiceQueueReportEvents[_0xafd3('0x3')](_0x275f9f,_0x463338);};}exports[_0xafd3('0x4')]=function(_0x25f856){for(var _0x146d55=0x0,_0x2ae048=events[_0xafd3('0x5')];_0x146d55<_0x2ae048;_0x146d55++){var _0x49c7c1=events[_0x146d55];var _0x254f05=createListener(_0xafd3('0x6')+_0x49c7c1,_0x25f856);VoiceQueueReportEvents['on'](_0x49c7c1,_0x254f05);}};