Built motion from commit (unavailable).|2.5.14
[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 _0xf4de=['update','emit','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events'];(function(_0x3894c8,_0x108e06){var _0x4cee9a=function(_0x249d02){while(--_0x249d02){_0x3894c8['push'](_0x3894c8['shift']());}};_0x4cee9a(++_0x108e06);}(_0xf4de,0xdf));var _0xef4d=function(_0x710e3e,_0x51ba90){_0x710e3e=_0x710e3e-0x0;var _0x2df053=_0xf4de[_0x710e3e];return _0x2df053;};'use strict';var VoiceQueueReportEvents=require(_0xef4d('0x0'));var events=['save','remove',_0xef4d('0x1')];function createListener(_0xe2eedc,_0x275bc5){return function(_0x658fcd){_0x275bc5[_0xef4d('0x2')](_0xe2eedc,_0x658fcd);};}function removeListener(_0x425b38,_0x426c3e){return function(){VoiceQueueReportEvents[_0xef4d('0x3')](_0x425b38,_0x426c3e);};}exports[_0xef4d('0x4')]=function(_0x183ea6){for(var _0x2e4625=0x0,_0x595b34=events[_0xef4d('0x5')];_0x2e4625<_0x595b34;_0x2e4625++){var _0x233c3e=events[_0x2e4625];var _0x2db32f=createListener(_0xef4d('0x6')+_0x233c3e,_0x183ea6);VoiceQueueReportEvents['on'](_0x233c3e,_0x2db32f);}};