Built motion from commit ec3ecc5.|1.0.2
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 9cc9432..6e4482c 100644 (file)
@@ -1 +1 @@
-var _0xb8c1=["\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"];_0xb8c1[0];var _=require(_0xb8c1[1]);var ExtractedReport=require(_0xb8c1[3])[_0xb8c1[2]];var util=require(_0xb8c1[4]);var path=require(_0xb8c1[5]);var moment=require(_0xb8c1[6]);var config=require(_0xb8c1[7]);var base64=require(_0xb8c1[8]);var fs=require(_0xb8c1[9]);var Util=require(_0xb8c1[10]);exports[_0xb8c1[11]]= function(_0xa42exa,_0xa42exb,_0xa42exc){switch(_0xa42exa[_0xb8c1[18]][_0xb8c1[21]]){case _0xb8c1[18]:return ExtractedReport[_0xb8c1[20]](Util[_0xb8c1[19]](_0xa42exa[_0xb8c1[16]],{UserId:_0xa42exa[_0xb8c1[18]][_0xb8c1[17]]}))[_0xb8c1[15]](function(_0xa42exe){_0xa42exb[_0xb8c1[14]](200)[_0xb8c1[13]](_0xa42exe)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)});default:return ExtractedReport[_0xb8c1[20]](Util[_0xb8c1[19]](_0xa42exa[_0xb8c1[16]]))[_0xb8c1[15]](function(_0xa42exe){_0xa42exb[_0xb8c1[14]](200)[_0xb8c1[13]](_0xa42exe)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})}};exports[_0xb8c1[22]]= function(_0xa42exa,_0xa42exb){return ExtractedReport[_0xb8c1[25]](_0xa42exa[_0xb8c1[24]][_0xb8c1[17]])[_0xb8c1[15]](function(_0xa42exf){if(!_0xa42exf){return _0xa42exb[_0xb8c1[23]](404)};return _0xa42exb[_0xb8c1[13]](_0xa42exf)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})};exports[_0xb8c1[26]]= function(_0xa42exa,_0xa42exb){return ExtractedReport[_0xb8c1[25]](_0xa42exa[_0xb8c1[24]][_0xb8c1[17]])[_0xb8c1[15]](function(_0xa42ex10){if(!_0xa42ex10){return _0xa42exb[_0xb8c1[14]](404)[_0xb8c1[13]](_0xa42ex10)};var _0xa42ex11=path[_0xb8c1[32]](config[_0xb8c1[27]],_0xb8c1[28],_0xb8c1[29],_0xb8c1[30],_0xa42ex10[_0xb8c1[31]]);base64[_0xb8c1[33]](_0xa42ex11,function(_0xa42exd,_0xa42ex12){if(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)}else {return _0xa42exb[_0xb8c1[14]](200)[_0xb8c1[13]]({downloadString:_0xa42ex12})}})})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})};exports[_0xb8c1[34]]= function(_0xa42exa,_0xa42exb){return ExtractedReport[_0xb8c1[34]](_0xa42exa[_0xb8c1[35]])[_0xb8c1[15]](function(_0xa42exf){return _0xa42exb[_0xb8c1[14]](201)[_0xb8c1[13]](_0xa42exf)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})};exports[_0xb8c1[36]]= function(_0xa42exa,_0xa42exb){return ExtractedReport[_0xb8c1[40]]({where:{name:_0xa42exa[_0xb8c1[35]][_0xb8c1[39]],id:{$ne:_0xa42exa[_0xb8c1[35]][_0xb8c1[17]]}}})[_0xb8c1[15]](function(_0xa42ex14){if(!_0xa42ex14){return _0xa42exb[_0xb8c1[23]](404)};if(_0xa42exa[_0xb8c1[35]][_0xb8c1[17]]){delete _0xa42exa[_0xb8c1[35]][_0xb8c1[17]]};return ExtractedReport[_0xb8c1[25]](_0xa42exa[_0xb8c1[24]][_0xb8c1[17]])})[_0xb8c1[15]](function(_0xa42exf){if(!_0xa42exf){return _0xa42exb[_0xb8c1[23]](404)};var _0xa42ex13=_[_0xb8c1[37]](_0xa42exf,_0xa42exa[_0xb8c1[35]]);return _0xa42ex13[_0xb8c1[38]]()})[_0xb8c1[15]](function(_0xa42exf){return _0xa42exb[_0xb8c1[14]](200)[_0xb8c1[13]](_0xa42exf)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})};exports[_0xb8c1[41]]= function(_0xa42exa,_0xa42exb){var _0xa42ex15;return ExtractedReport[_0xb8c1[25]](_0xa42exa[_0xb8c1[24]][_0xb8c1[17]])[_0xb8c1[15]](function(_0xa42exf){_0xa42ex15= _0xa42exf;if(!_0xa42exf){return _0xa42exb[_0xb8c1[23]](404)};return _0xa42exf[_0xb8c1[41]]()})[_0xb8c1[15]](function(){if(_0xa42ex15[_0xb8c1[31]]){var _0xa42ex11=path[_0xb8c1[32]](config[_0xb8c1[27]],_0xb8c1[28],_0xb8c1[29],_0xb8c1[30],_0xa42ex15[_0xb8c1[31]]);fs[_0xb8c1[50]](_0xa42ex11,fs[_0xb8c1[42]]| fs[_0xb8c1[43]],function(_0xa42exd){if(_0xa42exd){console[_0xb8c1[45]](_0xb8c1[44])}else {fs[_0xb8c1[49]](_0xa42ex11,function(_0xa42exd){if(_0xa42exd){console[_0xb8c1[45]](_0xb8c1[46],_0xa42exd)}else {console[_0xb8c1[48]](_0xb8c1[47])}})}})};return _0xa42exb[_0xb8c1[23]](204)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})};exports[_0xb8c1[51]]= function(_0xa42exa,_0xa42exb){var _0xa42ex16;return ExtractedReport[_0xb8c1[40]]({where:{id:_0xa42exa[_0xb8c1[16]][_0xb8c1[55]]}})[_0xb8c1[15]](function(_0xa42ex17){_0xa42ex16= _0xa42ex17;var _0xa42ex18=[];_0xa42ex17[_0xb8c1[52]](function(_0xa42exf){_0xa42ex18[_0xb8c1[54]](_0xa42exf[_0xb8c1[41]]())});return _0xa42ex18})[_0xb8c1[53]]()[_0xb8c1[15]](function(){_0xa42ex16[_0xb8c1[52]](function(_0xa42exf){if(_0xa42exf[_0xb8c1[31]]){var _0xa42ex11=path[_0xb8c1[32]](config[_0xb8c1[27]],_0xb8c1[28],_0xb8c1[29],_0xb8c1[30],_0xa42exf[_0xb8c1[31]]);fs[_0xb8c1[50]](_0xa42ex11,fs[_0xb8c1[42]]| fs[_0xb8c1[43]],function(_0xa42exd){if(_0xa42exd){console[_0xb8c1[45]](_0xb8c1[44])}else {fs[_0xb8c1[49]](_0xa42ex11,function(_0xa42exd){if(_0xa42exd){console[_0xb8c1[45]](_0xb8c1[46],_0xa42exd)}else {console[_0xb8c1[48]](_0xb8c1[47])}})}})}});return _0xa42exb[_0xb8c1[23]](204)})[_0xb8c1[12]](function(_0xa42exd){return handleError(_0xa42exb,_0xa42exd)})};function handleError(_0xa42exb,_0xa42exd){console[_0xb8c1[48]](_0xa42exd);return _0xa42exb[_0xb8c1[14]](500)[_0xb8c1[13]](_0xa42exd)}
\ No newline at end of file
+var _0x3db1=["\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"];_0x3db1[0];var _=require(_0x3db1[1]);var ExtractedReport=require(_0x3db1[3])[_0x3db1[2]];var util=require(_0x3db1[4]);var path=require(_0x3db1[5]);var moment=require(_0x3db1[6]);var config=require(_0x3db1[7]);var base64=require(_0x3db1[8]);var fs=require(_0x3db1[9]);var Util=require(_0x3db1[10]);exports[_0x3db1[11]]= function(_0x31f1xa,_0x31f1xb,_0x31f1xc){switch(_0x31f1xa[_0x3db1[18]][_0x3db1[21]]){case _0x3db1[18]:return ExtractedReport[_0x3db1[20]](Util[_0x3db1[19]](_0x31f1xa[_0x3db1[16]],{UserId:_0x31f1xa[_0x3db1[18]][_0x3db1[17]]}))[_0x3db1[15]](function(_0x31f1xe){_0x31f1xb[_0x3db1[14]](200)[_0x3db1[13]](_0x31f1xe)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)});default:return ExtractedReport[_0x3db1[20]](Util[_0x3db1[19]](_0x31f1xa[_0x3db1[16]]))[_0x3db1[15]](function(_0x31f1xe){_0x31f1xb[_0x3db1[14]](200)[_0x3db1[13]](_0x31f1xe)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})}};exports[_0x3db1[22]]= function(_0x31f1xa,_0x31f1xb){return ExtractedReport[_0x3db1[25]](_0x31f1xa[_0x3db1[24]][_0x3db1[17]])[_0x3db1[15]](function(_0x31f1xf){if(!_0x31f1xf){return _0x31f1xb[_0x3db1[23]](404)};return _0x31f1xb[_0x3db1[13]](_0x31f1xf)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})};exports[_0x3db1[26]]= function(_0x31f1xa,_0x31f1xb){return ExtractedReport[_0x3db1[25]](_0x31f1xa[_0x3db1[24]][_0x3db1[17]])[_0x3db1[15]](function(_0x31f1x10){if(!_0x31f1x10){return _0x31f1xb[_0x3db1[14]](404)[_0x3db1[13]](_0x31f1x10)};var _0x31f1x11=path[_0x3db1[32]](config[_0x3db1[27]],_0x3db1[28],_0x3db1[29],_0x3db1[30],_0x31f1x10[_0x3db1[31]]);base64[_0x3db1[33]](_0x31f1x11,function(_0x31f1xd,_0x31f1x12){if(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)}else {return _0x31f1xb[_0x3db1[14]](200)[_0x3db1[13]]({downloadString:_0x31f1x12})}})})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})};exports[_0x3db1[34]]= function(_0x31f1xa,_0x31f1xb){return ExtractedReport[_0x3db1[34]](_0x31f1xa[_0x3db1[35]])[_0x3db1[15]](function(_0x31f1xf){return _0x31f1xb[_0x3db1[14]](201)[_0x3db1[13]](_0x31f1xf)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})};exports[_0x3db1[36]]= function(_0x31f1xa,_0x31f1xb){return ExtractedReport[_0x3db1[40]]({where:{name:_0x31f1xa[_0x3db1[35]][_0x3db1[39]],id:{$ne:_0x31f1xa[_0x3db1[35]][_0x3db1[17]]}}})[_0x3db1[15]](function(_0x31f1x14){if(!_0x31f1x14){return _0x31f1xb[_0x3db1[23]](404)};if(_0x31f1xa[_0x3db1[35]][_0x3db1[17]]){delete _0x31f1xa[_0x3db1[35]][_0x3db1[17]]};return ExtractedReport[_0x3db1[25]](_0x31f1xa[_0x3db1[24]][_0x3db1[17]])})[_0x3db1[15]](function(_0x31f1xf){if(!_0x31f1xf){return _0x31f1xb[_0x3db1[23]](404)};var _0x31f1x13=_[_0x3db1[37]](_0x31f1xf,_0x31f1xa[_0x3db1[35]]);return _0x31f1x13[_0x3db1[38]]()})[_0x3db1[15]](function(_0x31f1xf){return _0x31f1xb[_0x3db1[14]](200)[_0x3db1[13]](_0x31f1xf)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})};exports[_0x3db1[41]]= function(_0x31f1xa,_0x31f1xb){var _0x31f1x15;return ExtractedReport[_0x3db1[25]](_0x31f1xa[_0x3db1[24]][_0x3db1[17]])[_0x3db1[15]](function(_0x31f1xf){_0x31f1x15= _0x31f1xf;if(!_0x31f1xf){return _0x31f1xb[_0x3db1[23]](404)};return _0x31f1xf[_0x3db1[41]]()})[_0x3db1[15]](function(){if(_0x31f1x15[_0x3db1[31]]){var _0x31f1x11=path[_0x3db1[32]](config[_0x3db1[27]],_0x3db1[28],_0x3db1[29],_0x3db1[30],_0x31f1x15[_0x3db1[31]]);fs[_0x3db1[50]](_0x31f1x11,fs[_0x3db1[42]]| fs[_0x3db1[43]],function(_0x31f1xd){if(_0x31f1xd){console[_0x3db1[45]](_0x3db1[44])}else {fs[_0x3db1[49]](_0x31f1x11,function(_0x31f1xd){if(_0x31f1xd){console[_0x3db1[45]](_0x3db1[46],_0x31f1xd)}else {console[_0x3db1[48]](_0x3db1[47])}})}})};return _0x31f1xb[_0x3db1[23]](204)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})};exports[_0x3db1[51]]= function(_0x31f1xa,_0x31f1xb){var _0x31f1x16;return ExtractedReport[_0x3db1[40]]({where:{id:_0x31f1xa[_0x3db1[16]][_0x3db1[55]]}})[_0x3db1[15]](function(_0x31f1x17){_0x31f1x16= _0x31f1x17;var _0x31f1x18=[];_0x31f1x17[_0x3db1[52]](function(_0x31f1xf){_0x31f1x18[_0x3db1[54]](_0x31f1xf[_0x3db1[41]]())});return _0x31f1x18})[_0x3db1[53]]()[_0x3db1[15]](function(){_0x31f1x16[_0x3db1[52]](function(_0x31f1xf){if(_0x31f1xf[_0x3db1[31]]){var _0x31f1x11=path[_0x3db1[32]](config[_0x3db1[27]],_0x3db1[28],_0x3db1[29],_0x3db1[30],_0x31f1xf[_0x3db1[31]]);fs[_0x3db1[50]](_0x31f1x11,fs[_0x3db1[42]]| fs[_0x3db1[43]],function(_0x31f1xd){if(_0x31f1xd){console[_0x3db1[45]](_0x3db1[44])}else {fs[_0x3db1[49]](_0x31f1x11,function(_0x31f1xd){if(_0x31f1xd){console[_0x3db1[45]](_0x3db1[46],_0x31f1xd)}else {console[_0x3db1[48]](_0x3db1[47])}})}})}});return _0x31f1xb[_0x3db1[23]](204)})[_0x3db1[12]](function(_0x31f1xd){return handleError(_0x31f1xb,_0x31f1xd)})};function handleError(_0x31f1xb,_0x31f1xd){console[_0x3db1[48]](_0x31f1xd);return _0x31f1xb[_0x3db1[14]](500)[_0x3db1[13]](_0x31f1xd)}
\ No newline at end of file