Built motion from commit 943eae279.|1.0.24
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 56a8e75..6e4364a 100644 (file)
@@ -1 +1 @@
-var _0x7a8b=["\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","\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","\x6C\x6F\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"];_0x7a8b[0];var _=require(_0x7a8b[1]);var ExtractedReport=require(_0x7a8b[3])[_0x7a8b[2]];var util=require(_0x7a8b[4]);var path=require(_0x7a8b[5]);var moment=require(_0x7a8b[6]);var config=require(_0x7a8b[7]);var base64=require(_0x7a8b[8]);var fs=require(_0x7a8b[9]);var Util=require(_0x7a8b[10]);exports[_0x7a8b[11]]= function(_0x11bexa,_0x11bexb,_0x11bexc){switch(_0x11bexa[_0x7a8b[18]][_0x7a8b[21]]){case _0x7a8b[18]:return ExtractedReport[_0x7a8b[20]](Util[_0x7a8b[19]](_0x11bexa[_0x7a8b[16]],{UserId:_0x11bexa[_0x7a8b[18]][_0x7a8b[17]]}))[_0x7a8b[15]](function(_0x11bexe){_0x11bexb[_0x7a8b[14]](200)[_0x7a8b[13]](_0x11bexe)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)});default:return ExtractedReport[_0x7a8b[20]](Util[_0x7a8b[19]](_0x11bexa[_0x7a8b[16]]))[_0x7a8b[15]](function(_0x11bexe){_0x11bexb[_0x7a8b[14]](200)[_0x7a8b[13]](_0x11bexe)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})}};exports[_0x7a8b[22]]= function(_0x11bexa,_0x11bexb){return ExtractedReport[_0x7a8b[25]](_0x11bexa[_0x7a8b[24]][_0x7a8b[17]])[_0x7a8b[15]](function(_0x11bexf){if(!_0x11bexf){return _0x11bexb[_0x7a8b[23]](404)};return _0x11bexb[_0x7a8b[13]](_0x11bexf)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})};exports[_0x7a8b[26]]= function(_0x11bexa,_0x11bexb){return ExtractedReport[_0x7a8b[25]](_0x11bexa[_0x7a8b[24]][_0x7a8b[17]])[_0x7a8b[15]](function(_0x11bex10){if(!_0x11bex10){return _0x11bexb[_0x7a8b[14]](404)[_0x7a8b[13]](_0x11bex10)};var _0x11bex11=path[_0x7a8b[32]](config[_0x7a8b[27]],_0x7a8b[28],_0x7a8b[29],_0x7a8b[30],_0x11bex10[_0x7a8b[31]]);base64[_0x7a8b[33]](_0x11bex11,function(_0x11bexd,_0x11bex12){if(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)}else {return _0x11bexb[_0x7a8b[14]](200)[_0x7a8b[13]]({downloadString:_0x11bex12})}})})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})};exports[_0x7a8b[34]]= function(_0x11bexa,_0x11bexb){return ExtractedReport[_0x7a8b[34]](_0x11bexa[_0x7a8b[35]])[_0x7a8b[15]](function(_0x11bexf){return _0x11bexb[_0x7a8b[14]](201)[_0x7a8b[13]](_0x11bexf)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})};exports[_0x7a8b[36]]= function(_0x11bexa,_0x11bexb){return ExtractedReport[_0x7a8b[40]]({where:{name:_0x11bexa[_0x7a8b[35]][_0x7a8b[39]],id:{$ne:_0x11bexa[_0x7a8b[35]][_0x7a8b[17]]}}})[_0x7a8b[15]](function(_0x11bex14){if(!_0x11bex14){return _0x11bexb[_0x7a8b[23]](404)};if(_0x11bexa[_0x7a8b[35]][_0x7a8b[17]]){delete _0x11bexa[_0x7a8b[35]][_0x7a8b[17]]};return ExtractedReport[_0x7a8b[25]](_0x11bexa[_0x7a8b[24]][_0x7a8b[17]])})[_0x7a8b[15]](function(_0x11bexf){if(!_0x11bexf){return _0x11bexb[_0x7a8b[23]](404)};var _0x11bex13=_[_0x7a8b[37]](_0x11bexf,_0x11bexa[_0x7a8b[35]]);return _0x11bex13[_0x7a8b[38]]()})[_0x7a8b[15]](function(_0x11bexf){return _0x11bexb[_0x7a8b[14]](200)[_0x7a8b[13]](_0x11bexf)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})};exports[_0x7a8b[41]]= function(_0x11bexa,_0x11bexb){var _0x11bex15;return ExtractedReport[_0x7a8b[25]](_0x11bexa[_0x7a8b[24]][_0x7a8b[17]])[_0x7a8b[15]](function(_0x11bexf){_0x11bex15= _0x11bexf;if(!_0x11bexf){return _0x11bexb[_0x7a8b[23]](404)};return _0x11bexf[_0x7a8b[41]]()})[_0x7a8b[15]](function(){if(_0x11bex15[_0x7a8b[31]]){var _0x11bex11=path[_0x7a8b[32]](config[_0x7a8b[27]],_0x7a8b[28],_0x7a8b[29],_0x7a8b[30],_0x11bex15[_0x7a8b[31]]);fs[_0x7a8b[50]](_0x11bex11,fs[_0x7a8b[42]]| fs[_0x7a8b[43]],function(_0x11bexd){if(_0x11bexd){console[_0x7a8b[45]](_0x7a8b[44])}else {fs[_0x7a8b[49]](_0x11bex11,function(_0x11bexd){if(_0x11bexd){console[_0x7a8b[45]](_0x7a8b[46],_0x11bexd)}else {console[_0x7a8b[48]](_0x7a8b[47])}})}})};return _0x11bexb[_0x7a8b[23]](204)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})};exports[_0x7a8b[51]]= function(_0x11bexa,_0x11bexb){var _0x11bex16;return ExtractedReport[_0x7a8b[40]]({where:{id:_0x11bexa[_0x7a8b[16]][_0x7a8b[55]]}})[_0x7a8b[15]](function(_0x11bex17){_0x11bex16= _0x11bex17;var _0x11bex18=[];_0x11bex17[_0x7a8b[52]](function(_0x11bexf){_0x11bex18[_0x7a8b[54]](_0x11bexf[_0x7a8b[41]]())});return _0x11bex18})[_0x7a8b[53]]()[_0x7a8b[15]](function(){_0x11bex16[_0x7a8b[52]](function(_0x11bexf){if(_0x11bexf[_0x7a8b[31]]){var _0x11bex11=path[_0x7a8b[32]](config[_0x7a8b[27]],_0x7a8b[28],_0x7a8b[29],_0x7a8b[30],_0x11bexf[_0x7a8b[31]]);fs[_0x7a8b[50]](_0x11bex11,fs[_0x7a8b[42]]| fs[_0x7a8b[43]],function(_0x11bexd){if(_0x11bexd){console[_0x7a8b[45]](_0x7a8b[44])}else {fs[_0x7a8b[49]](_0x11bex11,function(_0x11bexd){if(_0x11bexd){console[_0x7a8b[45]](_0x7a8b[46],_0x11bexd)}else {console[_0x7a8b[48]](_0x7a8b[47])}})}})}});return _0x11bexb[_0x7a8b[23]](204)})[_0x7a8b[12]](function(_0x11bexd){return handleError(_0x11bexb,_0x11bexd)})};function handleError(_0x11bexb,_0x11bexd){console[_0x7a8b[48]](_0x11bexd);return _0x11bexb[_0x7a8b[14]](500)[_0x7a8b[13]](_0x11bexd)}
\ No newline at end of file
+var _0x3ccc=["\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"];_0x3ccc[0];var _=require(_0x3ccc[1]);var ExtractedReport=require(_0x3ccc[3])[_0x3ccc[2]];var util=require(_0x3ccc[4]);var path=require(_0x3ccc[5]);var moment=require(_0x3ccc[6]);var config=require(_0x3ccc[7]);var base64=require(_0x3ccc[8]);var fs=require(_0x3ccc[9]);var Util=require(_0x3ccc[10]);var logger=require(_0x3ccc[12])(_0x3ccc[11]);exports[_0x3ccc[13]]= function(_0x68f0xb,_0x68f0xc,_0x68f0xd){switch(_0x68f0xb[_0x3ccc[20]][_0x3ccc[23]]){case _0x3ccc[20]:return ExtractedReport[_0x3ccc[22]](Util[_0x3ccc[21]](_0x68f0xb[_0x3ccc[18]],{UserId:_0x68f0xb[_0x3ccc[20]][_0x3ccc[19]]}))[_0x3ccc[17]](function(_0x68f0xf){_0x68f0xc[_0x3ccc[16]](200)[_0x3ccc[15]](_0x68f0xf)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)});default:return ExtractedReport[_0x3ccc[22]](Util[_0x3ccc[21]](_0x68f0xb[_0x3ccc[18]]))[_0x3ccc[17]](function(_0x68f0xf){_0x68f0xc[_0x3ccc[16]](200)[_0x3ccc[15]](_0x68f0xf)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})}};exports[_0x3ccc[24]]= function(_0x68f0xb,_0x68f0xc){return ExtractedReport[_0x3ccc[27]](_0x68f0xb[_0x3ccc[26]][_0x3ccc[19]])[_0x3ccc[17]](function(_0x68f0x10){if(!_0x68f0x10){return _0x68f0xc[_0x3ccc[25]](404)};return _0x68f0xc[_0x3ccc[15]](_0x68f0x10)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})};exports[_0x3ccc[28]]= function(_0x68f0xb,_0x68f0xc){return ExtractedReport[_0x3ccc[27]](_0x68f0xb[_0x3ccc[26]][_0x3ccc[19]])[_0x3ccc[17]](function(_0x68f0x11){if(!_0x68f0x11){return _0x68f0xc[_0x3ccc[16]](404)[_0x3ccc[15]](_0x68f0x11)};var _0x68f0x12=path[_0x3ccc[34]](config[_0x3ccc[29]],_0x3ccc[30],_0x3ccc[31],_0x3ccc[32],_0x68f0x11[_0x3ccc[33]]);base64[_0x3ccc[35]](_0x68f0x12,function(_0x68f0xe,_0x68f0x13){if(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)}else {return _0x68f0xc[_0x3ccc[16]](200)[_0x3ccc[15]]({downloadString:_0x68f0x13})}})})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})};exports[_0x3ccc[36]]= function(_0x68f0xb,_0x68f0xc){return ExtractedReport[_0x3ccc[36]](_0x68f0xb[_0x3ccc[37]])[_0x3ccc[17]](function(_0x68f0x10){return _0x68f0xc[_0x3ccc[16]](201)[_0x3ccc[15]](_0x68f0x10)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})};exports[_0x3ccc[38]]= function(_0x68f0xb,_0x68f0xc){return ExtractedReport[_0x3ccc[42]]({where:{name:_0x68f0xb[_0x3ccc[37]][_0x3ccc[41]],id:{$ne:_0x68f0xb[_0x3ccc[37]][_0x3ccc[19]]}}})[_0x3ccc[17]](function(_0x68f0x15){if(!_0x68f0x15){return _0x68f0xc[_0x3ccc[25]](404)};if(_0x68f0xb[_0x3ccc[37]][_0x3ccc[19]]){delete _0x68f0xb[_0x3ccc[37]][_0x3ccc[19]]};return ExtractedReport[_0x3ccc[27]](_0x68f0xb[_0x3ccc[26]][_0x3ccc[19]])})[_0x3ccc[17]](function(_0x68f0x10){if(!_0x68f0x10){return _0x68f0xc[_0x3ccc[25]](404)};var _0x68f0x14=_[_0x3ccc[39]](_0x68f0x10,_0x68f0xb[_0x3ccc[37]]);return _0x68f0x14[_0x3ccc[40]]()})[_0x3ccc[17]](function(_0x68f0x10){return _0x68f0xc[_0x3ccc[16]](200)[_0x3ccc[15]](_0x68f0x10)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})};exports[_0x3ccc[43]]= function(_0x68f0xb,_0x68f0xc){var _0x68f0x16;return ExtractedReport[_0x3ccc[27]](_0x68f0xb[_0x3ccc[26]][_0x3ccc[19]])[_0x3ccc[17]](function(_0x68f0x10){_0x68f0x16= _0x68f0x10;if(!_0x68f0x10){return _0x68f0xc[_0x3ccc[25]](404)};return _0x68f0x10[_0x3ccc[43]]()})[_0x3ccc[17]](function(){if(_0x68f0x16[_0x3ccc[33]]){var _0x68f0x12=path[_0x3ccc[34]](config[_0x3ccc[29]],_0x3ccc[30],_0x3ccc[31],_0x3ccc[32],_0x68f0x16[_0x3ccc[33]]);fs[_0x3ccc[52]](_0x68f0x12,fs[_0x3ccc[44]]| fs[_0x3ccc[45]],function(_0x68f0xe){if(_0x68f0xe){logger[_0x3ccc[47]](_0x3ccc[46])}else {fs[_0x3ccc[51]](_0x68f0x12,function(_0x68f0xe){if(_0x68f0xe){logger[_0x3ccc[47]](_0x3ccc[48],_0x68f0xe)}else {logger[_0x3ccc[50]](_0x3ccc[49])}})}})};return _0x68f0xc[_0x3ccc[25]](204)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})};exports[_0x3ccc[53]]= function(_0x68f0xb,_0x68f0xc){var _0x68f0x17;return ExtractedReport[_0x3ccc[42]]({where:{id:_0x68f0xb[_0x3ccc[18]][_0x3ccc[57]]}})[_0x3ccc[17]](function(_0x68f0x18){_0x68f0x17= _0x68f0x18;var _0x68f0x19=[];_0x68f0x18[_0x3ccc[54]](function(_0x68f0x10){_0x68f0x19[_0x3ccc[56]](_0x68f0x10[_0x3ccc[43]]())});return _0x68f0x19})[_0x3ccc[55]]()[_0x3ccc[17]](function(){_0x68f0x17[_0x3ccc[54]](function(_0x68f0x10){if(_0x68f0x10[_0x3ccc[33]]){var _0x68f0x12=path[_0x3ccc[34]](config[_0x3ccc[29]],_0x3ccc[30],_0x3ccc[31],_0x3ccc[32],_0x68f0x10[_0x3ccc[33]]);fs[_0x3ccc[52]](_0x68f0x12,fs[_0x3ccc[44]]| fs[_0x3ccc[45]],function(_0x68f0xe){if(_0x68f0xe){logger[_0x3ccc[47]](_0x3ccc[46])}else {fs[_0x3ccc[51]](_0x68f0x12,function(_0x68f0xe){if(_0x68f0xe){logger[_0x3ccc[47]](_0x3ccc[48],_0x68f0xe)}else {logger[_0x3ccc[50]](_0x3ccc[49])}})}})}});return _0x68f0xc[_0x3ccc[25]](204)})[_0x3ccc[14]](function(_0x68f0xe){return handleError(_0x68f0xc,_0x68f0xe)})};function handleError(_0x68f0xc,_0x68f0xe){logger[_0x3ccc[47]](_0x68f0xe[_0x3ccc[58]]);return _0x68f0xc[_0x3ccc[16]](500)[_0x3ccc[15]](_0x68f0xe)}
\ No newline at end of file