Built motion from commit 39cd900.|1.0.3
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 501c433..bded53c 100644 (file)
@@ -1 +1 @@
-var _0x50e3=["\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"];_0x50e3[0];var _=require(_0x50e3[1]);var ExtractedReport=require(_0x50e3[3])[_0x50e3[2]];var util=require(_0x50e3[4]);var path=require(_0x50e3[5]);var moment=require(_0x50e3[6]);var config=require(_0x50e3[7]);var base64=require(_0x50e3[8]);var fs=require(_0x50e3[9]);var Util=require(_0x50e3[10]);exports[_0x50e3[11]]= function(_0xdc1dxa,_0xdc1dxb,_0xdc1dxc){switch(_0xdc1dxa[_0x50e3[18]][_0x50e3[21]]){case _0x50e3[18]:return ExtractedReport[_0x50e3[20]](Util[_0x50e3[19]](_0xdc1dxa[_0x50e3[16]],{UserId:_0xdc1dxa[_0x50e3[18]][_0x50e3[17]]}))[_0x50e3[15]](function(_0xdc1dxe){_0xdc1dxb[_0x50e3[14]](200)[_0x50e3[13]](_0xdc1dxe)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)});default:return ExtractedReport[_0x50e3[20]](Util[_0x50e3[19]](_0xdc1dxa[_0x50e3[16]]))[_0x50e3[15]](function(_0xdc1dxe){_0xdc1dxb[_0x50e3[14]](200)[_0x50e3[13]](_0xdc1dxe)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})}};exports[_0x50e3[22]]= function(_0xdc1dxa,_0xdc1dxb){return ExtractedReport[_0x50e3[25]](_0xdc1dxa[_0x50e3[24]][_0x50e3[17]])[_0x50e3[15]](function(_0xdc1dxf){if(!_0xdc1dxf){return _0xdc1dxb[_0x50e3[23]](404)};return _0xdc1dxb[_0x50e3[13]](_0xdc1dxf)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})};exports[_0x50e3[26]]= function(_0xdc1dxa,_0xdc1dxb){return ExtractedReport[_0x50e3[25]](_0xdc1dxa[_0x50e3[24]][_0x50e3[17]])[_0x50e3[15]](function(_0xdc1dx10){if(!_0xdc1dx10){return _0xdc1dxb[_0x50e3[14]](404)[_0x50e3[13]](_0xdc1dx10)};var _0xdc1dx11=path[_0x50e3[32]](config[_0x50e3[27]],_0x50e3[28],_0x50e3[29],_0x50e3[30],_0xdc1dx10[_0x50e3[31]]);base64[_0x50e3[33]](_0xdc1dx11,function(_0xdc1dxd,_0xdc1dx12){if(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)}else {return _0xdc1dxb[_0x50e3[14]](200)[_0x50e3[13]]({downloadString:_0xdc1dx12})}})})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})};exports[_0x50e3[34]]= function(_0xdc1dxa,_0xdc1dxb){return ExtractedReport[_0x50e3[34]](_0xdc1dxa[_0x50e3[35]])[_0x50e3[15]](function(_0xdc1dxf){return _0xdc1dxb[_0x50e3[14]](201)[_0x50e3[13]](_0xdc1dxf)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})};exports[_0x50e3[36]]= function(_0xdc1dxa,_0xdc1dxb){return ExtractedReport[_0x50e3[40]]({where:{name:_0xdc1dxa[_0x50e3[35]][_0x50e3[39]],id:{$ne:_0xdc1dxa[_0x50e3[35]][_0x50e3[17]]}}})[_0x50e3[15]](function(_0xdc1dx14){if(!_0xdc1dx14){return _0xdc1dxb[_0x50e3[23]](404)};if(_0xdc1dxa[_0x50e3[35]][_0x50e3[17]]){delete _0xdc1dxa[_0x50e3[35]][_0x50e3[17]]};return ExtractedReport[_0x50e3[25]](_0xdc1dxa[_0x50e3[24]][_0x50e3[17]])})[_0x50e3[15]](function(_0xdc1dxf){if(!_0xdc1dxf){return _0xdc1dxb[_0x50e3[23]](404)};var _0xdc1dx13=_[_0x50e3[37]](_0xdc1dxf,_0xdc1dxa[_0x50e3[35]]);return _0xdc1dx13[_0x50e3[38]]()})[_0x50e3[15]](function(_0xdc1dxf){return _0xdc1dxb[_0x50e3[14]](200)[_0x50e3[13]](_0xdc1dxf)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})};exports[_0x50e3[41]]= function(_0xdc1dxa,_0xdc1dxb){var _0xdc1dx15;return ExtractedReport[_0x50e3[25]](_0xdc1dxa[_0x50e3[24]][_0x50e3[17]])[_0x50e3[15]](function(_0xdc1dxf){_0xdc1dx15= _0xdc1dxf;if(!_0xdc1dxf){return _0xdc1dxb[_0x50e3[23]](404)};return _0xdc1dxf[_0x50e3[41]]()})[_0x50e3[15]](function(){if(_0xdc1dx15[_0x50e3[31]]){var _0xdc1dx11=path[_0x50e3[32]](config[_0x50e3[27]],_0x50e3[28],_0x50e3[29],_0x50e3[30],_0xdc1dx15[_0x50e3[31]]);fs[_0x50e3[50]](_0xdc1dx11,fs[_0x50e3[42]]| fs[_0x50e3[43]],function(_0xdc1dxd){if(_0xdc1dxd){console[_0x50e3[45]](_0x50e3[44])}else {fs[_0x50e3[49]](_0xdc1dx11,function(_0xdc1dxd){if(_0xdc1dxd){console[_0x50e3[45]](_0x50e3[46],_0xdc1dxd)}else {console[_0x50e3[48]](_0x50e3[47])}})}})};return _0xdc1dxb[_0x50e3[23]](204)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})};exports[_0x50e3[51]]= function(_0xdc1dxa,_0xdc1dxb){var _0xdc1dx16;return ExtractedReport[_0x50e3[40]]({where:{id:_0xdc1dxa[_0x50e3[16]][_0x50e3[55]]}})[_0x50e3[15]](function(_0xdc1dx17){_0xdc1dx16= _0xdc1dx17;var _0xdc1dx18=[];_0xdc1dx17[_0x50e3[52]](function(_0xdc1dxf){_0xdc1dx18[_0x50e3[54]](_0xdc1dxf[_0x50e3[41]]())});return _0xdc1dx18})[_0x50e3[53]]()[_0x50e3[15]](function(){_0xdc1dx16[_0x50e3[52]](function(_0xdc1dxf){if(_0xdc1dxf[_0x50e3[31]]){var _0xdc1dx11=path[_0x50e3[32]](config[_0x50e3[27]],_0x50e3[28],_0x50e3[29],_0x50e3[30],_0xdc1dxf[_0x50e3[31]]);fs[_0x50e3[50]](_0xdc1dx11,fs[_0x50e3[42]]| fs[_0x50e3[43]],function(_0xdc1dxd){if(_0xdc1dxd){console[_0x50e3[45]](_0x50e3[44])}else {fs[_0x50e3[49]](_0xdc1dx11,function(_0xdc1dxd){if(_0xdc1dxd){console[_0x50e3[45]](_0x50e3[46],_0xdc1dxd)}else {console[_0x50e3[48]](_0x50e3[47])}})}})}});return _0xdc1dxb[_0x50e3[23]](204)})[_0x50e3[12]](function(_0xdc1dxd){return handleError(_0xdc1dxb,_0xdc1dxd)})};function handleError(_0xdc1dxb,_0xdc1dxd){console[_0x50e3[48]](_0xdc1dxd);return _0xdc1dxb[_0x50e3[14]](500)[_0x50e3[13]](_0xdc1dxd)}
\ No newline at end of file
+var _0x151d=["\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"];_0x151d[0];var _=require(_0x151d[1]);var ExtractedReport=require(_0x151d[3])[_0x151d[2]];var util=require(_0x151d[4]);var path=require(_0x151d[5]);var moment=require(_0x151d[6]);var config=require(_0x151d[7]);var base64=require(_0x151d[8]);var fs=require(_0x151d[9]);var Util=require(_0x151d[10]);exports[_0x151d[11]]= function(_0x3533xa,_0x3533xb,_0x3533xc){switch(_0x3533xa[_0x151d[18]][_0x151d[21]]){case _0x151d[18]:return ExtractedReport[_0x151d[20]](Util[_0x151d[19]](_0x3533xa[_0x151d[16]],{UserId:_0x3533xa[_0x151d[18]][_0x151d[17]]}))[_0x151d[15]](function(_0x3533xe){_0x3533xb[_0x151d[14]](200)[_0x151d[13]](_0x3533xe)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)});default:return ExtractedReport[_0x151d[20]](Util[_0x151d[19]](_0x3533xa[_0x151d[16]]))[_0x151d[15]](function(_0x3533xe){_0x3533xb[_0x151d[14]](200)[_0x151d[13]](_0x3533xe)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})}};exports[_0x151d[22]]= function(_0x3533xa,_0x3533xb){return ExtractedReport[_0x151d[25]](_0x3533xa[_0x151d[24]][_0x151d[17]])[_0x151d[15]](function(_0x3533xf){if(!_0x3533xf){return _0x3533xb[_0x151d[23]](404)};return _0x3533xb[_0x151d[13]](_0x3533xf)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})};exports[_0x151d[26]]= function(_0x3533xa,_0x3533xb){return ExtractedReport[_0x151d[25]](_0x3533xa[_0x151d[24]][_0x151d[17]])[_0x151d[15]](function(_0x3533x10){if(!_0x3533x10){return _0x3533xb[_0x151d[14]](404)[_0x151d[13]](_0x3533x10)};var _0x3533x11=path[_0x151d[32]](config[_0x151d[27]],_0x151d[28],_0x151d[29],_0x151d[30],_0x3533x10[_0x151d[31]]);base64[_0x151d[33]](_0x3533x11,function(_0x3533xd,_0x3533x12){if(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)}else {return _0x3533xb[_0x151d[14]](200)[_0x151d[13]]({downloadString:_0x3533x12})}})})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})};exports[_0x151d[34]]= function(_0x3533xa,_0x3533xb){return ExtractedReport[_0x151d[34]](_0x3533xa[_0x151d[35]])[_0x151d[15]](function(_0x3533xf){return _0x3533xb[_0x151d[14]](201)[_0x151d[13]](_0x3533xf)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})};exports[_0x151d[36]]= function(_0x3533xa,_0x3533xb){return ExtractedReport[_0x151d[40]]({where:{name:_0x3533xa[_0x151d[35]][_0x151d[39]],id:{$ne:_0x3533xa[_0x151d[35]][_0x151d[17]]}}})[_0x151d[15]](function(_0x3533x14){if(!_0x3533x14){return _0x3533xb[_0x151d[23]](404)};if(_0x3533xa[_0x151d[35]][_0x151d[17]]){delete _0x3533xa[_0x151d[35]][_0x151d[17]]};return ExtractedReport[_0x151d[25]](_0x3533xa[_0x151d[24]][_0x151d[17]])})[_0x151d[15]](function(_0x3533xf){if(!_0x3533xf){return _0x3533xb[_0x151d[23]](404)};var _0x3533x13=_[_0x151d[37]](_0x3533xf,_0x3533xa[_0x151d[35]]);return _0x3533x13[_0x151d[38]]()})[_0x151d[15]](function(_0x3533xf){return _0x3533xb[_0x151d[14]](200)[_0x151d[13]](_0x3533xf)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})};exports[_0x151d[41]]= function(_0x3533xa,_0x3533xb){var _0x3533x15;return ExtractedReport[_0x151d[25]](_0x3533xa[_0x151d[24]][_0x151d[17]])[_0x151d[15]](function(_0x3533xf){_0x3533x15= _0x3533xf;if(!_0x3533xf){return _0x3533xb[_0x151d[23]](404)};return _0x3533xf[_0x151d[41]]()})[_0x151d[15]](function(){if(_0x3533x15[_0x151d[31]]){var _0x3533x11=path[_0x151d[32]](config[_0x151d[27]],_0x151d[28],_0x151d[29],_0x151d[30],_0x3533x15[_0x151d[31]]);fs[_0x151d[50]](_0x3533x11,fs[_0x151d[42]]| fs[_0x151d[43]],function(_0x3533xd){if(_0x3533xd){console[_0x151d[45]](_0x151d[44])}else {fs[_0x151d[49]](_0x3533x11,function(_0x3533xd){if(_0x3533xd){console[_0x151d[45]](_0x151d[46],_0x3533xd)}else {console[_0x151d[48]](_0x151d[47])}})}})};return _0x3533xb[_0x151d[23]](204)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})};exports[_0x151d[51]]= function(_0x3533xa,_0x3533xb){var _0x3533x16;return ExtractedReport[_0x151d[40]]({where:{id:_0x3533xa[_0x151d[16]][_0x151d[55]]}})[_0x151d[15]](function(_0x3533x17){_0x3533x16= _0x3533x17;var _0x3533x18=[];_0x3533x17[_0x151d[52]](function(_0x3533xf){_0x3533x18[_0x151d[54]](_0x3533xf[_0x151d[41]]())});return _0x3533x18})[_0x151d[53]]()[_0x151d[15]](function(){_0x3533x16[_0x151d[52]](function(_0x3533xf){if(_0x3533xf[_0x151d[31]]){var _0x3533x11=path[_0x151d[32]](config[_0x151d[27]],_0x151d[28],_0x151d[29],_0x151d[30],_0x3533xf[_0x151d[31]]);fs[_0x151d[50]](_0x3533x11,fs[_0x151d[42]]| fs[_0x151d[43]],function(_0x3533xd){if(_0x3533xd){console[_0x151d[45]](_0x151d[44])}else {fs[_0x151d[49]](_0x3533x11,function(_0x3533xd){if(_0x3533xd){console[_0x151d[45]](_0x151d[46],_0x3533xd)}else {console[_0x151d[48]](_0x151d[47])}})}})}});return _0x3533xb[_0x151d[23]](204)})[_0x151d[12]](function(_0x3533xd){return handleError(_0x3533xb,_0x3533xd)})};function handleError(_0x3533xb,_0x3533xd){console[_0x151d[48]](_0x3533xd);return _0x3533xb[_0x151d[14]](500)[_0x151d[13]](_0x3533xd)}
\ No newline at end of file