Built motion from commit 7944a72.|1.0.15
[motion.git] / server / api / default_report / default_report.controller.js
1 var _0xe04c=["\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","\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","\x6C\x6F\x67","\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","\x66\x6F\x75\x6E\x64\x20\x72\x65\x70\x6F\x72\x74","\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","\x50\x44\x46","\x65\x78\x74\x72\x61\x63\x74\x43\x73\x76","\x43\x53\x56","\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","\x65\x72\x72\x6F\x72","\x63\x68\x69\x6C\x64\x20\x65\x72\x72\x6F\x72","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x63\x68\x69\x6C\x64\x20\x63\x6C\x6F\x73\x65","\x6D\x65\x73\x73\x61\x67\x65","\x63\x68\x69\x6C\x64\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","\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"];_0xe04c[0];var _=require(_0xe04c[1]);var util=require(_0xe04c[2]);var DefaultReport=require(_0xe04c[4])[_0xe04c[3]];var ReportField=require(_0xe04c[4])[_0xe04c[5]];var Metric=require(_0xe04c[4])[_0xe04c[6]];var sequelize=require(_0xe04c[4])[_0xe04c[7]];var CustomReport=require(_0xe04c[4])[_0xe04c[8]];var ExtractedReport=require(_0xe04c[4])[_0xe04c[9]];var extractUtils=require(_0xe04c[10]);var reportBuildUtils=require(_0xe04c[11]);var Util=require(_0xe04c[12]);var moment=require(_0xe04c[13]);var cp=require(_0xe04c[14]);var sr=require(_0xe04c[15]);var ReportTree=require(_0xe04c[4])[_0xe04c[16]];exports[_0xe04c[17]]= function(_0xcacax10,_0xcacax11,_0xcacax12){return DefaultReport[_0xe04c[24]](Util[_0xe04c[23]](_0xcacax10[_0xe04c[22]]))[_0xe04c[21]](function(_0xcacax14){_0xcacax11[_0xe04c[20]](200)[_0xe04c[19]](_0xcacax14)})[_0xe04c[18]](function(_0xcacax13){return handleError(_0xcacax11,_0xcacax13)})};exports[_0xe04c[25]]= function(_0xcacax10,_0xcacax11){return DefaultReport[_0xe04c[36]]({method:[_0xe04c[35],{DefaultReportId:_0xcacax10[_0xe04c[28]][_0xe04c[27]]}]})[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]],{attributes:[_0xe04c[29],_0xe04c[30],_0xe04c[31],_0xe04c[32],_0xe04c[33]]})[_0xe04c[21]](function(_0xcacax15){if(!_0xcacax15){return _0xcacax11[_0xe04c[26]](404)};return _0xcacax11[_0xe04c[19]](_0xcacax15)})[_0xe04c[18]](function(_0xcacax13){return handleError(_0xcacax11,_0xcacax13)})};exports[_0xe04c[37]]= function(_0xcacax10,_0xcacax11){return Promise[_0xe04c[42]]([])[_0xe04c[21]](getQuery(_0xcacax10,_0xcacax11))[_0xe04c[21]](function(_0xcacax16){if(_0xcacax16){switch(_0xcacax16){case _0xe04c[41]:_0xcacax16= _0xe04c[40];break;default:}};_0xcacax11[_0xe04c[20]](200)[_0xe04c[19]]({query:_0xcacax16})})[_0xe04c[18]](function(_0xcacax13){console[_0xe04c[39]](_0xe04c[38],_0xcacax13)})};function getQuery(_0xcacax10,_0xcacax11){var _0xcacax18;return function(){return DefaultReport[_0xe04c[36]](_0xe04c[58])[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]])[_0xe04c[21]](function(_0xcacax15){console[_0xe04c[39]](_0xe04c[47]);if(!_0xcacax15){return _0xcacax11[_0xe04c[26]](404)};if(_0xcacax10[_0xe04c[22]][_0xe04c[48]]&& _0xcacax10[_0xe04c[22]][_0xe04c[48]]=== _0xe04c[49]){_0xcacax10[_0xe04c[22]][_0xe04c[50]]= moment()[_0xe04c[52]](_0xe04c[51]);_0xcacax10[_0xe04c[22]][_0xe04c[53]]= moment()[_0xe04c[52]](_0xe04c[51]);_0xcacax15[_0xe04c[54]][_0xe04c[33]]= _0xcacax15[_0xe04c[54]][_0xe04c[33]][_0xe04c[57]](_0xe04c[55],_0xe04c[56])};delete _0xcacax10[_0xe04c[22]][_0xe04c[48]];_0xcacax18= _0xcacax15[_0xe04c[54]];return _0xcacax18[_0xe04c[33]]})[_0xe04c[21]](reportBuildUtils[_0xe04c[46]](_0xcacax10[_0xe04c[45]]))[_0xe04c[21]](function(_0xcacax19){return [_0xcacax19,_0xcacax18]})[_0xe04c[44]](reportBuildUtils[_0xe04c[43]](_0xcacax10[_0xe04c[22]]))}}exports[_0xe04c[59]]= function(_0xcacax10,_0xcacax11){var _0xcacax1a;return Promise[_0xe04c[42]]([])[_0xe04c[21]](getQuery(_0xcacax10,_0xcacax11))[_0xe04c[21]](reportBuildUtils[_0xe04c[71]]())[_0xe04c[21]](function(_0xcacax1b){if(_0xcacax1b&& _[_0xe04c[60]](_0xcacax1b)){_0xcacax1a= _0xcacax1b[_0xe04c[61]];if(_0xcacax10[_0xe04c[22]][_0xe04c[62]]){_0xcacax1b= _(_0xcacax1b)[_0xe04c[66]](_0xcacax10[_0xe04c[22]][_0xe04c[65]]|| 0)[_0xe04c[64]](_0xcacax10[_0xe04c[22]][_0xe04c[62]])[_0xe04c[63]]()};_[_0xe04c[69]](_0xcacax1b,function(_0xcacax1c){_[_0xe04c[68]](_0xcacax1c,function(_0xcacax1d,_0xcacax1e){if(_0xcacax1d instanceof  Date){_0xcacax1c[_0xcacax1e]= moment(_0xcacax1d)[_0xe04c[52]](_0xe04c[67]).toString()}})});_0xcacax11[_0xe04c[20]](200)[_0xe04c[19]]({rows:_0xcacax1b,count:_0xcacax1a})}else {return handleError(_0xcacax11,{message:_0xcacax1b|| _0xe04c[70]})}})[_0xe04c[18]](function(_0xcacax13){console[_0xe04c[39]](_0xcacax13);return handleError(_0xcacax11,_0xcacax13)})};exports[_0xe04c[72]]= function(_0xcacax10,_0xcacax11){docExtract(_0xcacax10,_0xcacax11,_0xe04c[73])};exports[_0xe04c[74]]= function(_0xcacax10,_0xcacax11){docExtract(_0xcacax10,_0xcacax11,_0xe04c[75])};function docExtract(_0xcacax10,_0xcacax11,_0xcacax20){var _0xcacax15;DefaultReport[_0xe04c[36]](_0xe04c[58])[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]])[_0xe04c[21]](function(_0xcacax18){if(!_0xcacax18){return _0xcacax11[_0xe04c[26]](404)};_0xcacax15= _0xcacax18;return ReportTree[_0xe04c[34]](1)})[_0xe04c[21]](function(_0xcacax24){_0xcacax24= JSON[_0xe04c[87]](_0xcacax24[_0xe04c[86]]);var _0xcacax25=_[_0xe04c[88]](_0xcacax24,{id:_0xcacax15[_0xe04c[32]]});var _0xcacax26=getReportPath(_0xcacax25,_0xcacax24,_0xcacax15[_0xe04c[31]]);if(_0xcacax10[_0xe04c[22]][_0xe04c[48]]&& _0xcacax10[_0xe04c[22]][_0xe04c[48]]=== _0xe04c[49]){_0xcacax10[_0xe04c[22]][_0xe04c[50]]= moment()[_0xe04c[52]](_0xe04c[51]);_0xcacax10[_0xe04c[22]][_0xe04c[53]]= moment()[_0xe04c[52]](_0xe04c[51]);_0xcacax15[_0xe04c[54]][_0xe04c[33]]= _0xcacax15[_0xe04c[54]][_0xe04c[33]][_0xe04c[57]](_0xe04c[55],_0xe04c[56])};delete _0xcacax10[_0xe04c[22]][_0xe04c[48]];return [_0xcacax15,ExtractedReport[_0xe04c[94]]({name:_0xcacax26,startDate:_0xcacax10[_0xe04c[22]][_0xe04c[50]]?_0xcacax10[_0xe04c[22]][_0xe04c[50]]+ (_0xcacax10[_0xe04c[22]][_0xe04c[89]]?_0xe04c[90]+ _0xcacax10[_0xe04c[22]][_0xe04c[89]]:_0xe04c[91]):null,endDate:_0xcacax10[_0xe04c[22]][_0xe04c[53]]?_0xcacax10[_0xe04c[22]][_0xe04c[53]]+ (_0xcacax10[_0xe04c[22]][_0xe04c[92]]?_0xe04c[90]+ _0xcacax10[_0xe04c[22]][_0xe04c[92]]:_0xe04c[93]):null,output:_0xcacax20,UserId:_0xcacax10[_0xe04c[45]][_0xe04c[27]]})]})[_0xe04c[44]](function(_0xcacax15,_0xcacax21){var _0xcacax22=cp[_0xe04c[77]](__dirname+ _0xe04c[76]);_0xcacax22[_0xe04c[80]](_0xe04c[83],function(_0xcacax23){console[_0xe04c[39]](_0xe04c[84],_0xcacax23);_0xcacax22[_0xe04c[85]]()})[_0xe04c[80]](_0xe04c[81],function(){console[_0xe04c[39]](_0xe04c[82])})[_0xe04c[80]](_0xe04c[78],function(_0xcacax13){console[_0xe04c[39]](_0xe04c[79],_0xcacax13)});_0xcacax22[_0xe04c[19]]({report:_0xcacax15,query:_0xcacax10[_0xe04c[22]],extractedId:_0xcacax21[_0xe04c[27]],user:_0xcacax10[_0xe04c[45]],type:_0xcacax20})})[_0xe04c[18]](function(_0xcacax13){console[_0xe04c[39]](_0xcacax13);return handleError(_0xcacax11,_0xcacax13)});return _0xcacax11[_0xe04c[26]](200)}function getReportPath(_0xcacax25,_0xcacax24,_0xcacax26){_0xcacax26= _0xcacax25[_0xe04c[95]]+ _0xe04c[96]+ _0xcacax26;if(_0xcacax25[_0xe04c[32]]=== _0xe04c[97]){return _0xcacax26}else {return getReportPath(_[_0xe04c[88]](_0xcacax24,{id:_0xcacax25[_0xe04c[32]]}),_0xcacax24,_0xcacax26)}}exports[_0xe04c[98]]= function(_0xcacax10,_0xcacax11){return DefaultReport[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]],{include:[{all:true}]})[_0xe04c[21]](function(_0xcacax15){if(!_0xcacax15){return _0xcacax11[_0xe04c[26]](404)};return _0xcacax11[_0xe04c[19]](_0xcacax15)})[_0xe04c[18]](function(_0xcacax13){return handleError(_0xcacax11,_0xcacax13)})};exports[_0xe04c[99]]= function(_0xcacax10,_0xcacax11){var _0xcacax28;return sequelize[_0xe04c[104]](function(_0xcacax29){return DefaultReport[_0xe04c[36]]({method:[_0xe04c[35],{DefaultReportId:_0xcacax10[_0xe04c[28]][_0xe04c[27]]}]})[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]])[_0xe04c[21]](function(_0xcacax15){if(!_0xcacax15){return _0xcacax11[_0xe04c[26]](404)};var _0xcacax2a=_0xcacax15[_0xe04c[54]];console[_0xe04c[39]](_0xcacax2a);delete _0xcacax2a[_0xe04c[27]];delete _0xcacax2a[_0xe04c[100]];delete _0xcacax2a[_0xe04c[101]];_0xcacax2a[_0xe04c[32]]= _0xcacax10[_0xe04c[102]][_0xe04c[32]];_0xcacax28= _[_0xe04c[103]](_0xcacax2a.Fields,_0xe04c[54]);return CustomReport[_0xe04c[94]](_0xcacax2a,{transaction:_0xcacax29})})[_0xe04c[21]](function(_0xcacax15){return [_0xcacax15,_0xcacax28]})[_0xe04c[44]](createCopyFields(_0xcacax29))})[_0xe04c[21]](function(){return _0xcacax11[_0xe04c[26]](201)})[_0xe04c[18]](function(_0xcacax13){console[_0xe04c[39]](_0xcacax13);return handleError(_0xcacax11,_0xcacax13)})};function createCopyFields(_0xcacax29){return function(_0xcacax15,_0xcacax2c){if(_0xcacax2c&& Array[_0xe04c[60]](_0xcacax2c)&& _0xcacax2c[_0xe04c[61]]){var _0xcacax2d=reportBuildUtils[_0xe04c[105]](_0xcacax15[_0xe04c[33]]);if(_0xcacax2d){var _0xcacax2e;return _0xcacax2d[_0xe04c[121]]()[_0xe04c[21]](function(_0xcacax2f){_0xcacax2e= _[_0xe04c[106]](_0xcacax2f);var _0xcacax30=[];var _0xcacax31=_[_0xe04c[108]](_0xcacax2c,_0xe04c[107]);_[_0xe04c[68]](_0xcacax31,function(_0xcacax32,_0xcacax1e){if(_0xcacax1e!== _0xe04c[109]&& _0xcacax1e!== _0xe04c[110]){_0xcacax32[0][_0xe04c[113]][_0xe04c[112]][_0xe04c[69]](function(_0xcacax33){_0xcacax33[_0xe04c[111]]= _0xcacax15[_0xe04c[27]]});_0xcacax32[0][_0xe04c[113]][_0xe04c[31]]+= _0xe04c[114]+ sr({length:5});_0xcacax30[_0xe04c[115]](Metric[_0xe04c[94]](_0xcacax32[0][_0xe04c[113]][_0xe04c[54]],{include:[{model:ReportField,as:_0xe04c[112]}],transaction:_0xcacax29}))}else {_0xcacax32[_0xe04c[69]](function(_0xcacax33){if(_[_0xe04c[117]](_0xcacax2e,_0xcacax33[_0xe04c[116]])|| _0xcacax33[_0xe04c[118]]){_0xcacax33[_0xe04c[111]]= _0xcacax15[_0xe04c[27]];_0xcacax30[_0xe04c[115]](ReportField[_0xe04c[94]](_0xcacax33,{transaction:_0xcacax29}))}else {throw  new sequelize.Error(_0xe04c[119]+ _0xcacax33[_0xe04c[116]]+ _0xe04c[120])}})}});return _0xcacax30})[_0xe04c[42]]()}else {throw  new sequelize.Error(_0xe04c[122])}}}}exports[_0xe04c[94]]= function(_0xcacax10,_0xcacax11){return DefaultReport[_0xe04c[94]](_0xcacax10[_0xe04c[102]])[_0xe04c[21]](function(_0xcacax15){return _0xcacax11[_0xe04c[20]](201)[_0xe04c[19]](_0xcacax15)})[_0xe04c[18]](function(_0xcacax13){return handleError(_0xcacax11,_0xcacax13)})};exports[_0xe04c[123]]= function(_0xcacax10,_0xcacax11){if(_0xcacax10[_0xe04c[102]][_0xe04c[27]]){delete _0xcacax10[_0xe04c[102]][_0xe04c[27]]};return DefaultReport[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]])[_0xe04c[21]](function(_0xcacax15){if(!_0xcacax15){return _0xcacax11[_0xe04c[26]](404)};var _0xcacax34=_[_0xe04c[124]](_0xcacax15,_0xcacax10[_0xe04c[102]]);return _0xcacax34[_0xe04c[125]]()})[_0xe04c[21]](function(_0xcacax15){return _0xcacax11[_0xe04c[20]](200)[_0xe04c[19]](_0xcacax15)})[_0xe04c[18]](function(_0xcacax13){return handleError(_0xcacax11,_0xcacax13)})};exports[_0xe04c[126]]= function(_0xcacax10,_0xcacax11){return DefaultReport[_0xe04c[34]](_0xcacax10[_0xe04c[28]][_0xe04c[27]])[_0xe04c[21]](function(_0xcacax15){if(!_0xcacax15){return _0xcacax11[_0xe04c[26]](404)};return _0xcacax15[_0xe04c[126]]()})[_0xe04c[21]](function(){return _0xcacax11[_0xe04c[26]](204)})[_0xe04c[18]](function(_0xcacax13){return handleError(_0xcacax11,_0xcacax13)})};function handleError(_0xcacax11,_0xcacax13){return _0xcacax11[_0xe04c[20]](500)[_0xe04c[19]](_0xcacax13)}