Built motion from commit b6cf875.|1.0.15
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index 23de3eb..fbefec9 100644 (file)
@@ -1 +1 @@
-var _0xb265=["\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"];_0xb265[0];var _=require(_0xb265[1]);var ExtractedReport=require(_0xb265[3])[_0xb265[2]];var util=require(_0xb265[4]);var path=require(_0xb265[5]);var moment=require(_0xb265[6]);var config=require(_0xb265[7]);var base64=require(_0xb265[8]);var fs=require(_0xb265[9]);var Util=require(_0xb265[10]);exports[_0xb265[11]]=function(_0x3106xa,_0x3106xb,_0x3106xc){return ExtractedReport[_0xb265[18]](Util[_0xb265[17]](_0x3106xa[_0xb265[16]]))[_0xb265[15]](function(_0x3106xe){_0x3106xb[_0xb265[14]](200)[_0xb265[13]](_0x3106xe)})[_0xb265[12]](function(_0x3106xd){return handleError(_0x3106xb,_0x3106xd)})};exports[_0xb265[19]]=function(_0x3106xa,_0x3106xb){return ExtractedReport[_0xb265[23]](_0x3106xa[_0xb265[22]][_0xb265[21]])[_0xb265[15]](function(_0x3106xf){if(!_0x3106xf){return _0x3106xb[_0xb265[20]](404)};return _0x3106xb[_0xb265[13]](_0x3106xf)})[_0xb265[12]](function(_0x3106xd){return handleError(_0x3106xb,_0x3106xd)})};exports[_0xb265[24]]=function(_0x3106xa,_0x3106xb){return ExtractedReport[_0xb265[23]](_0x3106xa[_0xb265[22]][_0xb265[21]])[_0xb265[15]](function(_0x3106x10){if(!_0x3106x10){return _0x3106xb[_0xb265[14]](404)[_0xb265[13]](_0x3106x10)};var _0x3106x11=path[_0xb265[31]](config[_0xb265[26]],_0xb265[27],_0xb265[28],_0xb265[29],_0x3106x10[_0xb265[30]]);base64[_0xb265[32]](_0x3106x11,function(_0x3106xd,_0x3106x12){if(_0x3106xd){console[_0xb265[25]](_0x3106xd);return handleError(_0x3106xb,_0x3106xd)}else {return _0x3106xb[_0xb265[14]](200)[_0xb265[13]]({downloadString:_0x3106x12})}})})[_0xb265[12]](function(_0x3106xd){console[_0xb265[25]](_0x3106xd);return handleError(_0x3106xb,_0x3106xd)})};exports[_0xb265[33]]=function(_0x3106xa,_0x3106xb){return ExtractedReport[_0xb265[33]](_0x3106xa[_0xb265[34]])[_0xb265[15]](function(_0x3106xf){return _0x3106xb[_0xb265[14]](201)[_0xb265[13]](_0x3106xf)})[_0xb265[12]](function(_0x3106xd){return handleError(_0x3106xb,_0x3106xd)})};exports[_0xb265[35]]=function(_0x3106xa,_0x3106xb){return ExtractedReport[_0xb265[39]]({where:{name:_0x3106xa[_0xb265[34]][_0xb265[38]],id:{$ne:_0x3106xa[_0xb265[34]][_0xb265[21]]}}})[_0xb265[15]](function(_0x3106x14){if(!_0x3106x14){return _0x3106xb[_0xb265[20]](404)};if(_0x3106xa[_0xb265[34]][_0xb265[21]]){delete _0x3106xa[_0xb265[34]][_0xb265[21]]};return ExtractedReport[_0xb265[23]](_0x3106xa[_0xb265[22]][_0xb265[21]])})[_0xb265[15]](function(_0x3106xf){if(!_0x3106xf){return _0x3106xb[_0xb265[20]](404)};var _0x3106x13=_[_0xb265[36]](_0x3106xf,_0x3106xa[_0xb265[34]]);return _0x3106x13[_0xb265[37]]()})[_0xb265[15]](function(_0x3106xf){return _0x3106xb[_0xb265[14]](200)[_0xb265[13]](_0x3106xf)})[_0xb265[12]](function(_0x3106xd){return handleError(_0x3106xb,_0x3106xd)})};exports[_0xb265[40]]=function(_0x3106xa,_0x3106xb){var _0x3106x15;return ExtractedReport[_0xb265[23]](_0x3106xa[_0xb265[22]][_0xb265[21]])[_0xb265[15]](function(_0x3106xf){_0x3106x15=_0x3106xf;if(!_0x3106xf){return _0x3106xb[_0xb265[20]](404)};return _0x3106xf[_0xb265[40]]()})[_0xb265[15]](function(){if(_0x3106x15[_0xb265[30]]){var _0x3106x11=path[_0xb265[31]](config[_0xb265[26]],_0xb265[27],_0xb265[28],_0xb265[29],_0x3106x15[_0xb265[30]]);fs[_0xb265[48]](_0x3106x11,fs[_0xb265[41]]|fs[_0xb265[42]],function(_0x3106xd){if(_0x3106xd){console[_0xb265[44]](_0xb265[43])}else {fs[_0xb265[47]](_0x3106x11,function(_0x3106xd){if(_0x3106xd){console[_0xb265[44]](_0xb265[45],_0x3106xd)}else {console[_0xb265[25]](_0xb265[46])}})}})};return _0x3106xb[_0xb265[20]](204)})[_0xb265[12]](function(_0x3106xd){console[_0xb265[25]](_0x3106xd);return handleError(_0x3106xb,_0x3106xd)})};exports[_0xb265[49]]=function(_0x3106xa,_0x3106xb){var _0x3106x16;return ExtractedReport[_0xb265[39]]({where:{id:_0x3106xa[_0xb265[16]][_0xb265[53]]}})[_0xb265[15]](function(_0x3106x17){_0x3106x16=_0x3106x17;var _0x3106x18=[];_0x3106x17[_0xb265[50]](function(_0x3106xf){_0x3106x18[_0xb265[52]](_0x3106xf[_0xb265[40]]())});return _0x3106x18})[_0xb265[51]]()[_0xb265[15]](function(){_0x3106x16[_0xb265[50]](function(_0x3106xf){if(_0x3106xf[_0xb265[30]]){var _0x3106x11=path[_0xb265[31]](config[_0xb265[26]],_0xb265[27],_0xb265[28],_0xb265[29],_0x3106xf[_0xb265[30]]);fs[_0xb265[48]](_0x3106x11,fs[_0xb265[41]]|fs[_0xb265[42]],function(_0x3106xd){if(_0x3106xd){console[_0xb265[44]](_0xb265[43])}else {fs[_0xb265[47]](_0x3106x11,function(_0x3106xd){if(_0x3106xd){console[_0xb265[44]](_0xb265[45],_0x3106xd)}else {console[_0xb265[25]](_0xb265[46])}})}})}});return _0x3106xb[_0xb265[20]](204)})[_0xb265[12]](function(_0x3106xd){return handleError(_0x3106xb,_0x3106xd)})};function handleError(_0x3106xb,_0x3106xd){return _0x3106xb[_0xb265[14]](500)[_0xb265[13]](_0x3106xd)}
\ 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