Built motion from commit 14f81dd6e.|1.0.35
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 963cbeb..b3aa1a2 100644 (file)
@@ -1 +1 @@
-var _0x7e24=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x45\x78\x74\x72\x61\x63\x74\x65\x64\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x66\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x69\x64","\x75\x73\x65\x72","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x72\x65\x70\x6F\x72\x74\x73","\x73\x61\x76\x65\x6E\x61\x6D\x65","\x6A\x6F\x69\x6E","\x65\x6E\x63\x6F\x64\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x74\x72\x6F\x79","\x52\x5F\x4F\x4B","\x57\x5F\x4F\x4B","\x46\x69\x6C\x65\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x20\x6F\x72\x20\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x70\x65\x72\x6D\x69\x74\x74\x65\x64","\x65\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x20\x64\x65\x6C\x65\x74\x69\x6E\x67\x20\x66\x69\x6C\x65\x20\x3A","\x66\x69\x6C\x65\x20\x64\x65\x6C\x65\x74\x65\x64","\x64\x65\x62\x75\x67","\x75\x6E\x6C\x69\x6E\x6B","\x61\x63\x63\x65\x73\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x70\x75\x73\x68","\x69\x64\x73","\x73\x74\x61\x63\x6B"];_0x7e24[0];var _=require(_0x7e24[1]);var ExtractedReport=require(_0x7e24[3])[_0x7e24[2]];var util=require(_0x7e24[4]);var path=require(_0x7e24[5]);var moment=require(_0x7e24[6]);var config=require(_0x7e24[7]);var base64=require(_0x7e24[8]);var fs=require(_0x7e24[9]);var Util=require(_0x7e24[10]);var logger=require(_0x7e24[12])(_0x7e24[11]);exports[_0x7e24[13]]= function(_0x1551xb,_0x1551xc,_0x1551xd){switch(_0x1551xb[_0x7e24[20]][_0x7e24[23]]){case _0x7e24[20]:return ExtractedReport[_0x7e24[22]](Util[_0x7e24[21]](_0x1551xb[_0x7e24[18]],{UserId:_0x1551xb[_0x7e24[20]][_0x7e24[19]]}))[_0x7e24[17]](function(_0x1551xf){_0x1551xc[_0x7e24[16]](200)[_0x7e24[15]](_0x1551xf)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)});default:return ExtractedReport[_0x7e24[22]](Util[_0x7e24[21]](_0x1551xb[_0x7e24[18]]))[_0x7e24[17]](function(_0x1551xf){_0x1551xc[_0x7e24[16]](200)[_0x7e24[15]](_0x1551xf)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})}};exports[_0x7e24[24]]= function(_0x1551xb,_0x1551xc){return ExtractedReport[_0x7e24[27]](_0x1551xb[_0x7e24[26]][_0x7e24[19]])[_0x7e24[17]](function(_0x1551x10){if(!_0x1551x10){return _0x1551xc[_0x7e24[25]](404)};return _0x1551xc[_0x7e24[15]](_0x1551x10)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})};exports[_0x7e24[28]]= function(_0x1551xb,_0x1551xc){return ExtractedReport[_0x7e24[27]](_0x1551xb[_0x7e24[26]][_0x7e24[19]])[_0x7e24[17]](function(_0x1551x11){if(!_0x1551x11){return _0x1551xc[_0x7e24[16]](404)[_0x7e24[15]](_0x1551x11)};var _0x1551x12=path[_0x7e24[34]](config[_0x7e24[29]],_0x7e24[30],_0x7e24[31],_0x7e24[32],_0x1551x11[_0x7e24[33]]);base64[_0x7e24[35]](_0x1551x12,function(_0x1551xe,_0x1551x13){if(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)}else {return _0x1551xc[_0x7e24[16]](200)[_0x7e24[15]]({downloadString:_0x1551x13})}})})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})};exports[_0x7e24[36]]= function(_0x1551xb,_0x1551xc){return ExtractedReport[_0x7e24[36]](_0x1551xb[_0x7e24[37]])[_0x7e24[17]](function(_0x1551x10){return _0x1551xc[_0x7e24[16]](201)[_0x7e24[15]](_0x1551x10)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})};exports[_0x7e24[38]]= function(_0x1551xb,_0x1551xc){return ExtractedReport[_0x7e24[42]]({where:{name:_0x1551xb[_0x7e24[37]][_0x7e24[41]],id:{$ne:_0x1551xb[_0x7e24[37]][_0x7e24[19]]}}})[_0x7e24[17]](function(_0x1551x15){if(!_0x1551x15){return _0x1551xc[_0x7e24[25]](404)};if(_0x1551xb[_0x7e24[37]][_0x7e24[19]]){delete _0x1551xb[_0x7e24[37]][_0x7e24[19]]};return ExtractedReport[_0x7e24[27]](_0x1551xb[_0x7e24[26]][_0x7e24[19]])})[_0x7e24[17]](function(_0x1551x10){if(!_0x1551x10){return _0x1551xc[_0x7e24[25]](404)};var _0x1551x14=_[_0x7e24[39]](_0x1551x10,_0x1551xb[_0x7e24[37]]);return _0x1551x14[_0x7e24[40]]()})[_0x7e24[17]](function(_0x1551x10){return _0x1551xc[_0x7e24[16]](200)[_0x7e24[15]](_0x1551x10)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})};exports[_0x7e24[43]]= function(_0x1551xb,_0x1551xc){var _0x1551x16;return ExtractedReport[_0x7e24[27]](_0x1551xb[_0x7e24[26]][_0x7e24[19]])[_0x7e24[17]](function(_0x1551x10){_0x1551x16= _0x1551x10;if(!_0x1551x10){return _0x1551xc[_0x7e24[25]](404)};return _0x1551x10[_0x7e24[43]]()})[_0x7e24[17]](function(){if(_0x1551x16[_0x7e24[33]]){var _0x1551x12=path[_0x7e24[34]](config[_0x7e24[29]],_0x7e24[30],_0x7e24[31],_0x7e24[32],_0x1551x16[_0x7e24[33]]);fs[_0x7e24[52]](_0x1551x12,fs[_0x7e24[44]]| fs[_0x7e24[45]],function(_0x1551xe){if(_0x1551xe){logger[_0x7e24[47]](_0x7e24[46])}else {fs[_0x7e24[51]](_0x1551x12,function(_0x1551xe){if(_0x1551xe){logger[_0x7e24[47]](_0x7e24[48],_0x1551xe)}else {logger[_0x7e24[50]](_0x7e24[49])}})}})};return _0x1551xc[_0x7e24[25]](204)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})};exports[_0x7e24[53]]= function(_0x1551xb,_0x1551xc){var _0x1551x17;return ExtractedReport[_0x7e24[42]]({where:{id:_0x1551xb[_0x7e24[18]][_0x7e24[57]]}})[_0x7e24[17]](function(_0x1551x18){_0x1551x17= _0x1551x18;var _0x1551x19=[];_0x1551x18[_0x7e24[54]](function(_0x1551x10){_0x1551x19[_0x7e24[56]](_0x1551x10[_0x7e24[43]]())});return _0x1551x19})[_0x7e24[55]]()[_0x7e24[17]](function(){_0x1551x17[_0x7e24[54]](function(_0x1551x10){if(_0x1551x10[_0x7e24[33]]){var _0x1551x12=path[_0x7e24[34]](config[_0x7e24[29]],_0x7e24[30],_0x7e24[31],_0x7e24[32],_0x1551x10[_0x7e24[33]]);fs[_0x7e24[52]](_0x1551x12,fs[_0x7e24[44]]| fs[_0x7e24[45]],function(_0x1551xe){if(_0x1551xe){logger[_0x7e24[47]](_0x7e24[46])}else {fs[_0x7e24[51]](_0x1551x12,function(_0x1551xe){if(_0x1551xe){logger[_0x7e24[47]](_0x7e24[48],_0x1551xe)}else {logger[_0x7e24[50]](_0x7e24[49])}})}})}});return _0x1551xc[_0x7e24[25]](204)})[_0x7e24[14]](function(_0x1551xe){return handleError(_0x1551xc,_0x1551xe)})};function handleError(_0x1551xc,_0x1551xe){logger[_0x7e24[47]](_0x1551xe[_0x7e24[58]]);return _0x1551xc[_0x7e24[16]](500)[_0x7e24[15]](_0x1551xe)}
\ No newline at end of file
+var _0x80aa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x45\x78\x74\x72\x61\x63\x74\x65\x64\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x66\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x69\x64","\x75\x73\x65\x72","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x72\x65\x70\x6F\x72\x74\x73","\x73\x61\x76\x65\x6E\x61\x6D\x65","\x6A\x6F\x69\x6E","\x65\x6E\x63\x6F\x64\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x74\x72\x6F\x79","\x52\x5F\x4F\x4B","\x57\x5F\x4F\x4B","\x46\x69\x6C\x65\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x20\x6F\x72\x20\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x70\x65\x72\x6D\x69\x74\x74\x65\x64","\x65\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x20\x64\x65\x6C\x65\x74\x69\x6E\x67\x20\x66\x69\x6C\x65\x20\x3A","\x66\x69\x6C\x65\x20\x64\x65\x6C\x65\x74\x65\x64","\x64\x65\x62\x75\x67","\x75\x6E\x6C\x69\x6E\x6B","\x61\x63\x63\x65\x73\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x70\x75\x73\x68","\x69\x64\x73","\x73\x74\x61\x63\x6B"];_0x80aa[0];var _=require(_0x80aa[1]);var ExtractedReport=require(_0x80aa[3])[_0x80aa[2]];var util=require(_0x80aa[4]);var path=require(_0x80aa[5]);var moment=require(_0x80aa[6]);var config=require(_0x80aa[7]);var base64=require(_0x80aa[8]);var fs=require(_0x80aa[9]);var Util=require(_0x80aa[10]);var logger=require(_0x80aa[12])(_0x80aa[11]);exports[_0x80aa[13]]= function(_0x1132xb,_0x1132xc,_0x1132xd){switch(_0x1132xb[_0x80aa[20]][_0x80aa[23]]){case _0x80aa[20]:return ExtractedReport[_0x80aa[22]](Util[_0x80aa[21]](_0x1132xb[_0x80aa[18]],{UserId:_0x1132xb[_0x80aa[20]][_0x80aa[19]]}))[_0x80aa[17]](function(_0x1132xf){_0x1132xc[_0x80aa[16]](200)[_0x80aa[15]](_0x1132xf)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)});default:return ExtractedReport[_0x80aa[22]](Util[_0x80aa[21]](_0x1132xb[_0x80aa[18]]))[_0x80aa[17]](function(_0x1132xf){_0x1132xc[_0x80aa[16]](200)[_0x80aa[15]](_0x1132xf)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})}};exports[_0x80aa[24]]= function(_0x1132xb,_0x1132xc){return ExtractedReport[_0x80aa[27]](_0x1132xb[_0x80aa[26]][_0x80aa[19]])[_0x80aa[17]](function(_0x1132x10){if(!_0x1132x10){return _0x1132xc[_0x80aa[25]](404)};return _0x1132xc[_0x80aa[15]](_0x1132x10)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})};exports[_0x80aa[28]]= function(_0x1132xb,_0x1132xc){return ExtractedReport[_0x80aa[27]](_0x1132xb[_0x80aa[26]][_0x80aa[19]])[_0x80aa[17]](function(_0x1132x11){if(!_0x1132x11){return _0x1132xc[_0x80aa[16]](404)[_0x80aa[15]](_0x1132x11)};var _0x1132x12=path[_0x80aa[34]](config[_0x80aa[29]],_0x80aa[30],_0x80aa[31],_0x80aa[32],_0x1132x11[_0x80aa[33]]);base64[_0x80aa[35]](_0x1132x12,function(_0x1132xe,_0x1132x13){if(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)}else {return _0x1132xc[_0x80aa[16]](200)[_0x80aa[15]]({downloadString:_0x1132x13})}})})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})};exports[_0x80aa[36]]= function(_0x1132xb,_0x1132xc){return ExtractedReport[_0x80aa[36]](_0x1132xb[_0x80aa[37]])[_0x80aa[17]](function(_0x1132x10){return _0x1132xc[_0x80aa[16]](201)[_0x80aa[15]](_0x1132x10)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})};exports[_0x80aa[38]]= function(_0x1132xb,_0x1132xc){return ExtractedReport[_0x80aa[42]]({where:{name:_0x1132xb[_0x80aa[37]][_0x80aa[41]],id:{$ne:_0x1132xb[_0x80aa[37]][_0x80aa[19]]}}})[_0x80aa[17]](function(_0x1132x15){if(!_0x1132x15){return _0x1132xc[_0x80aa[25]](404)};if(_0x1132xb[_0x80aa[37]][_0x80aa[19]]){delete _0x1132xb[_0x80aa[37]][_0x80aa[19]]};return ExtractedReport[_0x80aa[27]](_0x1132xb[_0x80aa[26]][_0x80aa[19]])})[_0x80aa[17]](function(_0x1132x10){if(!_0x1132x10){return _0x1132xc[_0x80aa[25]](404)};var _0x1132x14=_[_0x80aa[39]](_0x1132x10,_0x1132xb[_0x80aa[37]]);return _0x1132x14[_0x80aa[40]]()})[_0x80aa[17]](function(_0x1132x10){return _0x1132xc[_0x80aa[16]](200)[_0x80aa[15]](_0x1132x10)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})};exports[_0x80aa[43]]= function(_0x1132xb,_0x1132xc){var _0x1132x16;return ExtractedReport[_0x80aa[27]](_0x1132xb[_0x80aa[26]][_0x80aa[19]])[_0x80aa[17]](function(_0x1132x10){_0x1132x16= _0x1132x10;if(!_0x1132x10){return _0x1132xc[_0x80aa[25]](404)};return _0x1132x10[_0x80aa[43]]()})[_0x80aa[17]](function(){if(_0x1132x16[_0x80aa[33]]){var _0x1132x12=path[_0x80aa[34]](config[_0x80aa[29]],_0x80aa[30],_0x80aa[31],_0x80aa[32],_0x1132x16[_0x80aa[33]]);fs[_0x80aa[52]](_0x1132x12,fs[_0x80aa[44]]| fs[_0x80aa[45]],function(_0x1132xe){if(_0x1132xe){logger[_0x80aa[47]](_0x80aa[46])}else {fs[_0x80aa[51]](_0x1132x12,function(_0x1132xe){if(_0x1132xe){logger[_0x80aa[47]](_0x80aa[48],_0x1132xe)}else {logger[_0x80aa[50]](_0x80aa[49])}})}})};return _0x1132xc[_0x80aa[25]](204)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})};exports[_0x80aa[53]]= function(_0x1132xb,_0x1132xc){var _0x1132x17;return ExtractedReport[_0x80aa[42]]({where:{id:_0x1132xb[_0x80aa[18]][_0x80aa[57]]}})[_0x80aa[17]](function(_0x1132x18){_0x1132x17= _0x1132x18;var _0x1132x19=[];_0x1132x18[_0x80aa[54]](function(_0x1132x10){_0x1132x19[_0x80aa[56]](_0x1132x10[_0x80aa[43]]())});return _0x1132x19})[_0x80aa[55]]()[_0x80aa[17]](function(){_0x1132x17[_0x80aa[54]](function(_0x1132x10){if(_0x1132x10[_0x80aa[33]]){var _0x1132x12=path[_0x80aa[34]](config[_0x80aa[29]],_0x80aa[30],_0x80aa[31],_0x80aa[32],_0x1132x10[_0x80aa[33]]);fs[_0x80aa[52]](_0x1132x12,fs[_0x80aa[44]]| fs[_0x80aa[45]],function(_0x1132xe){if(_0x1132xe){logger[_0x80aa[47]](_0x80aa[46])}else {fs[_0x80aa[51]](_0x1132x12,function(_0x1132xe){if(_0x1132xe){logger[_0x80aa[47]](_0x80aa[48],_0x1132xe)}else {logger[_0x80aa[50]](_0x80aa[49])}})}})}});return _0x1132xc[_0x80aa[25]](204)})[_0x80aa[14]](function(_0x1132xe){return handleError(_0x1132xc,_0x1132xe)})};function handleError(_0x1132xc,_0x1132xe){logger[_0x80aa[47]](_0x1132xe[_0x80aa[58]]);return _0x1132xc[_0x80aa[16]](500)[_0x80aa[15]](_0x1132xe)}
\ No newline at end of file