Built motion from commit b6cf875.|1.0.15
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 62c9723..fbefec9 100644 (file)
@@ -1 +1 @@
-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
+var _0x33dc=["\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"];_0x33dc[0];var _=require(_0x33dc[1]);var ExtractedReport=require(_0x33dc[3])[_0x33dc[2]];var util=require(_0x33dc[4]);var path=require(_0x33dc[5]);var moment=require(_0x33dc[6]);var config=require(_0x33dc[7]);var base64=require(_0x33dc[8]);var fs=require(_0x33dc[9]);var Util=require(_0x33dc[10]);exports[_0x33dc[11]]= function(_0x668fxa,_0x668fxb,_0x668fxc){switch(_0x668fxa[_0x33dc[18]][_0x33dc[21]]){case _0x33dc[18]:return ExtractedReport[_0x33dc[20]](Util[_0x33dc[19]](_0x668fxa[_0x33dc[16]],{UserId:_0x668fxa[_0x33dc[18]][_0x33dc[17]]}))[_0x33dc[15]](function(_0x668fxe){_0x668fxb[_0x33dc[14]](200)[_0x33dc[13]](_0x668fxe)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)});default:return ExtractedReport[_0x33dc[20]](Util[_0x33dc[19]](_0x668fxa[_0x33dc[16]]))[_0x33dc[15]](function(_0x668fxe){_0x668fxb[_0x33dc[14]](200)[_0x33dc[13]](_0x668fxe)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})}};exports[_0x33dc[22]]= function(_0x668fxa,_0x668fxb){return ExtractedReport[_0x33dc[25]](_0x668fxa[_0x33dc[24]][_0x33dc[17]])[_0x33dc[15]](function(_0x668fxf){if(!_0x668fxf){return _0x668fxb[_0x33dc[23]](404)};return _0x668fxb[_0x33dc[13]](_0x668fxf)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})};exports[_0x33dc[26]]= function(_0x668fxa,_0x668fxb){return ExtractedReport[_0x33dc[25]](_0x668fxa[_0x33dc[24]][_0x33dc[17]])[_0x33dc[15]](function(_0x668fx10){if(!_0x668fx10){return _0x668fxb[_0x33dc[14]](404)[_0x33dc[13]](_0x668fx10)};var _0x668fx11=path[_0x33dc[32]](config[_0x33dc[27]],_0x33dc[28],_0x33dc[29],_0x33dc[30],_0x668fx10[_0x33dc[31]]);base64[_0x33dc[33]](_0x668fx11,function(_0x668fxd,_0x668fx12){if(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)}else {return _0x668fxb[_0x33dc[14]](200)[_0x33dc[13]]({downloadString:_0x668fx12})}})})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})};exports[_0x33dc[34]]= function(_0x668fxa,_0x668fxb){return ExtractedReport[_0x33dc[34]](_0x668fxa[_0x33dc[35]])[_0x33dc[15]](function(_0x668fxf){return _0x668fxb[_0x33dc[14]](201)[_0x33dc[13]](_0x668fxf)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})};exports[_0x33dc[36]]= function(_0x668fxa,_0x668fxb){return ExtractedReport[_0x33dc[40]]({where:{name:_0x668fxa[_0x33dc[35]][_0x33dc[39]],id:{$ne:_0x668fxa[_0x33dc[35]][_0x33dc[17]]}}})[_0x33dc[15]](function(_0x668fx14){if(!_0x668fx14){return _0x668fxb[_0x33dc[23]](404)};if(_0x668fxa[_0x33dc[35]][_0x33dc[17]]){delete _0x668fxa[_0x33dc[35]][_0x33dc[17]]};return ExtractedReport[_0x33dc[25]](_0x668fxa[_0x33dc[24]][_0x33dc[17]])})[_0x33dc[15]](function(_0x668fxf){if(!_0x668fxf){return _0x668fxb[_0x33dc[23]](404)};var _0x668fx13=_[_0x33dc[37]](_0x668fxf,_0x668fxa[_0x33dc[35]]);return _0x668fx13[_0x33dc[38]]()})[_0x33dc[15]](function(_0x668fxf){return _0x668fxb[_0x33dc[14]](200)[_0x33dc[13]](_0x668fxf)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})};exports[_0x33dc[41]]= function(_0x668fxa,_0x668fxb){var _0x668fx15;return ExtractedReport[_0x33dc[25]](_0x668fxa[_0x33dc[24]][_0x33dc[17]])[_0x33dc[15]](function(_0x668fxf){_0x668fx15= _0x668fxf;if(!_0x668fxf){return _0x668fxb[_0x33dc[23]](404)};return _0x668fxf[_0x33dc[41]]()})[_0x33dc[15]](function(){if(_0x668fx15[_0x33dc[31]]){var _0x668fx11=path[_0x33dc[32]](config[_0x33dc[27]],_0x33dc[28],_0x33dc[29],_0x33dc[30],_0x668fx15[_0x33dc[31]]);fs[_0x33dc[50]](_0x668fx11,fs[_0x33dc[42]]| fs[_0x33dc[43]],function(_0x668fxd){if(_0x668fxd){console[_0x33dc[45]](_0x33dc[44])}else {fs[_0x33dc[49]](_0x668fx11,function(_0x668fxd){if(_0x668fxd){console[_0x33dc[45]](_0x33dc[46],_0x668fxd)}else {console[_0x33dc[48]](_0x33dc[47])}})}})};return _0x668fxb[_0x33dc[23]](204)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})};exports[_0x33dc[51]]= function(_0x668fxa,_0x668fxb){var _0x668fx16;return ExtractedReport[_0x33dc[40]]({where:{id:_0x668fxa[_0x33dc[16]][_0x33dc[55]]}})[_0x33dc[15]](function(_0x668fx17){_0x668fx16= _0x668fx17;var _0x668fx18=[];_0x668fx17[_0x33dc[52]](function(_0x668fxf){_0x668fx18[_0x33dc[54]](_0x668fxf[_0x33dc[41]]())});return _0x668fx18})[_0x33dc[53]]()[_0x33dc[15]](function(){_0x668fx16[_0x33dc[52]](function(_0x668fxf){if(_0x668fxf[_0x33dc[31]]){var _0x668fx11=path[_0x33dc[32]](config[_0x33dc[27]],_0x33dc[28],_0x33dc[29],_0x33dc[30],_0x668fxf[_0x33dc[31]]);fs[_0x33dc[50]](_0x668fx11,fs[_0x33dc[42]]| fs[_0x33dc[43]],function(_0x668fxd){if(_0x668fxd){console[_0x33dc[45]](_0x33dc[44])}else {fs[_0x33dc[49]](_0x668fx11,function(_0x668fxd){if(_0x668fxd){console[_0x33dc[45]](_0x33dc[46],_0x668fxd)}else {console[_0x33dc[48]](_0x33dc[47])}})}})}});return _0x668fxb[_0x33dc[23]](204)})[_0x33dc[12]](function(_0x668fxd){return handleError(_0x668fxb,_0x668fxd)})};function handleError(_0x668fxb,_0x668fxd){console[_0x33dc[48]](_0x668fxd);return _0x668fxb[_0x33dc[14]](500)[_0x33dc[13]](_0x668fxd)}
\ No newline at end of file