Built motion from commit d13e3c905.|1.0.24
[motion.git] / server / api / default_report / default_report.controller.js
index d25a73a..3168f56 100644 (file)
@@ -1 +1 @@
-var _0xa8a8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x4D\x65\x74\x72\x69\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x45\x78\x74\x72\x61\x63\x74\x65\x64\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x62\x75\x69\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x65\x78\x70\x6F\x72\x74","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x70\x61\x72\x65\x6E\x74","\x74\x61\x62\x6C\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x65\x78\x70\x6F\x72\x74\x46\x69\x65\x6C\x64\x73","\x73\x63\x6F\x70\x65","\x67\x65\x74\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x72\x79","\x45\x72\x72\x6F\x72\x20\x67\x65\x74\x74\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x20\x66\x72\x6F\x6D\x20\x61\x70\x69\x3A","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x6E\x6F\x20\x73\x75\x66\x66\x69\x63\x69\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x20\x70\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x73\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x75\x73\x65\x72","\x70\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E","\x61\x6C\x6C","\x62\x75\x69\x6C\x64\x51\x75\x65\x72\x79","\x73\x70\x72\x65\x61\x64","\x75\x73\x65\x72","\x62\x75\x69\x6C\x64\x46\x69\x6C\x74\x65\x72","\x64\x61\x69\x6C\x79","\x74\x72\x75\x65","\x73\x74\x61\x72\x74\x44\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44","\x66\x6F\x72\x6D\x61\x74","\x65\x6E\x64\x44\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x5F\x68\x69\x73\x74\x6F\x72\x79","","\x72\x65\x70\x6C\x61\x63\x65","\x66\x69\x65\x6C\x64\x73","\x70\x72\x65\x76\x69\x65\x77","\x69\x73\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x6C\x69\x6D\x69\x74","\x76\x61\x6C\x75\x65","\x74\x61\x6B\x65","\x6F\x66\x66\x73\x65\x74","\x73\x6C\x69\x63\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x4F\x77\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x71\x75\x65\x72\x79\x20\x65\x72\x72\x6F\x72","\x63\x68\x65\x63\x6B\x51\x75\x65\x72\x79","\x65\x78\x74\x72\x61\x63\x74\x50\x64\x66","\x65\x78\x74\x72\x61\x63\x74\x50\x64\x66\x20\x61\x70\x69\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x64\x65\x62\x75\x67","\x50\x44\x46","\x65\x78\x74\x72\x61\x63\x74\x43\x73\x76","\x65\x78\x74\x72\x61\x63\x74\x43\x73\x76\x20\x61\x70\x69\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x43\x53\x56","\x63\x6F\x6D\x6D\x6F\x6E\x20\x64\x6F\x63\x45\x78\x74\x72\x61\x63\x74\x20\x61\x70\x69\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x43\x72\x65\x61\x74\x65\x64\x20\x6E\x65\x77\x20\x65\x78\x74\x72\x61\x63\x74\x65\x64\x20\x72\x65\x70\x6F\x72\x74\x73\x20\x64\x62\x20\x65\x6E\x74\x72\x79\x2C\x20\x63\x61\x6C\x6C\x69\x6E\x67\x20\x65\x78\x74\x65\x72\x6E\x61\x6C\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E\x3A\x20","\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x2E\x6A\x73","\x66\x6F\x72\x6B","\x52\x65\x70\x6F\x72\x74\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x65\x72\x72\x6F\x72","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x52\x65\x70\x6F\x72\x74\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x63\x6C\x6F\x73\x65","\x6D\x65\x73\x73\x61\x67\x65","\x52\x65\x70\x6F\x72\x74\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x6D\x65\x73\x73\x61\x67\x65","\x6B\x69\x6C\x6C","\x74\x72\x65\x65","\x70\x61\x72\x73\x65","\x66\x69\x6E\x64","\x46\x6F\x75\x6E\x64\x20\x74\x68\x65\x20\x72\x65\x70\x6F\x72\x74\x2C\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x6E\x65\x77\x20\x44\x42\x20\x72\x6F\x77\x20\x66\x6F\x72\x20\x65\x78\x74\x72\x61\x63\x74\x65\x64\x20\x72\x65\x70\x6F\x72\x74\x73\x2E\x2E","\x73\x74\x61\x72\x74\x54\x69\x6D\x65","\x20","\x30\x30\x3A\x30\x30","\x65\x6E\x64\x54\x69\x6D\x65","\x32\x33\x3A\x35\x39","\x63\x72\x65\x61\x74\x65","\x74\x65\x78\x74","\x2F\x20","\x23","\x73\x68\x6F\x77","\x63\x6F\x70\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x62\x6F\x64\x79","\x6D\x61\x70","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x61\x62\x6C\x65","\x6B\x65\x79\x73","\x44\x65\x66\x61\x75\x6C\x74\x4D\x65\x74\x72\x69\x63\x49\x64","\x67\x72\x6F\x75\x70\x42\x79","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x6E\x75\x6C\x6C","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74\x49\x64","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64\x73","\x44\x65\x66\x61\x75\x6C\x74\x4D\x65\x74\x72\x69\x63","\x5F","\x70\x75\x73\x68","\x66\x69\x65\x6C\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x63\x75\x73\x74\x6F\x6D","\x54\x68\x65\x20\x66\x69\x65\x6C\x64\x20","\x20\x79\x6F\x75\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x74\x61\x62\x6C\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x59\x6F\x75\x20\x68\x61\x76\x65\x20\x6E\x6F\x74\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x74\x68\x65\x20\x74\x61\x62\x6C\x65\x20\x6F\x72\x20\x74\x68\x65\x20\x74\x61\x62\x6C\x65\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xa8a8[0];var _=require(_0xa8a8[1]);var util=require(_0xa8a8[2]);var DefaultReport=require(_0xa8a8[4])[_0xa8a8[3]];var ReportField=require(_0xa8a8[4])[_0xa8a8[5]];var Metric=require(_0xa8a8[4])[_0xa8a8[6]];var sequelize=require(_0xa8a8[4])[_0xa8a8[7]];var CustomReport=require(_0xa8a8[4])[_0xa8a8[8]];var ExtractedReport=require(_0xa8a8[4])[_0xa8a8[9]];var extractUtils=require(_0xa8a8[10]);var reportBuildUtils=require(_0xa8a8[11]);var Util=require(_0xa8a8[12]);var moment=require(_0xa8a8[13]);var cp=require(_0xa8a8[14]);var sr=require(_0xa8a8[15]);var ReportTree=require(_0xa8a8[4])[_0xa8a8[16]];var logger=require(_0xa8a8[18])(_0xa8a8[17]);exports[_0xa8a8[19]]= function(_0x8754x11,_0x8754x12,_0x8754x13){return DefaultReport[_0xa8a8[26]](Util[_0xa8a8[25]](_0x8754x11[_0xa8a8[24]]))[_0xa8a8[23]](function(_0x8754x15){_0x8754x12[_0xa8a8[22]](200)[_0xa8a8[21]](_0x8754x15)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};exports[_0xa8a8[27]]= function(_0x8754x11,_0x8754x12){return DefaultReport[_0xa8a8[38]]({method:[_0xa8a8[37],{DefaultReportId:_0x8754x11[_0xa8a8[30]][_0xa8a8[29]]}]})[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]],{attributes:[_0xa8a8[31],_0xa8a8[32],_0xa8a8[33],_0xa8a8[34],_0xa8a8[35]]})[_0xa8a8[23]](function(_0x8754x16){if(!_0x8754x16){return _0x8754x12[_0xa8a8[28]](404)};return _0x8754x12[_0xa8a8[21]](_0x8754x16)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};exports[_0xa8a8[39]]= function(_0x8754x11,_0x8754x12){return Promise[_0xa8a8[45]]([])[_0xa8a8[23]](getQuery(_0x8754x11,_0x8754x12))[_0xa8a8[23]](function(_0x8754x17){if(_0x8754x17){switch(_0x8754x17){case _0xa8a8[44]:_0x8754x17= _0xa8a8[43];break;default:}};_0x8754x12[_0xa8a8[22]](200)[_0xa8a8[21]]({query:_0x8754x17})})[_0xa8a8[20]](function(_0x8754x14){logger[_0xa8a8[42]](_0xa8a8[40],_0x8754x14[_0xa8a8[41]])})};function getQuery(_0x8754x11,_0x8754x12){var _0x8754x19;return function(){return DefaultReport[_0xa8a8[38]](_0xa8a8[60])[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]])[_0xa8a8[23]](function(_0x8754x16){if(!_0x8754x16){return _0x8754x12[_0xa8a8[28]](404)};if(_0x8754x11[_0xa8a8[24]][_0xa8a8[50]]&& _0x8754x11[_0xa8a8[24]][_0xa8a8[50]]=== _0xa8a8[51]){_0x8754x11[_0xa8a8[24]][_0xa8a8[52]]= moment()[_0xa8a8[54]](_0xa8a8[53]);_0x8754x11[_0xa8a8[24]][_0xa8a8[55]]= moment()[_0xa8a8[54]](_0xa8a8[53]);_0x8754x16[_0xa8a8[56]][_0xa8a8[35]]= _0x8754x16[_0xa8a8[56]][_0xa8a8[35]][_0xa8a8[59]](_0xa8a8[57],_0xa8a8[58])};delete _0x8754x11[_0xa8a8[24]][_0xa8a8[50]];_0x8754x19= _0x8754x16[_0xa8a8[56]];return _0x8754x19[_0xa8a8[35]]})[_0xa8a8[23]](reportBuildUtils[_0xa8a8[49]](_0x8754x11[_0xa8a8[48]]))[_0xa8a8[23]](function(_0x8754x1a){return [_0x8754x1a,_0x8754x19]})[_0xa8a8[47]](reportBuildUtils[_0xa8a8[46]](_0x8754x11[_0xa8a8[24]]))}}exports[_0xa8a8[61]]= function(_0x8754x11,_0x8754x12){var _0x8754x1b;return Promise[_0xa8a8[45]]([])[_0xa8a8[23]](getQuery(_0x8754x11,_0x8754x12))[_0xa8a8[23]](reportBuildUtils[_0xa8a8[73]]())[_0xa8a8[23]](function(_0x8754x1c){if(_0x8754x1c&& _[_0xa8a8[62]](_0x8754x1c)){_0x8754x1b= _0x8754x1c[_0xa8a8[63]];if(_0x8754x11[_0xa8a8[24]][_0xa8a8[64]]){_0x8754x1c= _(_0x8754x1c)[_0xa8a8[68]](_0x8754x11[_0xa8a8[24]][_0xa8a8[67]]|| 0)[_0xa8a8[66]](_0x8754x11[_0xa8a8[24]][_0xa8a8[64]])[_0xa8a8[65]]()};_[_0xa8a8[71]](_0x8754x1c,function(_0x8754x1d){_[_0xa8a8[70]](_0x8754x1d,function(_0x8754x1e,_0x8754x1f){if(_0x8754x1e instanceof  Date){_0x8754x1d[_0x8754x1f]= moment(_0x8754x1e)[_0xa8a8[54]](_0xa8a8[69]).toString()}})});_0x8754x12[_0xa8a8[22]](200)[_0xa8a8[21]]({rows:_0x8754x1c,count:_0x8754x1b})}else {return handleError(_0x8754x12,{message:_0x8754x1c|| _0xa8a8[72]})}})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};exports[_0xa8a8[74]]= function(_0x8754x11,_0x8754x12){logger[_0xa8a8[76]](_0xa8a8[75]);docExtract(_0x8754x11,_0x8754x12,_0xa8a8[77])};exports[_0xa8a8[78]]= function(_0x8754x11,_0x8754x12){logger[_0xa8a8[76]](_0xa8a8[79]);docExtract(_0x8754x11,_0x8754x12,_0xa8a8[80])};function docExtract(_0x8754x11,_0x8754x12,_0x8754x21){var _0x8754x16;logger[_0xa8a8[76]](_0xa8a8[81]);DefaultReport[_0xa8a8[38]](_0xa8a8[60])[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]])[_0xa8a8[23]](function(_0x8754x19){if(!_0x8754x19){return _0x8754x12[_0xa8a8[28]](404)};_0x8754x16= _0x8754x19;return ReportTree[_0xa8a8[36]](1)})[_0xa8a8[23]](function(_0x8754x25){_0x8754x25= JSON[_0xa8a8[93]](_0x8754x25[_0xa8a8[92]]);var _0x8754x26=_[_0xa8a8[94]](_0x8754x25,{id:_0x8754x16[_0xa8a8[34]]});var _0x8754x27=getReportPath(_0x8754x26,_0x8754x25,_0x8754x16[_0xa8a8[33]]);logger[_0xa8a8[76]](_0xa8a8[95]);if(_0x8754x11[_0xa8a8[24]][_0xa8a8[50]]&& _0x8754x11[_0xa8a8[24]][_0xa8a8[50]]=== _0xa8a8[51]){_0x8754x11[_0xa8a8[24]][_0xa8a8[52]]= moment()[_0xa8a8[54]](_0xa8a8[53]);_0x8754x11[_0xa8a8[24]][_0xa8a8[55]]= moment()[_0xa8a8[54]](_0xa8a8[53]);_0x8754x16[_0xa8a8[56]][_0xa8a8[35]]= _0x8754x16[_0xa8a8[56]][_0xa8a8[35]][_0xa8a8[59]](_0xa8a8[57],_0xa8a8[58])};delete _0x8754x11[_0xa8a8[24]][_0xa8a8[50]];return [_0x8754x16,ExtractedReport[_0xa8a8[101]]({name:_0x8754x27,startDate:_0x8754x11[_0xa8a8[24]][_0xa8a8[52]]?_0x8754x11[_0xa8a8[24]][_0xa8a8[52]]+ (_0x8754x11[_0xa8a8[24]][_0xa8a8[96]]?_0xa8a8[97]+ _0x8754x11[_0xa8a8[24]][_0xa8a8[96]]:_0xa8a8[98]):null,endDate:_0x8754x11[_0xa8a8[24]][_0xa8a8[55]]?_0x8754x11[_0xa8a8[24]][_0xa8a8[55]]+ (_0x8754x11[_0xa8a8[24]][_0xa8a8[99]]?_0xa8a8[97]+ _0x8754x11[_0xa8a8[24]][_0xa8a8[99]]:_0xa8a8[100]):null,output:_0x8754x21,UserId:_0x8754x11[_0xa8a8[48]][_0xa8a8[29]]})]})[_0xa8a8[47]](function(_0x8754x16,_0x8754x22){logger[_0xa8a8[76]](_0xa8a8[82]+ _0x8754x21);var _0x8754x23=cp[_0xa8a8[84]](__dirname+ _0xa8a8[83]);_0x8754x23[_0xa8a8[86]](_0xa8a8[89],function(_0x8754x24){logger[_0xa8a8[76]](_0xa8a8[90],_0x8754x24);_0x8754x23[_0xa8a8[91]]()})[_0xa8a8[86]](_0xa8a8[87],function(){logger[_0xa8a8[76]](_0xa8a8[88])})[_0xa8a8[86]](_0xa8a8[42],function(_0x8754x14){logger[_0xa8a8[76]](_0xa8a8[85],_0x8754x14)});_0x8754x23[_0xa8a8[21]]({report:_0x8754x16,query:_0x8754x11[_0xa8a8[24]],extractedId:_0x8754x22[_0xa8a8[29]],user:_0x8754x11[_0xa8a8[48]],type:_0x8754x21})})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)});return _0x8754x12[_0xa8a8[28]](200)}function getReportPath(_0x8754x26,_0x8754x25,_0x8754x27){_0x8754x27= _0x8754x26[_0xa8a8[102]]+ _0xa8a8[103]+ _0x8754x27;if(_0x8754x26[_0xa8a8[34]]=== _0xa8a8[104]){return _0x8754x27}else {return getReportPath(_[_0xa8a8[94]](_0x8754x25,{id:_0x8754x26[_0xa8a8[34]]}),_0x8754x25,_0x8754x27)}}exports[_0xa8a8[105]]= function(_0x8754x11,_0x8754x12){return DefaultReport[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]],{include:[{all:true}]})[_0xa8a8[23]](function(_0x8754x16){if(!_0x8754x16){return _0x8754x12[_0xa8a8[28]](404)};return _0x8754x12[_0xa8a8[21]](_0x8754x16)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};exports[_0xa8a8[106]]= function(_0x8754x11,_0x8754x12){var _0x8754x29;return sequelize[_0xa8a8[111]](function(_0x8754x2a){return DefaultReport[_0xa8a8[38]]({method:[_0xa8a8[37],{DefaultReportId:_0x8754x11[_0xa8a8[30]][_0xa8a8[29]]}]})[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]])[_0xa8a8[23]](function(_0x8754x16){if(!_0x8754x16){return _0x8754x12[_0xa8a8[28]](404)};var _0x8754x2b=_0x8754x16[_0xa8a8[56]];delete _0x8754x2b[_0xa8a8[29]];delete _0x8754x2b[_0xa8a8[107]];delete _0x8754x2b[_0xa8a8[108]];_0x8754x2b[_0xa8a8[34]]= _0x8754x11[_0xa8a8[109]][_0xa8a8[34]];_0x8754x29= _[_0xa8a8[110]](_0x8754x2b.Fields,_0xa8a8[56]);return CustomReport[_0xa8a8[101]](_0x8754x2b,{transaction:_0x8754x2a})})[_0xa8a8[23]](function(_0x8754x16){return [_0x8754x16,_0x8754x29]})[_0xa8a8[47]](createCopyFields(_0x8754x2a))})[_0xa8a8[23]](function(){return _0x8754x12[_0xa8a8[28]](201)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};function createCopyFields(_0x8754x2a){return function(_0x8754x16,_0x8754x2d){if(_0x8754x2d&& Array[_0xa8a8[62]](_0x8754x2d)&& _0x8754x2d[_0xa8a8[63]]){var _0x8754x2e=reportBuildUtils[_0xa8a8[112]](_0x8754x16[_0xa8a8[35]]);if(_0x8754x2e){var _0x8754x2f;return _0x8754x2e[_0xa8a8[128]]()[_0xa8a8[23]](function(_0x8754x30){_0x8754x2f= _[_0xa8a8[113]](_0x8754x30);var _0x8754x31=[];var _0x8754x32=_[_0xa8a8[115]](_0x8754x2d,_0xa8a8[114]);_[_0xa8a8[70]](_0x8754x32,function(_0x8754x33,_0x8754x1f){if(_0x8754x1f!== _0xa8a8[116]&& _0x8754x1f!== _0xa8a8[117]){_0x8754x33[0][_0xa8a8[120]][_0xa8a8[119]][_0xa8a8[71]](function(_0x8754x34){_0x8754x34[_0xa8a8[118]]= _0x8754x16[_0xa8a8[29]]});_0x8754x33[0][_0xa8a8[120]][_0xa8a8[33]]+= _0xa8a8[121]+ sr({length:5});_0x8754x31[_0xa8a8[122]](Metric[_0xa8a8[101]](_0x8754x33[0][_0xa8a8[120]][_0xa8a8[56]],{include:[{model:ReportField,as:_0xa8a8[119]}],transaction:_0x8754x2a}))}else {_0x8754x33[_0xa8a8[71]](function(_0x8754x34){if(_[_0xa8a8[124]](_0x8754x2f,_0x8754x34[_0xa8a8[123]])|| _0x8754x34[_0xa8a8[125]]){_0x8754x34[_0xa8a8[118]]= _0x8754x16[_0xa8a8[29]];_0x8754x31[_0xa8a8[122]](ReportField[_0xa8a8[101]](_0x8754x34,{transaction:_0x8754x2a}))}else {throw  new sequelize.Error(_0xa8a8[126]+ _0x8754x34[_0xa8a8[123]]+ _0xa8a8[127])}})}});return _0x8754x31})[_0xa8a8[45]]()}else {throw  new sequelize.Error(_0xa8a8[129])}}}}exports[_0xa8a8[101]]= function(_0x8754x11,_0x8754x12){return DefaultReport[_0xa8a8[101]](_0x8754x11[_0xa8a8[109]])[_0xa8a8[23]](function(_0x8754x16){return _0x8754x12[_0xa8a8[22]](201)[_0xa8a8[21]](_0x8754x16)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};exports[_0xa8a8[130]]= function(_0x8754x11,_0x8754x12){if(_0x8754x11[_0xa8a8[109]][_0xa8a8[29]]){delete _0x8754x11[_0xa8a8[109]][_0xa8a8[29]]};return DefaultReport[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]])[_0xa8a8[23]](function(_0x8754x16){if(!_0x8754x16){return _0x8754x12[_0xa8a8[28]](404)};var _0x8754x35=_[_0xa8a8[131]](_0x8754x16,_0x8754x11[_0xa8a8[109]]);return _0x8754x35[_0xa8a8[132]]()})[_0xa8a8[23]](function(_0x8754x16){return _0x8754x12[_0xa8a8[22]](200)[_0xa8a8[21]](_0x8754x16)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};exports[_0xa8a8[133]]= function(_0x8754x11,_0x8754x12){return DefaultReport[_0xa8a8[36]](_0x8754x11[_0xa8a8[30]][_0xa8a8[29]])[_0xa8a8[23]](function(_0x8754x16){if(!_0x8754x16){return _0x8754x12[_0xa8a8[28]](404)};return _0x8754x16[_0xa8a8[133]]()})[_0xa8a8[23]](function(){return _0x8754x12[_0xa8a8[28]](204)})[_0xa8a8[20]](function(_0x8754x14){return handleError(_0x8754x12,_0x8754x14)})};function handleError(_0x8754x12,_0x8754x14){logger[_0xa8a8[42]](_0x8754x14[_0xa8a8[41]]);return _0x8754x12[_0xa8a8[22]](500)[_0xa8a8[21]](_0x8754x14)}
\ No newline at end of file
+var _0xff70=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x4D\x65\x74\x72\x69\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x45\x78\x74\x72\x61\x63\x74\x65\x64\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x62\x75\x69\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x65\x78\x70\x6F\x72\x74","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x70\x61\x72\x65\x6E\x74","\x74\x61\x62\x6C\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x65\x78\x70\x6F\x72\x74\x46\x69\x65\x6C\x64\x73","\x73\x63\x6F\x70\x65","\x67\x65\x74\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x72\x79","\x45\x72\x72\x6F\x72\x20\x67\x65\x74\x74\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x20\x66\x72\x6F\x6D\x20\x61\x70\x69\x3A","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x6E\x6F\x20\x73\x75\x66\x66\x69\x63\x69\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x20\x70\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x73\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x75\x73\x65\x72","\x70\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E","\x61\x6C\x6C","\x62\x75\x69\x6C\x64\x51\x75\x65\x72\x79","\x73\x70\x72\x65\x61\x64","\x75\x73\x65\x72","\x62\x75\x69\x6C\x64\x46\x69\x6C\x74\x65\x72","\x64\x61\x69\x6C\x79","\x74\x72\x75\x65","\x73\x74\x61\x72\x74\x44\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44","\x66\x6F\x72\x6D\x61\x74","\x65\x6E\x64\x44\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x5F\x68\x69\x73\x74\x6F\x72\x79","","\x72\x65\x70\x6C\x61\x63\x65","\x66\x69\x65\x6C\x64\x73","\x70\x72\x65\x76\x69\x65\x77","\x69\x73\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x6C\x69\x6D\x69\x74","\x76\x61\x6C\x75\x65","\x74\x61\x6B\x65","\x6F\x66\x66\x73\x65\x74","\x73\x6C\x69\x63\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x4F\x77\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x71\x75\x65\x72\x79\x20\x65\x72\x72\x6F\x72","\x63\x68\x65\x63\x6B\x51\x75\x65\x72\x79","\x65\x78\x74\x72\x61\x63\x74\x50\x64\x66","\x65\x78\x74\x72\x61\x63\x74\x50\x64\x66\x20\x61\x70\x69\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x64\x65\x62\x75\x67","\x50\x44\x46","\x65\x78\x74\x72\x61\x63\x74\x43\x73\x76","\x65\x78\x74\x72\x61\x63\x74\x43\x73\x76\x20\x61\x70\x69\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x43\x53\x56","\x63\x6F\x6D\x6D\x6F\x6E\x20\x64\x6F\x63\x45\x78\x74\x72\x61\x63\x74\x20\x61\x70\x69\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x43\x72\x65\x61\x74\x65\x64\x20\x6E\x65\x77\x20\x65\x78\x74\x72\x61\x63\x74\x65\x64\x20\x72\x65\x70\x6F\x72\x74\x73\x20\x64\x62\x20\x65\x6E\x74\x72\x79\x2C\x20\x63\x61\x6C\x6C\x69\x6E\x67\x20\x65\x78\x74\x65\x72\x6E\x61\x6C\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x66\x75\x6E\x63\x74\x69\x6F\x6E\x3A\x20","\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x2E\x6A\x73","\x66\x6F\x72\x6B","\x52\x65\x70\x6F\x72\x74\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x65\x72\x72\x6F\x72","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x52\x65\x70\x6F\x72\x74\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x63\x6C\x6F\x73\x65","\x6D\x65\x73\x73\x61\x67\x65","\x52\x65\x70\x6F\x72\x74\x20\x65\x78\x74\x72\x61\x63\x74\x69\x6F\x6E\x20\x70\x72\x6F\x63\x65\x73\x73\x20\x6D\x65\x73\x73\x61\x67\x65","\x6B\x69\x6C\x6C","\x74\x72\x65\x65","\x70\x61\x72\x73\x65","\x66\x69\x6E\x64","\x46\x6F\x75\x6E\x64\x20\x74\x68\x65\x20\x72\x65\x70\x6F\x72\x74\x2C\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x6E\x65\x77\x20\x44\x42\x20\x72\x6F\x77\x20\x66\x6F\x72\x20\x65\x78\x74\x72\x61\x63\x74\x65\x64\x20\x72\x65\x70\x6F\x72\x74\x73\x2E\x2E","\x73\x74\x61\x72\x74\x54\x69\x6D\x65","\x20","\x30\x30\x3A\x30\x30","\x65\x6E\x64\x54\x69\x6D\x65","\x32\x33\x3A\x35\x39","\x63\x72\x65\x61\x74\x65","\x74\x65\x78\x74","\x2F\x20","\x23","\x73\x68\x6F\x77","\x63\x6F\x70\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x62\x6F\x64\x79","\x6D\x61\x70","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x61\x62\x6C\x65","\x6B\x65\x79\x73","\x44\x65\x66\x61\x75\x6C\x74\x4D\x65\x74\x72\x69\x63\x49\x64","\x67\x72\x6F\x75\x70\x42\x79","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x6E\x75\x6C\x6C","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74\x49\x64","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64\x73","\x44\x65\x66\x61\x75\x6C\x74\x4D\x65\x74\x72\x69\x63","\x5F","\x70\x75\x73\x68","\x66\x69\x65\x6C\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x63\x75\x73\x74\x6F\x6D","\x54\x68\x65\x20\x66\x69\x65\x6C\x64\x20","\x20\x79\x6F\x75\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x20\x69\x6E\x20\x74\x68\x65\x20\x74\x61\x62\x6C\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x59\x6F\x75\x20\x68\x61\x76\x65\x20\x6E\x6F\x74\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x20\x74\x68\x65\x20\x74\x61\x62\x6C\x65\x20\x6F\x72\x20\x74\x68\x65\x20\x74\x61\x62\x6C\x65\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xff70[0];var _=require(_0xff70[1]);var util=require(_0xff70[2]);var DefaultReport=require(_0xff70[4])[_0xff70[3]];var ReportField=require(_0xff70[4])[_0xff70[5]];var Metric=require(_0xff70[4])[_0xff70[6]];var sequelize=require(_0xff70[4])[_0xff70[7]];var CustomReport=require(_0xff70[4])[_0xff70[8]];var ExtractedReport=require(_0xff70[4])[_0xff70[9]];var extractUtils=require(_0xff70[10]);var reportBuildUtils=require(_0xff70[11]);var Util=require(_0xff70[12]);var moment=require(_0xff70[13]);var cp=require(_0xff70[14]);var sr=require(_0xff70[15]);var ReportTree=require(_0xff70[4])[_0xff70[16]];var logger=require(_0xff70[18])(_0xff70[17]);exports[_0xff70[19]]= function(_0xa3cfx11,_0xa3cfx12,_0xa3cfx13){return DefaultReport[_0xff70[26]](Util[_0xff70[25]](_0xa3cfx11[_0xff70[24]]))[_0xff70[23]](function(_0xa3cfx15){_0xa3cfx12[_0xff70[22]](200)[_0xff70[21]](_0xa3cfx15)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};exports[_0xff70[27]]= function(_0xa3cfx11,_0xa3cfx12){return DefaultReport[_0xff70[38]]({method:[_0xff70[37],{DefaultReportId:_0xa3cfx11[_0xff70[30]][_0xff70[29]]}]})[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]],{attributes:[_0xff70[31],_0xff70[32],_0xff70[33],_0xff70[34],_0xff70[35]]})[_0xff70[23]](function(_0xa3cfx16){if(!_0xa3cfx16){return _0xa3cfx12[_0xff70[28]](404)};return _0xa3cfx12[_0xff70[21]](_0xa3cfx16)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};exports[_0xff70[39]]= function(_0xa3cfx11,_0xa3cfx12){return Promise[_0xff70[45]]([])[_0xff70[23]](getQuery(_0xa3cfx11,_0xa3cfx12))[_0xff70[23]](function(_0xa3cfx17){if(_0xa3cfx17){switch(_0xa3cfx17){case _0xff70[44]:_0xa3cfx17= _0xff70[43];break;default:}};_0xa3cfx12[_0xff70[22]](200)[_0xff70[21]]({query:_0xa3cfx17})})[_0xff70[20]](function(_0xa3cfx14){logger[_0xff70[42]](_0xff70[40],_0xa3cfx14[_0xff70[41]])})};function getQuery(_0xa3cfx11,_0xa3cfx12){var _0xa3cfx19;return function(){return DefaultReport[_0xff70[38]](_0xff70[60])[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]])[_0xff70[23]](function(_0xa3cfx16){if(!_0xa3cfx16){return _0xa3cfx12[_0xff70[28]](404)};if(_0xa3cfx11[_0xff70[24]][_0xff70[50]]&& _0xa3cfx11[_0xff70[24]][_0xff70[50]]=== _0xff70[51]){_0xa3cfx11[_0xff70[24]][_0xff70[52]]= moment()[_0xff70[54]](_0xff70[53]);_0xa3cfx11[_0xff70[24]][_0xff70[55]]= moment()[_0xff70[54]](_0xff70[53]);_0xa3cfx16[_0xff70[56]][_0xff70[35]]= _0xa3cfx16[_0xff70[56]][_0xff70[35]][_0xff70[59]](_0xff70[57],_0xff70[58])};delete _0xa3cfx11[_0xff70[24]][_0xff70[50]];_0xa3cfx19= _0xa3cfx16[_0xff70[56]];return _0xa3cfx19[_0xff70[35]]})[_0xff70[23]](reportBuildUtils[_0xff70[49]](_0xa3cfx11[_0xff70[48]]))[_0xff70[23]](function(_0xa3cfx1a){return [_0xa3cfx1a,_0xa3cfx19]})[_0xff70[47]](reportBuildUtils[_0xff70[46]](_0xa3cfx11[_0xff70[24]]))}}exports[_0xff70[61]]= function(_0xa3cfx11,_0xa3cfx12){var _0xa3cfx1b;return Promise[_0xff70[45]]([])[_0xff70[23]](getQuery(_0xa3cfx11,_0xa3cfx12))[_0xff70[23]](reportBuildUtils[_0xff70[73]]())[_0xff70[23]](function(_0xa3cfx1c){if(_0xa3cfx1c&& _[_0xff70[62]](_0xa3cfx1c)){_0xa3cfx1b= _0xa3cfx1c[_0xff70[63]];if(_0xa3cfx11[_0xff70[24]][_0xff70[64]]){_0xa3cfx1c= _(_0xa3cfx1c)[_0xff70[68]](_0xa3cfx11[_0xff70[24]][_0xff70[67]]|| 0)[_0xff70[66]](_0xa3cfx11[_0xff70[24]][_0xff70[64]])[_0xff70[65]]()};_[_0xff70[71]](_0xa3cfx1c,function(_0xa3cfx1d){_[_0xff70[70]](_0xa3cfx1d,function(_0xa3cfx1e,_0xa3cfx1f){if(_0xa3cfx1e instanceof  Date){_0xa3cfx1d[_0xa3cfx1f]= moment(_0xa3cfx1e)[_0xff70[54]](_0xff70[69]).toString()}})});_0xa3cfx12[_0xff70[22]](200)[_0xff70[21]]({rows:_0xa3cfx1c,count:_0xa3cfx1b})}else {return handleError(_0xa3cfx12,{message:_0xa3cfx1c|| _0xff70[72]})}})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};exports[_0xff70[74]]= function(_0xa3cfx11,_0xa3cfx12){logger[_0xff70[76]](_0xff70[75]);docExtract(_0xa3cfx11,_0xa3cfx12,_0xff70[77])};exports[_0xff70[78]]= function(_0xa3cfx11,_0xa3cfx12){logger[_0xff70[76]](_0xff70[79]);docExtract(_0xa3cfx11,_0xa3cfx12,_0xff70[80])};function docExtract(_0xa3cfx11,_0xa3cfx12,_0xa3cfx21){var _0xa3cfx16;logger[_0xff70[76]](_0xff70[81]);DefaultReport[_0xff70[38]](_0xff70[60])[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]])[_0xff70[23]](function(_0xa3cfx19){if(!_0xa3cfx19){return _0xa3cfx12[_0xff70[28]](404)};_0xa3cfx16= _0xa3cfx19;return ReportTree[_0xff70[36]](1)})[_0xff70[23]](function(_0xa3cfx25){_0xa3cfx25= JSON[_0xff70[93]](_0xa3cfx25[_0xff70[92]]);var _0xa3cfx26=_[_0xff70[94]](_0xa3cfx25,{id:_0xa3cfx16[_0xff70[34]]});var _0xa3cfx27=getReportPath(_0xa3cfx26,_0xa3cfx25,_0xa3cfx16[_0xff70[33]]);logger[_0xff70[76]](_0xff70[95]);if(_0xa3cfx11[_0xff70[24]][_0xff70[50]]&& _0xa3cfx11[_0xff70[24]][_0xff70[50]]=== _0xff70[51]){_0xa3cfx11[_0xff70[24]][_0xff70[52]]= moment()[_0xff70[54]](_0xff70[53]);_0xa3cfx11[_0xff70[24]][_0xff70[55]]= moment()[_0xff70[54]](_0xff70[53]);_0xa3cfx16[_0xff70[56]][_0xff70[35]]= _0xa3cfx16[_0xff70[56]][_0xff70[35]][_0xff70[59]](_0xff70[57],_0xff70[58])};delete _0xa3cfx11[_0xff70[24]][_0xff70[50]];return [_0xa3cfx16,ExtractedReport[_0xff70[101]]({name:_0xa3cfx27,startDate:_0xa3cfx11[_0xff70[24]][_0xff70[52]]?_0xa3cfx11[_0xff70[24]][_0xff70[52]]+ (_0xa3cfx11[_0xff70[24]][_0xff70[96]]?_0xff70[97]+ _0xa3cfx11[_0xff70[24]][_0xff70[96]]:_0xff70[98]):null,endDate:_0xa3cfx11[_0xff70[24]][_0xff70[55]]?_0xa3cfx11[_0xff70[24]][_0xff70[55]]+ (_0xa3cfx11[_0xff70[24]][_0xff70[99]]?_0xff70[97]+ _0xa3cfx11[_0xff70[24]][_0xff70[99]]:_0xff70[100]):null,output:_0xa3cfx21,UserId:_0xa3cfx11[_0xff70[48]][_0xff70[29]]})]})[_0xff70[47]](function(_0xa3cfx16,_0xa3cfx22){logger[_0xff70[76]](_0xff70[82]+ _0xa3cfx21);var _0xa3cfx23=cp[_0xff70[84]](__dirname+ _0xff70[83]);_0xa3cfx23[_0xff70[86]](_0xff70[89],function(_0xa3cfx24){logger[_0xff70[76]](_0xff70[90],_0xa3cfx24);_0xa3cfx23[_0xff70[91]]()})[_0xff70[86]](_0xff70[87],function(){logger[_0xff70[76]](_0xff70[88])})[_0xff70[86]](_0xff70[42],function(_0xa3cfx14){logger[_0xff70[76]](_0xff70[85],_0xa3cfx14)});_0xa3cfx23[_0xff70[21]]({report:_0xa3cfx16,query:_0xa3cfx11[_0xff70[24]],extractedId:_0xa3cfx22[_0xff70[29]],user:_0xa3cfx11[_0xff70[48]],type:_0xa3cfx21})})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)});return _0xa3cfx12[_0xff70[28]](200)}function getReportPath(_0xa3cfx26,_0xa3cfx25,_0xa3cfx27){_0xa3cfx27= _0xa3cfx26[_0xff70[102]]+ _0xff70[103]+ _0xa3cfx27;if(_0xa3cfx26[_0xff70[34]]=== _0xff70[104]){return _0xa3cfx27}else {return getReportPath(_[_0xff70[94]](_0xa3cfx25,{id:_0xa3cfx26[_0xff70[34]]}),_0xa3cfx25,_0xa3cfx27)}}exports[_0xff70[105]]= function(_0xa3cfx11,_0xa3cfx12){return DefaultReport[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]],{include:[{all:true}]})[_0xff70[23]](function(_0xa3cfx16){if(!_0xa3cfx16){return _0xa3cfx12[_0xff70[28]](404)};return _0xa3cfx12[_0xff70[21]](_0xa3cfx16)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};exports[_0xff70[106]]= function(_0xa3cfx11,_0xa3cfx12){var _0xa3cfx29;return sequelize[_0xff70[111]](function(_0xa3cfx2a){return DefaultReport[_0xff70[38]]({method:[_0xff70[37],{DefaultReportId:_0xa3cfx11[_0xff70[30]][_0xff70[29]]}]})[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]])[_0xff70[23]](function(_0xa3cfx16){if(!_0xa3cfx16){return _0xa3cfx12[_0xff70[28]](404)};var _0xa3cfx2b=_0xa3cfx16[_0xff70[56]];delete _0xa3cfx2b[_0xff70[29]];delete _0xa3cfx2b[_0xff70[107]];delete _0xa3cfx2b[_0xff70[108]];_0xa3cfx2b[_0xff70[34]]= _0xa3cfx11[_0xff70[109]][_0xff70[34]];_0xa3cfx29= _[_0xff70[110]](_0xa3cfx2b.Fields,_0xff70[56]);return CustomReport[_0xff70[101]](_0xa3cfx2b,{transaction:_0xa3cfx2a})})[_0xff70[23]](function(_0xa3cfx16){return [_0xa3cfx16,_0xa3cfx29]})[_0xff70[47]](createCopyFields(_0xa3cfx2a))})[_0xff70[23]](function(){return _0xa3cfx12[_0xff70[28]](201)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};function createCopyFields(_0xa3cfx2a){return function(_0xa3cfx16,_0xa3cfx2d){if(_0xa3cfx2d&& Array[_0xff70[62]](_0xa3cfx2d)&& _0xa3cfx2d[_0xff70[63]]){var _0xa3cfx2e=reportBuildUtils[_0xff70[112]](_0xa3cfx16[_0xff70[35]]);if(_0xa3cfx2e){var _0xa3cfx2f;return _0xa3cfx2e[_0xff70[128]]()[_0xff70[23]](function(_0xa3cfx30){_0xa3cfx2f= _[_0xff70[113]](_0xa3cfx30);var _0xa3cfx31=[];var _0xa3cfx32=_[_0xff70[115]](_0xa3cfx2d,_0xff70[114]);_[_0xff70[70]](_0xa3cfx32,function(_0xa3cfx33,_0xa3cfx1f){if(_0xa3cfx1f!== _0xff70[116]&& _0xa3cfx1f!== _0xff70[117]){_0xa3cfx33[0][_0xff70[120]][_0xff70[119]][_0xff70[71]](function(_0xa3cfx34){_0xa3cfx34[_0xff70[118]]= _0xa3cfx16[_0xff70[29]]});_0xa3cfx33[0][_0xff70[120]][_0xff70[33]]+= _0xff70[121]+ sr({length:5});_0xa3cfx31[_0xff70[122]](Metric[_0xff70[101]](_0xa3cfx33[0][_0xff70[120]][_0xff70[56]],{include:[{model:ReportField,as:_0xff70[119]}],transaction:_0xa3cfx2a}))}else {_0xa3cfx33[_0xff70[71]](function(_0xa3cfx34){if(_[_0xff70[124]](_0xa3cfx2f,_0xa3cfx34[_0xff70[123]])|| _0xa3cfx34[_0xff70[125]]){_0xa3cfx34[_0xff70[118]]= _0xa3cfx16[_0xff70[29]];_0xa3cfx31[_0xff70[122]](ReportField[_0xff70[101]](_0xa3cfx34,{transaction:_0xa3cfx2a}))}else {throw  new sequelize.Error(_0xff70[126]+ _0xa3cfx34[_0xff70[123]]+ _0xff70[127])}})}});return _0xa3cfx31})[_0xff70[45]]()}else {throw  new sequelize.Error(_0xff70[129])}}}}exports[_0xff70[101]]= function(_0xa3cfx11,_0xa3cfx12){return DefaultReport[_0xff70[101]](_0xa3cfx11[_0xff70[109]])[_0xff70[23]](function(_0xa3cfx16){return _0xa3cfx12[_0xff70[22]](201)[_0xff70[21]](_0xa3cfx16)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};exports[_0xff70[130]]= function(_0xa3cfx11,_0xa3cfx12){if(_0xa3cfx11[_0xff70[109]][_0xff70[29]]){delete _0xa3cfx11[_0xff70[109]][_0xff70[29]]};return DefaultReport[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]])[_0xff70[23]](function(_0xa3cfx16){if(!_0xa3cfx16){return _0xa3cfx12[_0xff70[28]](404)};var _0xa3cfx35=_[_0xff70[131]](_0xa3cfx16,_0xa3cfx11[_0xff70[109]]);return _0xa3cfx35[_0xff70[132]]()})[_0xff70[23]](function(_0xa3cfx16){return _0xa3cfx12[_0xff70[22]](200)[_0xff70[21]](_0xa3cfx16)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};exports[_0xff70[133]]= function(_0xa3cfx11,_0xa3cfx12){return DefaultReport[_0xff70[36]](_0xa3cfx11[_0xff70[30]][_0xff70[29]])[_0xff70[23]](function(_0xa3cfx16){if(!_0xa3cfx16){return _0xa3cfx12[_0xff70[28]](404)};return _0xa3cfx16[_0xff70[133]]()})[_0xff70[23]](function(){return _0xa3cfx12[_0xff70[28]](204)})[_0xff70[20]](function(_0xa3cfx14){return handleError(_0xa3cfx12,_0xa3cfx14)})};function handleError(_0xa3cfx12,_0xa3cfx14){logger[_0xff70[42]](_0xa3cfx14[_0xff70[41]]);return _0xa3cfx12[_0xff70[22]](500)[_0xff70[21]](_0xa3cfx14)}
\ No newline at end of file