Built motion from commit 82438f7.|0.0.115
[motion.git] / server / api / extracted_report / extracted_report.controller.js
index c717a9a..efd3168 100644 (file)
@@ -1 +1 @@
-var _0xbf7e=["\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","\x69\x64\x73"];_0xbf7e[0];var _=require(_0xbf7e[1]);var ExtractedReport=require(_0xbf7e[3])[_0xbf7e[2]];var util=require(_0xbf7e[4]);var path=require(_0xbf7e[5]);var moment=require(_0xbf7e[6]);var config=require(_0xbf7e[7]);var base64=require(_0xbf7e[8]);var fs=require(_0xbf7e[9]);var Util=require(_0xbf7e[10]);exports[_0xbf7e[11]]=function(_0xae9axa,_0xae9axb,_0xae9axc){return ExtractedReport[_0xbf7e[18]](Util[_0xbf7e[17]](_0xae9axa[_0xbf7e[16]]))[_0xbf7e[15]](function(_0xae9axe){_0xae9axb[_0xbf7e[14]](200)[_0xbf7e[13]](_0xae9axe)})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})};exports[_0xbf7e[19]]=function(_0xae9axa,_0xae9axb){ExtractedReport[_0xbf7e[23]](_0xae9axa[_0xbf7e[22]][_0xbf7e[21]])[_0xbf7e[15]](function(_0xae9axf){if(!_0xae9axf){return _0xae9axb[_0xbf7e[20]](404)};return _0xae9axb[_0xbf7e[13]](_0xae9axf)})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})};exports[_0xbf7e[24]]=function(_0xae9axa,_0xae9axb){ExtractedReport[_0xbf7e[23]](_0xae9axa[_0xbf7e[22]][_0xbf7e[21]])[_0xbf7e[15]](function(_0xae9ax10){if(!_0xae9ax10){return _0xae9axb[_0xbf7e[14]](404)[_0xbf7e[13]](_0xae9ax10)};var _0xae9ax11=path[_0xbf7e[31]](config[_0xbf7e[26]],_0xbf7e[27],_0xbf7e[28],_0xbf7e[29],_0xae9ax10[_0xbf7e[30]]);base64[_0xbf7e[32]](_0xae9ax11,function(_0xae9axd,_0xae9ax12){if(_0xae9axd){console[_0xbf7e[25]](_0xae9axd);return handleError(_0xae9axb,_0xae9axd)}else {return _0xae9axb[_0xbf7e[14]](200)[_0xbf7e[13]]({downloadString:_0xae9ax12})}})})[_0xbf7e[12]](function(_0xae9axd){console[_0xbf7e[25]](_0xae9axd);return handleError(_0xae9axb,_0xae9axd)})};exports[_0xbf7e[33]]=function(_0xae9axa,_0xae9axb){ExtractedReport[_0xbf7e[33]](_0xae9axa[_0xbf7e[34]])[_0xbf7e[15]](function(_0xae9axf){return _0xae9axb[_0xbf7e[14]](201)[_0xbf7e[13]](_0xae9axf)})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})};exports[_0xbf7e[35]]=function(_0xae9axa,_0xae9axb){ExtractedReport[_0xbf7e[39]]({where:{name:_0xae9axa[_0xbf7e[34]][_0xbf7e[38]],id:{$ne:_0xae9axa[_0xbf7e[34]][_0xbf7e[21]]}}})[_0xbf7e[15]](function(_0xae9ax13){if(!_0xae9ax13){return _0xae9axb[_0xbf7e[20]](404)};if(_0xae9axa[_0xbf7e[34]][_0xbf7e[21]]){delete _0xae9axa[_0xbf7e[34]][_0xbf7e[21]]};ExtractedReport[_0xbf7e[23]](_0xae9axa[_0xbf7e[22]][_0xbf7e[21]])[_0xbf7e[15]](function(_0xae9axf){if(!_0xae9axf){return _0xae9axb[_0xbf7e[20]](404)};var _0xae9ax14=_[_0xbf7e[36]](_0xae9axf,_0xae9axa[_0xbf7e[34]]);_0xae9ax14[_0xbf7e[37]]()[_0xbf7e[15]](function(){return _0xae9axb[_0xbf7e[14]](200)[_0xbf7e[13]](_0xae9axf)})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})};exports[_0xbf7e[40]]=function(_0xae9axa,_0xae9axb){var _0xae9ax15;ExtractedReport[_0xbf7e[23]](_0xae9axa[_0xbf7e[22]][_0xbf7e[21]])[_0xbf7e[15]](function(_0xae9axf){_0xae9ax15=_0xae9axf;if(!_0xae9axf){return _0xae9axb[_0xbf7e[20]](404)};return _0xae9axf[_0xbf7e[40]]()})[_0xbf7e[15]](function(){if(_0xae9ax15[_0xbf7e[30]]){var _0xae9ax11=path[_0xbf7e[31]](config[_0xbf7e[26]],_0xbf7e[27],_0xbf7e[28],_0xbf7e[29],_0xae9ax15[_0xbf7e[30]]);fs[_0xbf7e[48]](_0xae9ax11,fs[_0xbf7e[41]]|fs[_0xbf7e[42]],function(_0xae9axd){if(_0xae9axd){console[_0xbf7e[44]](_0xbf7e[43])}else {fs[_0xbf7e[47]](_0xae9ax11,function(_0xae9axd){if(_0xae9axd){console[_0xbf7e[44]](_0xbf7e[45],_0xae9axd)}else {console[_0xbf7e[25]](_0xbf7e[46])}})}})};return _0xae9axb[_0xbf7e[20]](204)})[_0xbf7e[12]](function(_0xae9axd){console[_0xbf7e[25]](_0xae9axd);return handleError(_0xae9axb,_0xae9axd)})};exports[_0xbf7e[49]]=function(_0xae9axa,_0xae9axb){ExtractedReport[_0xbf7e[39]]({where:{id:_0xae9axa[_0xbf7e[16]][_0xbf7e[51]]}})[_0xbf7e[15]](function(_0xae9ax16){_0xae9ax16[_0xbf7e[50]](function(_0xae9axf){_0xae9axf[_0xbf7e[40]]()[_0xbf7e[15]](function(){if(_0xae9axf[_0xbf7e[30]]){var _0xae9ax11=path[_0xbf7e[31]](config[_0xbf7e[26]],_0xbf7e[27],_0xbf7e[28],_0xbf7e[29],_0xae9axf[_0xbf7e[30]]);fs[_0xbf7e[48]](_0xae9ax11,fs[_0xbf7e[41]]|fs[_0xbf7e[42]],function(_0xae9axd){if(_0xae9axd){console[_0xbf7e[44]](_0xbf7e[43])}else {fs[_0xbf7e[47]](_0xae9ax11,function(_0xae9axd){if(_0xae9axd){console[_0xbf7e[44]](_0xbf7e[45],_0xae9axd)}else {console[_0xbf7e[25]](_0xbf7e[46])}})}})}})[_0xbf7e[12]](function(_0xae9axd){console[_0xbf7e[25]](_0xae9axd)})});return _0xae9axb[_0xbf7e[20]](204)})[_0xbf7e[12]](function(_0xae9axd){return handleError(_0xae9axb,_0xae9axd)})};function handleError(_0xae9axb,_0xae9axd){return _0xae9axb[_0xbf7e[14]](500)[_0xbf7e[13]](_0xae9axd)}
\ No newline at end of file
+var _0x393d=["\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"];_0x393d[0];var _=require(_0x393d[1]);var ExtractedReport=require(_0x393d[3])[_0x393d[2]];var util=require(_0x393d[4]);var path=require(_0x393d[5]);var moment=require(_0x393d[6]);var config=require(_0x393d[7]);var base64=require(_0x393d[8]);var fs=require(_0x393d[9]);var Util=require(_0x393d[10]);exports[_0x393d[11]]= function(_0xea9cxa,_0xea9cxb,_0xea9cxc){switch(_0xea9cxa[_0x393d[18]][_0x393d[21]]){case _0x393d[18]:return ExtractedReport[_0x393d[20]](Util[_0x393d[19]](_0xea9cxa[_0x393d[16]],{UserId:_0xea9cxa[_0x393d[18]][_0x393d[17]]}))[_0x393d[15]](function(_0xea9cxe){_0xea9cxb[_0x393d[14]](200)[_0x393d[13]](_0xea9cxe)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)});default:return ExtractedReport[_0x393d[20]](Util[_0x393d[19]](_0xea9cxa[_0x393d[16]]))[_0x393d[15]](function(_0xea9cxe){_0xea9cxb[_0x393d[14]](200)[_0x393d[13]](_0xea9cxe)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})}};exports[_0x393d[22]]= function(_0xea9cxa,_0xea9cxb){return ExtractedReport[_0x393d[25]](_0xea9cxa[_0x393d[24]][_0x393d[17]])[_0x393d[15]](function(_0xea9cxf){if(!_0xea9cxf){return _0xea9cxb[_0x393d[23]](404)};return _0xea9cxb[_0x393d[13]](_0xea9cxf)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})};exports[_0x393d[26]]= function(_0xea9cxa,_0xea9cxb){return ExtractedReport[_0x393d[25]](_0xea9cxa[_0x393d[24]][_0x393d[17]])[_0x393d[15]](function(_0xea9cx10){if(!_0xea9cx10){return _0xea9cxb[_0x393d[14]](404)[_0x393d[13]](_0xea9cx10)};var _0xea9cx11=path[_0x393d[32]](config[_0x393d[27]],_0x393d[28],_0x393d[29],_0x393d[30],_0xea9cx10[_0x393d[31]]);base64[_0x393d[33]](_0xea9cx11,function(_0xea9cxd,_0xea9cx12){if(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)}else {return _0xea9cxb[_0x393d[14]](200)[_0x393d[13]]({downloadString:_0xea9cx12})}})})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})};exports[_0x393d[34]]= function(_0xea9cxa,_0xea9cxb){return ExtractedReport[_0x393d[34]](_0xea9cxa[_0x393d[35]])[_0x393d[15]](function(_0xea9cxf){return _0xea9cxb[_0x393d[14]](201)[_0x393d[13]](_0xea9cxf)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})};exports[_0x393d[36]]= function(_0xea9cxa,_0xea9cxb){return ExtractedReport[_0x393d[40]]({where:{name:_0xea9cxa[_0x393d[35]][_0x393d[39]],id:{$ne:_0xea9cxa[_0x393d[35]][_0x393d[17]]}}})[_0x393d[15]](function(_0xea9cx14){if(!_0xea9cx14){return _0xea9cxb[_0x393d[23]](404)};if(_0xea9cxa[_0x393d[35]][_0x393d[17]]){delete _0xea9cxa[_0x393d[35]][_0x393d[17]]};return ExtractedReport[_0x393d[25]](_0xea9cxa[_0x393d[24]][_0x393d[17]])})[_0x393d[15]](function(_0xea9cxf){if(!_0xea9cxf){return _0xea9cxb[_0x393d[23]](404)};var _0xea9cx13=_[_0x393d[37]](_0xea9cxf,_0xea9cxa[_0x393d[35]]);return _0xea9cx13[_0x393d[38]]()})[_0x393d[15]](function(_0xea9cxf){return _0xea9cxb[_0x393d[14]](200)[_0x393d[13]](_0xea9cxf)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})};exports[_0x393d[41]]= function(_0xea9cxa,_0xea9cxb){var _0xea9cx15;return ExtractedReport[_0x393d[25]](_0xea9cxa[_0x393d[24]][_0x393d[17]])[_0x393d[15]](function(_0xea9cxf){_0xea9cx15= _0xea9cxf;if(!_0xea9cxf){return _0xea9cxb[_0x393d[23]](404)};return _0xea9cxf[_0x393d[41]]()})[_0x393d[15]](function(){if(_0xea9cx15[_0x393d[31]]){var _0xea9cx11=path[_0x393d[32]](config[_0x393d[27]],_0x393d[28],_0x393d[29],_0x393d[30],_0xea9cx15[_0x393d[31]]);fs[_0x393d[50]](_0xea9cx11,fs[_0x393d[42]]| fs[_0x393d[43]],function(_0xea9cxd){if(_0xea9cxd){console[_0x393d[45]](_0x393d[44])}else {fs[_0x393d[49]](_0xea9cx11,function(_0xea9cxd){if(_0xea9cxd){console[_0x393d[45]](_0x393d[46],_0xea9cxd)}else {console[_0x393d[48]](_0x393d[47])}})}})};return _0xea9cxb[_0x393d[23]](204)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})};exports[_0x393d[51]]= function(_0xea9cxa,_0xea9cxb){var _0xea9cx16;return ExtractedReport[_0x393d[40]]({where:{id:_0xea9cxa[_0x393d[16]][_0x393d[55]]}})[_0x393d[15]](function(_0xea9cx17){_0xea9cx16= _0xea9cx17;var _0xea9cx18=[];_0xea9cx17[_0x393d[52]](function(_0xea9cxf){_0xea9cx18[_0x393d[54]](_0xea9cxf[_0x393d[41]]())});return _0xea9cx18})[_0x393d[53]]()[_0x393d[15]](function(){_0xea9cx16[_0x393d[52]](function(_0xea9cxf){if(_0xea9cxf[_0x393d[31]]){var _0xea9cx11=path[_0x393d[32]](config[_0x393d[27]],_0x393d[28],_0x393d[29],_0x393d[30],_0xea9cxf[_0x393d[31]]);fs[_0x393d[50]](_0xea9cx11,fs[_0x393d[42]]| fs[_0x393d[43]],function(_0xea9cxd){if(_0xea9cxd){console[_0x393d[45]](_0x393d[44])}else {fs[_0x393d[49]](_0xea9cx11,function(_0xea9cxd){if(_0xea9cxd){console[_0x393d[45]](_0x393d[46],_0xea9cxd)}else {console[_0x393d[48]](_0x393d[47])}})}})}});return _0xea9cxb[_0x393d[23]](204)})[_0x393d[12]](function(_0xea9cxd){return handleError(_0xea9cxb,_0xea9cxd)})};function handleError(_0xea9cxb,_0xea9cxd){console[_0x393d[48]](_0xea9cxd);return _0xea9cxb[_0x393d[14]](500)[_0x393d[13]](_0xea9cxd)}
\ No newline at end of file