Built motion from commit a0baffd.|1.0.1
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 6bee4e2..3e40bdd 100644 (file)
@@ -1 +1 @@
-var _0x2f69=["\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"];_0x2f69[0];var _=require(_0x2f69[1]);var ExtractedReport=require(_0x2f69[3])[_0x2f69[2]];var util=require(_0x2f69[4]);var path=require(_0x2f69[5]);var moment=require(_0x2f69[6]);var config=require(_0x2f69[7]);var base64=require(_0x2f69[8]);var fs=require(_0x2f69[9]);var Util=require(_0x2f69[10]);exports[_0x2f69[11]]=function(_0x8bd7xa,_0x8bd7xb,_0x8bd7xc){switch(_0x8bd7xa[_0x2f69[18]][_0x2f69[21]]){case _0x2f69[18]:return ExtractedReport[_0x2f69[20]](Util[_0x2f69[19]](_0x8bd7xa[_0x2f69[16]],{UserId:_0x8bd7xa[_0x2f69[18]][_0x2f69[17]]}))[_0x2f69[15]](function(_0x8bd7xe){_0x8bd7xb[_0x2f69[14]](200)[_0x2f69[13]](_0x8bd7xe)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)});default:return ExtractedReport[_0x2f69[20]](Util[_0x2f69[19]](_0x8bd7xa[_0x2f69[16]]))[_0x2f69[15]](function(_0x8bd7xe){_0x8bd7xb[_0x2f69[14]](200)[_0x2f69[13]](_0x8bd7xe)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})}};exports[_0x2f69[22]]=function(_0x8bd7xa,_0x8bd7xb){return ExtractedReport[_0x2f69[25]](_0x8bd7xa[_0x2f69[24]][_0x2f69[17]])[_0x2f69[15]](function(_0x8bd7xf){if(!_0x8bd7xf){return _0x8bd7xb[_0x2f69[23]](404)};return _0x8bd7xb[_0x2f69[13]](_0x8bd7xf)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})};exports[_0x2f69[26]]=function(_0x8bd7xa,_0x8bd7xb){return ExtractedReport[_0x2f69[25]](_0x8bd7xa[_0x2f69[24]][_0x2f69[17]])[_0x2f69[15]](function(_0x8bd7x10){if(!_0x8bd7x10){return _0x8bd7xb[_0x2f69[14]](404)[_0x2f69[13]](_0x8bd7x10)};var _0x8bd7x11=path[_0x2f69[32]](config[_0x2f69[27]],_0x2f69[28],_0x2f69[29],_0x2f69[30],_0x8bd7x10[_0x2f69[31]]);base64[_0x2f69[33]](_0x8bd7x11,function(_0x8bd7xd,_0x8bd7x12){if(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)}else {return _0x8bd7xb[_0x2f69[14]](200)[_0x2f69[13]]({downloadString:_0x8bd7x12})}})})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})};exports[_0x2f69[34]]=function(_0x8bd7xa,_0x8bd7xb){return ExtractedReport[_0x2f69[34]](_0x8bd7xa[_0x2f69[35]])[_0x2f69[15]](function(_0x8bd7xf){return _0x8bd7xb[_0x2f69[14]](201)[_0x2f69[13]](_0x8bd7xf)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})};exports[_0x2f69[36]]=function(_0x8bd7xa,_0x8bd7xb){return ExtractedReport[_0x2f69[40]]({where:{name:_0x8bd7xa[_0x2f69[35]][_0x2f69[39]],id:{$ne:_0x8bd7xa[_0x2f69[35]][_0x2f69[17]]}}})[_0x2f69[15]](function(_0x8bd7x14){if(!_0x8bd7x14){return _0x8bd7xb[_0x2f69[23]](404)};if(_0x8bd7xa[_0x2f69[35]][_0x2f69[17]]){delete _0x8bd7xa[_0x2f69[35]][_0x2f69[17]]};return ExtractedReport[_0x2f69[25]](_0x8bd7xa[_0x2f69[24]][_0x2f69[17]])})[_0x2f69[15]](function(_0x8bd7xf){if(!_0x8bd7xf){return _0x8bd7xb[_0x2f69[23]](404)};var _0x8bd7x13=_[_0x2f69[37]](_0x8bd7xf,_0x8bd7xa[_0x2f69[35]]);return _0x8bd7x13[_0x2f69[38]]()})[_0x2f69[15]](function(_0x8bd7xf){return _0x8bd7xb[_0x2f69[14]](200)[_0x2f69[13]](_0x8bd7xf)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})};exports[_0x2f69[41]]=function(_0x8bd7xa,_0x8bd7xb){var _0x8bd7x15;return ExtractedReport[_0x2f69[25]](_0x8bd7xa[_0x2f69[24]][_0x2f69[17]])[_0x2f69[15]](function(_0x8bd7xf){_0x8bd7x15=_0x8bd7xf;if(!_0x8bd7xf){return _0x8bd7xb[_0x2f69[23]](404)};return _0x8bd7xf[_0x2f69[41]]()})[_0x2f69[15]](function(){if(_0x8bd7x15[_0x2f69[31]]){var _0x8bd7x11=path[_0x2f69[32]](config[_0x2f69[27]],_0x2f69[28],_0x2f69[29],_0x2f69[30],_0x8bd7x15[_0x2f69[31]]);fs[_0x2f69[50]](_0x8bd7x11,fs[_0x2f69[42]]|fs[_0x2f69[43]],function(_0x8bd7xd){if(_0x8bd7xd){console[_0x2f69[45]](_0x2f69[44])}else {fs[_0x2f69[49]](_0x8bd7x11,function(_0x8bd7xd){if(_0x8bd7xd){console[_0x2f69[45]](_0x2f69[46],_0x8bd7xd)}else {console[_0x2f69[48]](_0x2f69[47])}})}})};return _0x8bd7xb[_0x2f69[23]](204)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})};exports[_0x2f69[51]]=function(_0x8bd7xa,_0x8bd7xb){var _0x8bd7x16;return ExtractedReport[_0x2f69[40]]({where:{id:_0x8bd7xa[_0x2f69[16]][_0x2f69[55]]}})[_0x2f69[15]](function(_0x8bd7x17){_0x8bd7x16=_0x8bd7x17;var _0x8bd7x18=[];_0x8bd7x17[_0x2f69[52]](function(_0x8bd7xf){_0x8bd7x18[_0x2f69[54]](_0x8bd7xf[_0x2f69[41]]())});return _0x8bd7x18})[_0x2f69[53]]()[_0x2f69[15]](function(){_0x8bd7x16[_0x2f69[52]](function(_0x8bd7xf){if(_0x8bd7xf[_0x2f69[31]]){var _0x8bd7x11=path[_0x2f69[32]](config[_0x2f69[27]],_0x2f69[28],_0x2f69[29],_0x2f69[30],_0x8bd7xf[_0x2f69[31]]);fs[_0x2f69[50]](_0x8bd7x11,fs[_0x2f69[42]]|fs[_0x2f69[43]],function(_0x8bd7xd){if(_0x8bd7xd){console[_0x2f69[45]](_0x2f69[44])}else {fs[_0x2f69[49]](_0x8bd7x11,function(_0x8bd7xd){if(_0x8bd7xd){console[_0x2f69[45]](_0x2f69[46],_0x8bd7xd)}else {console[_0x2f69[48]](_0x2f69[47])}})}})}});return _0x8bd7xb[_0x2f69[23]](204)})[_0x2f69[12]](function(_0x8bd7xd){return handleError(_0x8bd7xb,_0x8bd7xd)})};function handleError(_0x8bd7xb,_0x8bd7xd){console[_0x2f69[48]](_0x8bd7xd);return _0x8bd7xb[_0x2f69[14]](500)[_0x2f69[13]](_0x8bd7xd)}
\ No newline at end of file
+var _0xc43a=["\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"];_0xc43a[0];var _=require(_0xc43a[1]);var ExtractedReport=require(_0xc43a[3])[_0xc43a[2]];var util=require(_0xc43a[4]);var path=require(_0xc43a[5]);var moment=require(_0xc43a[6]);var config=require(_0xc43a[7]);var base64=require(_0xc43a[8]);var fs=require(_0xc43a[9]);var Util=require(_0xc43a[10]);exports[_0xc43a[11]]= function(_0xf262xa,_0xf262xb,_0xf262xc){switch(_0xf262xa[_0xc43a[18]][_0xc43a[21]]){case _0xc43a[18]:return ExtractedReport[_0xc43a[20]](Util[_0xc43a[19]](_0xf262xa[_0xc43a[16]],{UserId:_0xf262xa[_0xc43a[18]][_0xc43a[17]]}))[_0xc43a[15]](function(_0xf262xe){_0xf262xb[_0xc43a[14]](200)[_0xc43a[13]](_0xf262xe)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)});default:return ExtractedReport[_0xc43a[20]](Util[_0xc43a[19]](_0xf262xa[_0xc43a[16]]))[_0xc43a[15]](function(_0xf262xe){_0xf262xb[_0xc43a[14]](200)[_0xc43a[13]](_0xf262xe)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})}};exports[_0xc43a[22]]= function(_0xf262xa,_0xf262xb){return ExtractedReport[_0xc43a[25]](_0xf262xa[_0xc43a[24]][_0xc43a[17]])[_0xc43a[15]](function(_0xf262xf){if(!_0xf262xf){return _0xf262xb[_0xc43a[23]](404)};return _0xf262xb[_0xc43a[13]](_0xf262xf)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})};exports[_0xc43a[26]]= function(_0xf262xa,_0xf262xb){return ExtractedReport[_0xc43a[25]](_0xf262xa[_0xc43a[24]][_0xc43a[17]])[_0xc43a[15]](function(_0xf262x10){if(!_0xf262x10){return _0xf262xb[_0xc43a[14]](404)[_0xc43a[13]](_0xf262x10)};var _0xf262x11=path[_0xc43a[32]](config[_0xc43a[27]],_0xc43a[28],_0xc43a[29],_0xc43a[30],_0xf262x10[_0xc43a[31]]);base64[_0xc43a[33]](_0xf262x11,function(_0xf262xd,_0xf262x12){if(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)}else {return _0xf262xb[_0xc43a[14]](200)[_0xc43a[13]]({downloadString:_0xf262x12})}})})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})};exports[_0xc43a[34]]= function(_0xf262xa,_0xf262xb){return ExtractedReport[_0xc43a[34]](_0xf262xa[_0xc43a[35]])[_0xc43a[15]](function(_0xf262xf){return _0xf262xb[_0xc43a[14]](201)[_0xc43a[13]](_0xf262xf)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})};exports[_0xc43a[36]]= function(_0xf262xa,_0xf262xb){return ExtractedReport[_0xc43a[40]]({where:{name:_0xf262xa[_0xc43a[35]][_0xc43a[39]],id:{$ne:_0xf262xa[_0xc43a[35]][_0xc43a[17]]}}})[_0xc43a[15]](function(_0xf262x14){if(!_0xf262x14){return _0xf262xb[_0xc43a[23]](404)};if(_0xf262xa[_0xc43a[35]][_0xc43a[17]]){delete _0xf262xa[_0xc43a[35]][_0xc43a[17]]};return ExtractedReport[_0xc43a[25]](_0xf262xa[_0xc43a[24]][_0xc43a[17]])})[_0xc43a[15]](function(_0xf262xf){if(!_0xf262xf){return _0xf262xb[_0xc43a[23]](404)};var _0xf262x13=_[_0xc43a[37]](_0xf262xf,_0xf262xa[_0xc43a[35]]);return _0xf262x13[_0xc43a[38]]()})[_0xc43a[15]](function(_0xf262xf){return _0xf262xb[_0xc43a[14]](200)[_0xc43a[13]](_0xf262xf)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})};exports[_0xc43a[41]]= function(_0xf262xa,_0xf262xb){var _0xf262x15;return ExtractedReport[_0xc43a[25]](_0xf262xa[_0xc43a[24]][_0xc43a[17]])[_0xc43a[15]](function(_0xf262xf){_0xf262x15= _0xf262xf;if(!_0xf262xf){return _0xf262xb[_0xc43a[23]](404)};return _0xf262xf[_0xc43a[41]]()})[_0xc43a[15]](function(){if(_0xf262x15[_0xc43a[31]]){var _0xf262x11=path[_0xc43a[32]](config[_0xc43a[27]],_0xc43a[28],_0xc43a[29],_0xc43a[30],_0xf262x15[_0xc43a[31]]);fs[_0xc43a[50]](_0xf262x11,fs[_0xc43a[42]]| fs[_0xc43a[43]],function(_0xf262xd){if(_0xf262xd){console[_0xc43a[45]](_0xc43a[44])}else {fs[_0xc43a[49]](_0xf262x11,function(_0xf262xd){if(_0xf262xd){console[_0xc43a[45]](_0xc43a[46],_0xf262xd)}else {console[_0xc43a[48]](_0xc43a[47])}})}})};return _0xf262xb[_0xc43a[23]](204)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})};exports[_0xc43a[51]]= function(_0xf262xa,_0xf262xb){var _0xf262x16;return ExtractedReport[_0xc43a[40]]({where:{id:_0xf262xa[_0xc43a[16]][_0xc43a[55]]}})[_0xc43a[15]](function(_0xf262x17){_0xf262x16= _0xf262x17;var _0xf262x18=[];_0xf262x17[_0xc43a[52]](function(_0xf262xf){_0xf262x18[_0xc43a[54]](_0xf262xf[_0xc43a[41]]())});return _0xf262x18})[_0xc43a[53]]()[_0xc43a[15]](function(){_0xf262x16[_0xc43a[52]](function(_0xf262xf){if(_0xf262xf[_0xc43a[31]]){var _0xf262x11=path[_0xc43a[32]](config[_0xc43a[27]],_0xc43a[28],_0xc43a[29],_0xc43a[30],_0xf262xf[_0xc43a[31]]);fs[_0xc43a[50]](_0xf262x11,fs[_0xc43a[42]]| fs[_0xc43a[43]],function(_0xf262xd){if(_0xf262xd){console[_0xc43a[45]](_0xc43a[44])}else {fs[_0xc43a[49]](_0xf262x11,function(_0xf262xd){if(_0xf262xd){console[_0xc43a[45]](_0xc43a[46],_0xf262xd)}else {console[_0xc43a[48]](_0xc43a[47])}})}})}});return _0xf262xb[_0xc43a[23]](204)})[_0xc43a[12]](function(_0xf262xd){return handleError(_0xf262xb,_0xf262xd)})};function handleError(_0xf262xb,_0xf262xd){console[_0xc43a[48]](_0xf262xd);return _0xf262xb[_0xc43a[14]](500)[_0xc43a[13]](_0xf262xd)}
\ No newline at end of file