Built motion from commit 16cc8f1.|1.0.14
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 1433a43..62c9723 100644 (file)
@@ -1 +1 @@
-var _0xc755=["\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","\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"];_0xc755[0];var _=require(_0xc755[1]);var ExtractedReport=require(_0xc755[3])[_0xc755[2]];var util=require(_0xc755[4]);var path=require(_0xc755[5]);var moment=require(_0xc755[6]);var config=require(_0xc755[7]);var base64=require(_0xc755[8]);var fs=require(_0xc755[9]);var Util=require(_0xc755[10]);exports[_0xc755[11]]=function(_0xe8d5xa,_0xe8d5xb,_0xe8d5xc){switch(_0xe8d5xa[_0xc755[18]][_0xc755[21]]){case _0xc755[18]:return ExtractedReport[_0xc755[20]](Util[_0xc755[19]](_0xe8d5xa[_0xc755[16]],{UserId:_0xe8d5xa[_0xc755[18]][_0xc755[17]]}))[_0xc755[15]](function(_0xe8d5xe){_0xe8d5xb[_0xc755[14]](200)[_0xc755[13]](_0xe8d5xe)})[_0xc755[12]](function(_0xe8d5xd){return handleError(_0xe8d5xb,_0xe8d5xd)});default:return ExtractedReport[_0xc755[20]](Util[_0xc755[19]](_0xe8d5xa[_0xc755[16]]))[_0xc755[15]](function(_0xe8d5xe){_0xe8d5xb[_0xc755[14]](200)[_0xc755[13]](_0xe8d5xe)})[_0xc755[12]](function(_0xe8d5xd){return handleError(_0xe8d5xb,_0xe8d5xd)})}};exports[_0xc755[22]]=function(_0xe8d5xa,_0xe8d5xb){return ExtractedReport[_0xc755[25]](_0xe8d5xa[_0xc755[24]][_0xc755[17]])[_0xc755[15]](function(_0xe8d5xf){if(!_0xe8d5xf){return _0xe8d5xb[_0xc755[23]](404)};return _0xe8d5xb[_0xc755[13]](_0xe8d5xf)})[_0xc755[12]](function(_0xe8d5xd){return handleError(_0xe8d5xb,_0xe8d5xd)})};exports[_0xc755[26]]=function(_0xe8d5xa,_0xe8d5xb){return ExtractedReport[_0xc755[25]](_0xe8d5xa[_0xc755[24]][_0xc755[17]])[_0xc755[15]](function(_0xe8d5x10){if(!_0xe8d5x10){return _0xe8d5xb[_0xc755[14]](404)[_0xc755[13]](_0xe8d5x10)};var _0xe8d5x11=path[_0xc755[33]](config[_0xc755[28]],_0xc755[29],_0xc755[30],_0xc755[31],_0xe8d5x10[_0xc755[32]]);base64[_0xc755[34]](_0xe8d5x11,function(_0xe8d5xd,_0xe8d5x12){if(_0xe8d5xd){console[_0xc755[27]](_0xe8d5xd);return handleError(_0xe8d5xb,_0xe8d5xd)}else {return _0xe8d5xb[_0xc755[14]](200)[_0xc755[13]]({downloadString:_0xe8d5x12})}})})[_0xc755[12]](function(_0xe8d5xd){console[_0xc755[27]](_0xe8d5xd);return handleError(_0xe8d5xb,_0xe8d5xd)})};exports[_0xc755[35]]=function(_0xe8d5xa,_0xe8d5xb){return ExtractedReport[_0xc755[35]](_0xe8d5xa[_0xc755[36]])[_0xc755[15]](function(_0xe8d5xf){return _0xe8d5xb[_0xc755[14]](201)[_0xc755[13]](_0xe8d5xf)})[_0xc755[12]](function(_0xe8d5xd){return handleError(_0xe8d5xb,_0xe8d5xd)})};exports[_0xc755[37]]=function(_0xe8d5xa,_0xe8d5xb){return ExtractedReport[_0xc755[41]]({where:{name:_0xe8d5xa[_0xc755[36]][_0xc755[40]],id:{$ne:_0xe8d5xa[_0xc755[36]][_0xc755[17]]}}})[_0xc755[15]](function(_0xe8d5x14){if(!_0xe8d5x14){return _0xe8d5xb[_0xc755[23]](404)};if(_0xe8d5xa[_0xc755[36]][_0xc755[17]]){delete _0xe8d5xa[_0xc755[36]][_0xc755[17]]};return ExtractedReport[_0xc755[25]](_0xe8d5xa[_0xc755[24]][_0xc755[17]])})[_0xc755[15]](function(_0xe8d5xf){if(!_0xe8d5xf){return _0xe8d5xb[_0xc755[23]](404)};var _0xe8d5x13=_[_0xc755[38]](_0xe8d5xf,_0xe8d5xa[_0xc755[36]]);return _0xe8d5x13[_0xc755[39]]()})[_0xc755[15]](function(_0xe8d5xf){return _0xe8d5xb[_0xc755[14]](200)[_0xc755[13]](_0xe8d5xf)})[_0xc755[12]](function(_0xe8d5xd){return handleError(_0xe8d5xb,_0xe8d5xd)})};exports[_0xc755[42]]=function(_0xe8d5xa,_0xe8d5xb){var _0xe8d5x15;return ExtractedReport[_0xc755[25]](_0xe8d5xa[_0xc755[24]][_0xc755[17]])[_0xc755[15]](function(_0xe8d5xf){_0xe8d5x15=_0xe8d5xf;if(!_0xe8d5xf){return _0xe8d5xb[_0xc755[23]](404)};return _0xe8d5xf[_0xc755[42]]()})[_0xc755[15]](function(){if(_0xe8d5x15[_0xc755[32]]){var _0xe8d5x11=path[_0xc755[33]](config[_0xc755[28]],_0xc755[29],_0xc755[30],_0xc755[31],_0xe8d5x15[_0xc755[32]]);fs[_0xc755[50]](_0xe8d5x11,fs[_0xc755[43]]|fs[_0xc755[44]],function(_0xe8d5xd){if(_0xe8d5xd){console[_0xc755[46]](_0xc755[45])}else {fs[_0xc755[49]](_0xe8d5x11,function(_0xe8d5xd){if(_0xe8d5xd){console[_0xc755[46]](_0xc755[47],_0xe8d5xd)}else {console[_0xc755[27]](_0xc755[48])}})}})};return _0xe8d5xb[_0xc755[23]](204)})[_0xc755[12]](function(_0xe8d5xd){console[_0xc755[27]](_0xe8d5xd);return handleError(_0xe8d5xb,_0xe8d5xd)})};exports[_0xc755[51]]=function(_0xe8d5xa,_0xe8d5xb){var _0xe8d5x16;return ExtractedReport[_0xc755[41]]({where:{id:_0xe8d5xa[_0xc755[16]][_0xc755[55]]}})[_0xc755[15]](function(_0xe8d5x17){_0xe8d5x16=_0xe8d5x17;var _0xe8d5x18=[];_0xe8d5x17[_0xc755[52]](function(_0xe8d5xf){_0xe8d5x18[_0xc755[54]](_0xe8d5xf[_0xc755[42]]())});return _0xe8d5x18})[_0xc755[53]]()[_0xc755[15]](function(){_0xe8d5x16[_0xc755[52]](function(_0xe8d5xf){if(_0xe8d5xf[_0xc755[32]]){var _0xe8d5x11=path[_0xc755[33]](config[_0xc755[28]],_0xc755[29],_0xc755[30],_0xc755[31],_0xe8d5xf[_0xc755[32]]);fs[_0xc755[50]](_0xe8d5x11,fs[_0xc755[43]]|fs[_0xc755[44]],function(_0xe8d5xd){if(_0xe8d5xd){console[_0xc755[46]](_0xc755[45])}else {fs[_0xc755[49]](_0xe8d5x11,function(_0xe8d5xd){if(_0xe8d5xd){console[_0xc755[46]](_0xc755[47],_0xe8d5xd)}else {console[_0xc755[27]](_0xc755[48])}})}})}});return _0xe8d5xb[_0xc755[23]](204)})[_0xc755[12]](function(_0xe8d5xd){return handleError(_0xe8d5xb,_0xe8d5xd)})};function handleError(_0xe8d5xb,_0xe8d5xd){return _0xe8d5xb[_0xc755[14]](500)[_0xc755[13]](_0xe8d5xd)}
\ No newline at end of file
+var _0xd19e=["\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"];_0xd19e[0];var _=require(_0xd19e[1]);var ExtractedReport=require(_0xd19e[3])[_0xd19e[2]];var util=require(_0xd19e[4]);var path=require(_0xd19e[5]);var moment=require(_0xd19e[6]);var config=require(_0xd19e[7]);var base64=require(_0xd19e[8]);var fs=require(_0xd19e[9]);var Util=require(_0xd19e[10]);exports[_0xd19e[11]]= function(_0x819fxa,_0x819fxb,_0x819fxc){switch(_0x819fxa[_0xd19e[18]][_0xd19e[21]]){case _0xd19e[18]:return ExtractedReport[_0xd19e[20]](Util[_0xd19e[19]](_0x819fxa[_0xd19e[16]],{UserId:_0x819fxa[_0xd19e[18]][_0xd19e[17]]}))[_0xd19e[15]](function(_0x819fxe){_0x819fxb[_0xd19e[14]](200)[_0xd19e[13]](_0x819fxe)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)});default:return ExtractedReport[_0xd19e[20]](Util[_0xd19e[19]](_0x819fxa[_0xd19e[16]]))[_0xd19e[15]](function(_0x819fxe){_0x819fxb[_0xd19e[14]](200)[_0xd19e[13]](_0x819fxe)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})}};exports[_0xd19e[22]]= function(_0x819fxa,_0x819fxb){return ExtractedReport[_0xd19e[25]](_0x819fxa[_0xd19e[24]][_0xd19e[17]])[_0xd19e[15]](function(_0x819fxf){if(!_0x819fxf){return _0x819fxb[_0xd19e[23]](404)};return _0x819fxb[_0xd19e[13]](_0x819fxf)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})};exports[_0xd19e[26]]= function(_0x819fxa,_0x819fxb){return ExtractedReport[_0xd19e[25]](_0x819fxa[_0xd19e[24]][_0xd19e[17]])[_0xd19e[15]](function(_0x819fx10){if(!_0x819fx10){return _0x819fxb[_0xd19e[14]](404)[_0xd19e[13]](_0x819fx10)};var _0x819fx11=path[_0xd19e[32]](config[_0xd19e[27]],_0xd19e[28],_0xd19e[29],_0xd19e[30],_0x819fx10[_0xd19e[31]]);base64[_0xd19e[33]](_0x819fx11,function(_0x819fxd,_0x819fx12){if(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)}else {return _0x819fxb[_0xd19e[14]](200)[_0xd19e[13]]({downloadString:_0x819fx12})}})})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})};exports[_0xd19e[34]]= function(_0x819fxa,_0x819fxb){return ExtractedReport[_0xd19e[34]](_0x819fxa[_0xd19e[35]])[_0xd19e[15]](function(_0x819fxf){return _0x819fxb[_0xd19e[14]](201)[_0xd19e[13]](_0x819fxf)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})};exports[_0xd19e[36]]= function(_0x819fxa,_0x819fxb){return ExtractedReport[_0xd19e[40]]({where:{name:_0x819fxa[_0xd19e[35]][_0xd19e[39]],id:{$ne:_0x819fxa[_0xd19e[35]][_0xd19e[17]]}}})[_0xd19e[15]](function(_0x819fx14){if(!_0x819fx14){return _0x819fxb[_0xd19e[23]](404)};if(_0x819fxa[_0xd19e[35]][_0xd19e[17]]){delete _0x819fxa[_0xd19e[35]][_0xd19e[17]]};return ExtractedReport[_0xd19e[25]](_0x819fxa[_0xd19e[24]][_0xd19e[17]])})[_0xd19e[15]](function(_0x819fxf){if(!_0x819fxf){return _0x819fxb[_0xd19e[23]](404)};var _0x819fx13=_[_0xd19e[37]](_0x819fxf,_0x819fxa[_0xd19e[35]]);return _0x819fx13[_0xd19e[38]]()})[_0xd19e[15]](function(_0x819fxf){return _0x819fxb[_0xd19e[14]](200)[_0xd19e[13]](_0x819fxf)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})};exports[_0xd19e[41]]= function(_0x819fxa,_0x819fxb){var _0x819fx15;return ExtractedReport[_0xd19e[25]](_0x819fxa[_0xd19e[24]][_0xd19e[17]])[_0xd19e[15]](function(_0x819fxf){_0x819fx15= _0x819fxf;if(!_0x819fxf){return _0x819fxb[_0xd19e[23]](404)};return _0x819fxf[_0xd19e[41]]()})[_0xd19e[15]](function(){if(_0x819fx15[_0xd19e[31]]){var _0x819fx11=path[_0xd19e[32]](config[_0xd19e[27]],_0xd19e[28],_0xd19e[29],_0xd19e[30],_0x819fx15[_0xd19e[31]]);fs[_0xd19e[50]](_0x819fx11,fs[_0xd19e[42]]| fs[_0xd19e[43]],function(_0x819fxd){if(_0x819fxd){console[_0xd19e[45]](_0xd19e[44])}else {fs[_0xd19e[49]](_0x819fx11,function(_0x819fxd){if(_0x819fxd){console[_0xd19e[45]](_0xd19e[46],_0x819fxd)}else {console[_0xd19e[48]](_0xd19e[47])}})}})};return _0x819fxb[_0xd19e[23]](204)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})};exports[_0xd19e[51]]= function(_0x819fxa,_0x819fxb){var _0x819fx16;return ExtractedReport[_0xd19e[40]]({where:{id:_0x819fxa[_0xd19e[16]][_0xd19e[55]]}})[_0xd19e[15]](function(_0x819fx17){_0x819fx16= _0x819fx17;var _0x819fx18=[];_0x819fx17[_0xd19e[52]](function(_0x819fxf){_0x819fx18[_0xd19e[54]](_0x819fxf[_0xd19e[41]]())});return _0x819fx18})[_0xd19e[53]]()[_0xd19e[15]](function(){_0x819fx16[_0xd19e[52]](function(_0x819fxf){if(_0x819fxf[_0xd19e[31]]){var _0x819fx11=path[_0xd19e[32]](config[_0xd19e[27]],_0xd19e[28],_0xd19e[29],_0xd19e[30],_0x819fxf[_0xd19e[31]]);fs[_0xd19e[50]](_0x819fx11,fs[_0xd19e[42]]| fs[_0xd19e[43]],function(_0x819fxd){if(_0x819fxd){console[_0xd19e[45]](_0xd19e[44])}else {fs[_0xd19e[49]](_0x819fx11,function(_0x819fxd){if(_0x819fxd){console[_0xd19e[45]](_0xd19e[46],_0x819fxd)}else {console[_0xd19e[48]](_0xd19e[47])}})}})}});return _0x819fxb[_0xd19e[23]](204)})[_0xd19e[12]](function(_0x819fxd){return handleError(_0x819fxb,_0x819fxd)})};function handleError(_0x819fxb,_0x819fxd){console[_0xd19e[48]](_0x819fxd);return _0x819fxb[_0xd19e[14]](500)[_0xd19e[13]](_0x819fxd)}
\ No newline at end of file