Built motion from commit b322525.|0.0.112
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 790269c..b78b99e 100644 (file)
@@ -1 +1 @@
-var _0xf356=["\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","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x6C\x6F\x67","\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","\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"];_0xf356[0];var _=require(_0xf356[1]);var ExtractedReport=require(_0xf356[3])[_0xf356[2]];var util=require(_0xf356[4]);var path=require(_0xf356[5]);var moment=require(_0xf356[6]);var config=require(_0xf356[7]);var base64=require(_0xf356[8]);var fs=require(_0xf356[9]);var Util=require(_0xf356[10]);exports[_0xf356[11]]=function(_0x9bf7xa,_0x9bf7xb,_0x9bf7xc){return ExtractedReport[_0xf356[18]](Util[_0xf356[17]](_0x9bf7xa[_0xf356[16]]))[_0xf356[15]](function(_0x9bf7xe){_0x9bf7xb[_0xf356[14]](200)[_0xf356[13]](_0x9bf7xe)})[_0xf356[12]](function(_0x9bf7xd){return handleError(_0x9bf7xb,_0x9bf7xd)})};exports[_0xf356[19]]=function(_0x9bf7xa,_0x9bf7xb){return ExtractedReport[_0xf356[23]](_0x9bf7xa[_0xf356[22]][_0xf356[21]])[_0xf356[15]](function(_0x9bf7xf){if(!_0x9bf7xf){return _0x9bf7xb[_0xf356[20]](404)};return _0x9bf7xb[_0xf356[13]](_0x9bf7xf)})[_0xf356[12]](function(_0x9bf7xd){return handleError(_0x9bf7xb,_0x9bf7xd)})};exports[_0xf356[24]]=function(_0x9bf7xa,_0x9bf7xb){return ExtractedReport[_0xf356[23]](_0x9bf7xa[_0xf356[22]][_0xf356[21]])[_0xf356[15]](function(_0x9bf7x10){if(!_0x9bf7x10){return _0x9bf7xb[_0xf356[14]](404)[_0xf356[13]](_0x9bf7x10)};var _0x9bf7x11=path[_0xf356[31]](config[_0xf356[26]],_0xf356[27],_0xf356[28],_0xf356[29],_0x9bf7x10[_0xf356[30]]);base64[_0xf356[32]](_0x9bf7x11,function(_0x9bf7xd,_0x9bf7x12){if(_0x9bf7xd){console[_0xf356[25]](_0x9bf7xd);return handleError(_0x9bf7xb,_0x9bf7xd)}else {return _0x9bf7xb[_0xf356[14]](200)[_0xf356[13]]({downloadString:_0x9bf7x12})}})})[_0xf356[12]](function(_0x9bf7xd){console[_0xf356[25]](_0x9bf7xd);return handleError(_0x9bf7xb,_0x9bf7xd)})};exports[_0xf356[33]]=function(_0x9bf7xa,_0x9bf7xb){return ExtractedReport[_0xf356[33]](_0x9bf7xa[_0xf356[34]])[_0xf356[15]](function(_0x9bf7xf){return _0x9bf7xb[_0xf356[14]](201)[_0xf356[13]](_0x9bf7xf)})[_0xf356[12]](function(_0x9bf7xd){return handleError(_0x9bf7xb,_0x9bf7xd)})};exports[_0xf356[35]]=function(_0x9bf7xa,_0x9bf7xb){return ExtractedReport[_0xf356[39]]({where:{name:_0x9bf7xa[_0xf356[34]][_0xf356[38]],id:{$ne:_0x9bf7xa[_0xf356[34]][_0xf356[21]]}}})[_0xf356[15]](function(_0x9bf7x14){if(!_0x9bf7x14){return _0x9bf7xb[_0xf356[20]](404)};if(_0x9bf7xa[_0xf356[34]][_0xf356[21]]){delete _0x9bf7xa[_0xf356[34]][_0xf356[21]]};return ExtractedReport[_0xf356[23]](_0x9bf7xa[_0xf356[22]][_0xf356[21]])})[_0xf356[15]](function(_0x9bf7xf){if(!_0x9bf7xf){return _0x9bf7xb[_0xf356[20]](404)};var _0x9bf7x13=_[_0xf356[36]](_0x9bf7xf,_0x9bf7xa[_0xf356[34]]);return _0x9bf7x13[_0xf356[37]]()})[_0xf356[15]](function(_0x9bf7xf){return _0x9bf7xb[_0xf356[14]](200)[_0xf356[13]](_0x9bf7xf)})[_0xf356[12]](function(_0x9bf7xd){return handleError(_0x9bf7xb,_0x9bf7xd)})};exports[_0xf356[40]]=function(_0x9bf7xa,_0x9bf7xb){var _0x9bf7x15;return ExtractedReport[_0xf356[23]](_0x9bf7xa[_0xf356[22]][_0xf356[21]])[_0xf356[15]](function(_0x9bf7xf){_0x9bf7x15=_0x9bf7xf;if(!_0x9bf7xf){return _0x9bf7xb[_0xf356[20]](404)};return _0x9bf7xf[_0xf356[40]]()})[_0xf356[15]](function(){if(_0x9bf7x15[_0xf356[30]]){var _0x9bf7x11=path[_0xf356[31]](config[_0xf356[26]],_0xf356[27],_0xf356[28],_0xf356[29],_0x9bf7x15[_0xf356[30]]);fs[_0xf356[48]](_0x9bf7x11,fs[_0xf356[41]]|fs[_0xf356[42]],function(_0x9bf7xd){if(_0x9bf7xd){console[_0xf356[44]](_0xf356[43])}else {fs[_0xf356[47]](_0x9bf7x11,function(_0x9bf7xd){if(_0x9bf7xd){console[_0xf356[44]](_0xf356[45],_0x9bf7xd)}else {console[_0xf356[25]](_0xf356[46])}})}})};return _0x9bf7xb[_0xf356[20]](204)})[_0xf356[12]](function(_0x9bf7xd){console[_0xf356[25]](_0x9bf7xd);return handleError(_0x9bf7xb,_0x9bf7xd)})};exports[_0xf356[49]]=function(_0x9bf7xa,_0x9bf7xb){var _0x9bf7x16;return ExtractedReport[_0xf356[39]]({where:{id:_0x9bf7xa[_0xf356[16]][_0xf356[53]]}})[_0xf356[15]](function(_0x9bf7x17){_0x9bf7x16=_0x9bf7x17;var _0x9bf7x18=[];_0x9bf7x17[_0xf356[50]](function(_0x9bf7xf){_0x9bf7x18[_0xf356[52]](_0x9bf7xf[_0xf356[40]]())});return _0x9bf7x18})[_0xf356[51]]()[_0xf356[15]](function(){_0x9bf7x16[_0xf356[50]](function(_0x9bf7xf){if(_0x9bf7xf[_0xf356[30]]){var _0x9bf7x11=path[_0xf356[31]](config[_0xf356[26]],_0xf356[27],_0xf356[28],_0xf356[29],_0x9bf7xf[_0xf356[30]]);fs[_0xf356[48]](_0x9bf7x11,fs[_0xf356[41]]|fs[_0xf356[42]],function(_0x9bf7xd){if(_0x9bf7xd){console[_0xf356[44]](_0xf356[43])}else {fs[_0xf356[47]](_0x9bf7x11,function(_0x9bf7xd){if(_0x9bf7xd){console[_0xf356[44]](_0xf356[45],_0x9bf7xd)}else {console[_0xf356[25]](_0xf356[46])}})}})}});return _0x9bf7xb[_0xf356[20]](204)})[_0xf356[12]](function(_0x9bf7xd){return handleError(_0x9bf7xb,_0x9bf7xd)})};function handleError(_0x9bf7xb,_0x9bf7xd){return _0x9bf7xb[_0xf356[14]](500)[_0xf356[13]](_0x9bf7xd)}
\ No newline at end of file
+var _0x759f=["\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"];_0x759f[0];var _=require(_0x759f[1]);var ExtractedReport=require(_0x759f[3])[_0x759f[2]];var util=require(_0x759f[4]);var path=require(_0x759f[5]);var moment=require(_0x759f[6]);var config=require(_0x759f[7]);var base64=require(_0x759f[8]);var fs=require(_0x759f[9]);var Util=require(_0x759f[10]);exports[_0x759f[11]]=function(_0x32bdxa,_0x32bdxb,_0x32bdxc){switch(_0x32bdxa[_0x759f[18]][_0x759f[21]]){case _0x759f[18]:return ExtractedReport[_0x759f[20]](Util[_0x759f[19]](_0x32bdxa[_0x759f[16]],{UserId:_0x32bdxa[_0x759f[18]][_0x759f[17]]}))[_0x759f[15]](function(_0x32bdxe){_0x32bdxb[_0x759f[14]](200)[_0x759f[13]](_0x32bdxe)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)});default:return ExtractedReport[_0x759f[20]](Util[_0x759f[19]](_0x32bdxa[_0x759f[16]]))[_0x759f[15]](function(_0x32bdxe){_0x32bdxb[_0x759f[14]](200)[_0x759f[13]](_0x32bdxe)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})}};exports[_0x759f[22]]=function(_0x32bdxa,_0x32bdxb){return ExtractedReport[_0x759f[25]](_0x32bdxa[_0x759f[24]][_0x759f[17]])[_0x759f[15]](function(_0x32bdxf){if(!_0x32bdxf){return _0x32bdxb[_0x759f[23]](404)};return _0x32bdxb[_0x759f[13]](_0x32bdxf)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})};exports[_0x759f[26]]=function(_0x32bdxa,_0x32bdxb){return ExtractedReport[_0x759f[25]](_0x32bdxa[_0x759f[24]][_0x759f[17]])[_0x759f[15]](function(_0x32bdx10){if(!_0x32bdx10){return _0x32bdxb[_0x759f[14]](404)[_0x759f[13]](_0x32bdx10)};var _0x32bdx11=path[_0x759f[32]](config[_0x759f[27]],_0x759f[28],_0x759f[29],_0x759f[30],_0x32bdx10[_0x759f[31]]);base64[_0x759f[33]](_0x32bdx11,function(_0x32bdxd,_0x32bdx12){if(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)}else {return _0x32bdxb[_0x759f[14]](200)[_0x759f[13]]({downloadString:_0x32bdx12})}})})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})};exports[_0x759f[34]]=function(_0x32bdxa,_0x32bdxb){return ExtractedReport[_0x759f[34]](_0x32bdxa[_0x759f[35]])[_0x759f[15]](function(_0x32bdxf){return _0x32bdxb[_0x759f[14]](201)[_0x759f[13]](_0x32bdxf)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})};exports[_0x759f[36]]=function(_0x32bdxa,_0x32bdxb){return ExtractedReport[_0x759f[40]]({where:{name:_0x32bdxa[_0x759f[35]][_0x759f[39]],id:{$ne:_0x32bdxa[_0x759f[35]][_0x759f[17]]}}})[_0x759f[15]](function(_0x32bdx14){if(!_0x32bdx14){return _0x32bdxb[_0x759f[23]](404)};if(_0x32bdxa[_0x759f[35]][_0x759f[17]]){delete _0x32bdxa[_0x759f[35]][_0x759f[17]]};return ExtractedReport[_0x759f[25]](_0x32bdxa[_0x759f[24]][_0x759f[17]])})[_0x759f[15]](function(_0x32bdxf){if(!_0x32bdxf){return _0x32bdxb[_0x759f[23]](404)};var _0x32bdx13=_[_0x759f[37]](_0x32bdxf,_0x32bdxa[_0x759f[35]]);return _0x32bdx13[_0x759f[38]]()})[_0x759f[15]](function(_0x32bdxf){return _0x32bdxb[_0x759f[14]](200)[_0x759f[13]](_0x32bdxf)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})};exports[_0x759f[41]]=function(_0x32bdxa,_0x32bdxb){var _0x32bdx15;return ExtractedReport[_0x759f[25]](_0x32bdxa[_0x759f[24]][_0x759f[17]])[_0x759f[15]](function(_0x32bdxf){_0x32bdx15=_0x32bdxf;if(!_0x32bdxf){return _0x32bdxb[_0x759f[23]](404)};return _0x32bdxf[_0x759f[41]]()})[_0x759f[15]](function(){if(_0x32bdx15[_0x759f[31]]){var _0x32bdx11=path[_0x759f[32]](config[_0x759f[27]],_0x759f[28],_0x759f[29],_0x759f[30],_0x32bdx15[_0x759f[31]]);fs[_0x759f[50]](_0x32bdx11,fs[_0x759f[42]]|fs[_0x759f[43]],function(_0x32bdxd){if(_0x32bdxd){console[_0x759f[45]](_0x759f[44])}else {fs[_0x759f[49]](_0x32bdx11,function(_0x32bdxd){if(_0x32bdxd){console[_0x759f[45]](_0x759f[46],_0x32bdxd)}else {console[_0x759f[48]](_0x759f[47])}})}})};return _0x32bdxb[_0x759f[23]](204)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})};exports[_0x759f[51]]=function(_0x32bdxa,_0x32bdxb){var _0x32bdx16;return ExtractedReport[_0x759f[40]]({where:{id:_0x32bdxa[_0x759f[16]][_0x759f[55]]}})[_0x759f[15]](function(_0x32bdx17){_0x32bdx16=_0x32bdx17;var _0x32bdx18=[];_0x32bdx17[_0x759f[52]](function(_0x32bdxf){_0x32bdx18[_0x759f[54]](_0x32bdxf[_0x759f[41]]())});return _0x32bdx18})[_0x759f[53]]()[_0x759f[15]](function(){_0x32bdx16[_0x759f[52]](function(_0x32bdxf){if(_0x32bdxf[_0x759f[31]]){var _0x32bdx11=path[_0x759f[32]](config[_0x759f[27]],_0x759f[28],_0x759f[29],_0x759f[30],_0x32bdxf[_0x759f[31]]);fs[_0x759f[50]](_0x32bdx11,fs[_0x759f[42]]|fs[_0x759f[43]],function(_0x32bdxd){if(_0x32bdxd){console[_0x759f[45]](_0x759f[44])}else {fs[_0x759f[49]](_0x32bdx11,function(_0x32bdxd){if(_0x32bdxd){console[_0x759f[45]](_0x759f[46],_0x32bdxd)}else {console[_0x759f[48]](_0x759f[47])}})}})}});return _0x32bdxb[_0x759f[23]](204)})[_0x759f[12]](function(_0x32bdxd){return handleError(_0x32bdxb,_0x32bdxd)})};function handleError(_0x32bdxb,_0x32bdxd){console[_0x759f[48]](_0x32bdxd);return _0x32bdxb[_0x759f[14]](500)[_0x759f[13]](_0x32bdxd)}
\ No newline at end of file