dfeae1af856d11223ce72bc1f0c45b8e45f6334e
[motion.git] / server / api / default_report / default_report.controller.js
1 var _0x9650=["\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"];_0x9650[0];var _=require(_0x9650[1]);var util=require(_0x9650[2]);var DefaultReport=require(_0x9650[4])[_0x9650[3]];var ReportField=require(_0x9650[4])[_0x9650[5]];var Metric=require(_0x9650[4])[_0x9650[6]];var sequelize=require(_0x9650[4])[_0x9650[7]];var CustomReport=require(_0x9650[4])[_0x9650[8]];var ExtractedReport=require(_0x9650[4])[_0x9650[9]];var extractUtils=require(_0x9650[10]);var reportBuildUtils=require(_0x9650[11]);var Util=require(_0x9650[12]);var moment=require(_0x9650[13]);var cp=require(_0x9650[14]);var sr=require(_0x9650[15]);var ReportTree=require(_0x9650[4])[_0x9650[16]];exports[_0x9650[17]]= function(_0xa8e4x10,_0xa8e4x11,_0xa8e4x12){return DefaultReport[_0x9650[24]](Util[_0x9650[23]](_0xa8e4x10[_0x9650[22]]))[_0x9650[21]](function(_0xa8e4x14){_0xa8e4x11[_0x9650[20]](200)[_0x9650[19]](_0xa8e4x14)})[_0x9650[18]](function(_0xa8e4x13){return handleError(_0xa8e4x11,_0xa8e4x13)})};exports[_0x9650[25]]= function(_0xa8e4x10,_0xa8e4x11){return DefaultReport[_0x9650[36]]({method:[_0x9650[35],{DefaultReportId:_0xa8e4x10[_0x9650[28]][_0x9650[27]]}]})[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]],{attributes:[_0x9650[29],_0x9650[30],_0x9650[31],_0x9650[32],_0x9650[33]]})[_0x9650[21]](function(_0xa8e4x15){if(!_0xa8e4x15){return _0xa8e4x11[_0x9650[26]](404)};return _0xa8e4x11[_0x9650[19]](_0xa8e4x15)})[_0x9650[18]](function(_0xa8e4x13){return handleError(_0xa8e4x11,_0xa8e4x13)})};exports[_0x9650[37]]= function(_0xa8e4x10,_0xa8e4x11){return Promise[_0x9650[42]]([])[_0x9650[21]](getQuery(_0xa8e4x10,_0xa8e4x11))[_0x9650[21]](function(_0xa8e4x16){if(_0xa8e4x16){switch(_0xa8e4x16){case _0x9650[41]:_0xa8e4x16= _0x9650[40];break;default:}};_0xa8e4x11[_0x9650[20]](200)[_0x9650[19]]({query:_0xa8e4x16})})[_0x9650[18]](function(_0xa8e4x13){console[_0x9650[39]](_0x9650[38],_0xa8e4x13)})};function getQuery(_0xa8e4x10,_0xa8e4x11){var _0xa8e4x18;return function(){return DefaultReport[_0x9650[36]](_0x9650[58])[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]])[_0x9650[21]](function(_0xa8e4x15){console[_0x9650[39]](_0x9650[47]);if(!_0xa8e4x15){return _0xa8e4x11[_0x9650[26]](404)};if(_0xa8e4x10[_0x9650[22]][_0x9650[48]]&& _0xa8e4x10[_0x9650[22]][_0x9650[48]]=== _0x9650[49]){_0xa8e4x10[_0x9650[22]][_0x9650[50]]= moment()[_0x9650[52]](_0x9650[51]);_0xa8e4x10[_0x9650[22]][_0x9650[53]]= moment()[_0x9650[52]](_0x9650[51]);_0xa8e4x15[_0x9650[54]][_0x9650[33]]= _0xa8e4x15[_0x9650[54]][_0x9650[33]][_0x9650[57]](_0x9650[55],_0x9650[56])};delete _0xa8e4x10[_0x9650[22]][_0x9650[48]];_0xa8e4x18= _0xa8e4x15[_0x9650[54]];return _0xa8e4x18[_0x9650[33]]})[_0x9650[21]](reportBuildUtils[_0x9650[46]](_0xa8e4x10[_0x9650[45]]))[_0x9650[21]](function(_0xa8e4x19){return [_0xa8e4x19,_0xa8e4x18]})[_0x9650[44]](reportBuildUtils[_0x9650[43]](_0xa8e4x10[_0x9650[22]]))}}exports[_0x9650[59]]= function(_0xa8e4x10,_0xa8e4x11){var _0xa8e4x1a;return Promise[_0x9650[42]]([])[_0x9650[21]](getQuery(_0xa8e4x10,_0xa8e4x11))[_0x9650[21]](reportBuildUtils[_0x9650[71]]())[_0x9650[21]](function(_0xa8e4x1b){if(_0xa8e4x1b&& _[_0x9650[60]](_0xa8e4x1b)){_0xa8e4x1a= _0xa8e4x1b[_0x9650[61]];if(_0xa8e4x10[_0x9650[22]][_0x9650[62]]){_0xa8e4x1b= _(_0xa8e4x1b)[_0x9650[66]](_0xa8e4x10[_0x9650[22]][_0x9650[65]]|| 0)[_0x9650[64]](_0xa8e4x10[_0x9650[22]][_0x9650[62]])[_0x9650[63]]()};_[_0x9650[69]](_0xa8e4x1b,function(_0xa8e4x1c){_[_0x9650[68]](_0xa8e4x1c,function(_0xa8e4x1d,_0xa8e4x1e){if(_0xa8e4x1d instanceof  Date){_0xa8e4x1c[_0xa8e4x1e]= moment(_0xa8e4x1d)[_0x9650[52]](_0x9650[67]).toString()}})});_0xa8e4x11[_0x9650[20]](200)[_0x9650[19]]({rows:_0xa8e4x1b,count:_0xa8e4x1a})}else {return handleError(_0xa8e4x11,{message:_0xa8e4x1b|| _0x9650[70]})}})[_0x9650[18]](function(_0xa8e4x13){console[_0x9650[39]](_0xa8e4x13);return handleError(_0xa8e4x11,_0xa8e4x13)})};exports[_0x9650[72]]= function(_0xa8e4x10,_0xa8e4x11){docExtract(_0xa8e4x10,_0xa8e4x11,_0x9650[73])};exports[_0x9650[74]]= function(_0xa8e4x10,_0xa8e4x11){docExtract(_0xa8e4x10,_0xa8e4x11,_0x9650[75])};function docExtract(_0xa8e4x10,_0xa8e4x11,_0xa8e4x20){var _0xa8e4x15;DefaultReport[_0x9650[36]](_0x9650[58])[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]])[_0x9650[21]](function(_0xa8e4x18){if(!_0xa8e4x18){return _0xa8e4x11[_0x9650[26]](404)};_0xa8e4x15= _0xa8e4x18;return ReportTree[_0x9650[34]](1)})[_0x9650[21]](function(_0xa8e4x24){_0xa8e4x24= JSON[_0x9650[87]](_0xa8e4x24[_0x9650[86]]);var _0xa8e4x25=_[_0x9650[88]](_0xa8e4x24,{id:_0xa8e4x15[_0x9650[32]]});var _0xa8e4x26=getReportPath(_0xa8e4x25,_0xa8e4x24,_0xa8e4x15[_0x9650[31]]);if(_0xa8e4x10[_0x9650[22]][_0x9650[48]]&& _0xa8e4x10[_0x9650[22]][_0x9650[48]]=== _0x9650[49]){_0xa8e4x10[_0x9650[22]][_0x9650[50]]= moment()[_0x9650[52]](_0x9650[51]);_0xa8e4x10[_0x9650[22]][_0x9650[53]]= moment()[_0x9650[52]](_0x9650[51]);_0xa8e4x15[_0x9650[54]][_0x9650[33]]= _0xa8e4x15[_0x9650[54]][_0x9650[33]][_0x9650[57]](_0x9650[55],_0x9650[56])};delete _0xa8e4x10[_0x9650[22]][_0x9650[48]];return [_0xa8e4x15,ExtractedReport[_0x9650[94]]({name:_0xa8e4x26,startDate:_0xa8e4x10[_0x9650[22]][_0x9650[50]]?_0xa8e4x10[_0x9650[22]][_0x9650[50]]+ (_0xa8e4x10[_0x9650[22]][_0x9650[89]]?_0x9650[90]+ _0xa8e4x10[_0x9650[22]][_0x9650[89]]:_0x9650[91]):null,endDate:_0xa8e4x10[_0x9650[22]][_0x9650[53]]?_0xa8e4x10[_0x9650[22]][_0x9650[53]]+ (_0xa8e4x10[_0x9650[22]][_0x9650[92]]?_0x9650[90]+ _0xa8e4x10[_0x9650[22]][_0x9650[92]]:_0x9650[93]):null,output:_0xa8e4x20,UserId:_0xa8e4x10[_0x9650[45]][_0x9650[27]]})]})[_0x9650[44]](function(_0xa8e4x15,_0xa8e4x21){var _0xa8e4x22=cp[_0x9650[77]](__dirname+ _0x9650[76]);_0xa8e4x22[_0x9650[80]](_0x9650[83],function(_0xa8e4x23){console[_0x9650[39]](_0x9650[84],_0xa8e4x23);_0xa8e4x22[_0x9650[85]]()})[_0x9650[80]](_0x9650[81],function(){console[_0x9650[39]](_0x9650[82])})[_0x9650[80]](_0x9650[78],function(_0xa8e4x13){console[_0x9650[39]](_0x9650[79],_0xa8e4x13)});_0xa8e4x22[_0x9650[19]]({report:_0xa8e4x15,query:_0xa8e4x10[_0x9650[22]],extractedId:_0xa8e4x21[_0x9650[27]],user:_0xa8e4x10[_0x9650[45]],type:_0xa8e4x20})})[_0x9650[18]](function(_0xa8e4x13){console[_0x9650[39]](_0xa8e4x13);return handleError(_0xa8e4x11,_0xa8e4x13)});return _0xa8e4x11[_0x9650[26]](200)}function getReportPath(_0xa8e4x25,_0xa8e4x24,_0xa8e4x26){_0xa8e4x26= _0xa8e4x25[_0x9650[95]]+ _0x9650[96]+ _0xa8e4x26;if(_0xa8e4x25[_0x9650[32]]=== _0x9650[97]){return _0xa8e4x26}else {return getReportPath(_[_0x9650[88]](_0xa8e4x24,{id:_0xa8e4x25[_0x9650[32]]}),_0xa8e4x24,_0xa8e4x26)}}exports[_0x9650[98]]= function(_0xa8e4x10,_0xa8e4x11){return DefaultReport[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]],{include:[{all:true}]})[_0x9650[21]](function(_0xa8e4x15){if(!_0xa8e4x15){return _0xa8e4x11[_0x9650[26]](404)};return _0xa8e4x11[_0x9650[19]](_0xa8e4x15)})[_0x9650[18]](function(_0xa8e4x13){return handleError(_0xa8e4x11,_0xa8e4x13)})};exports[_0x9650[99]]= function(_0xa8e4x10,_0xa8e4x11){var _0xa8e4x28;return sequelize[_0x9650[104]](function(_0xa8e4x29){return DefaultReport[_0x9650[36]]({method:[_0x9650[35],{DefaultReportId:_0xa8e4x10[_0x9650[28]][_0x9650[27]]}]})[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]])[_0x9650[21]](function(_0xa8e4x15){if(!_0xa8e4x15){return _0xa8e4x11[_0x9650[26]](404)};var _0xa8e4x2a=_0xa8e4x15[_0x9650[54]];console[_0x9650[39]](_0xa8e4x2a);delete _0xa8e4x2a[_0x9650[27]];delete _0xa8e4x2a[_0x9650[100]];delete _0xa8e4x2a[_0x9650[101]];_0xa8e4x2a[_0x9650[32]]= _0xa8e4x10[_0x9650[102]][_0x9650[32]];_0xa8e4x28= _[_0x9650[103]](_0xa8e4x2a.Fields,_0x9650[54]);return CustomReport[_0x9650[94]](_0xa8e4x2a,{transaction:_0xa8e4x29})})[_0x9650[21]](function(_0xa8e4x15){return [_0xa8e4x15,_0xa8e4x28]})[_0x9650[44]](createCopyFields(_0xa8e4x29))})[_0x9650[21]](function(){return _0xa8e4x11[_0x9650[26]](201)})[_0x9650[18]](function(_0xa8e4x13){console[_0x9650[39]](_0xa8e4x13);return handleError(_0xa8e4x11,_0xa8e4x13)})};function createCopyFields(_0xa8e4x29){return function(_0xa8e4x15,_0xa8e4x2c){if(_0xa8e4x2c&& Array[_0x9650[60]](_0xa8e4x2c)&& _0xa8e4x2c[_0x9650[61]]){var _0xa8e4x2d=reportBuildUtils[_0x9650[105]](_0xa8e4x15[_0x9650[33]]);if(_0xa8e4x2d){var _0xa8e4x2e;return _0xa8e4x2d[_0x9650[121]]()[_0x9650[21]](function(_0xa8e4x2f){_0xa8e4x2e= _[_0x9650[106]](_0xa8e4x2f);var _0xa8e4x30=[];var _0xa8e4x31=_[_0x9650[108]](_0xa8e4x2c,_0x9650[107]);_[_0x9650[68]](_0xa8e4x31,function(_0xa8e4x32,_0xa8e4x1e){if(_0xa8e4x1e!== _0x9650[109]&& _0xa8e4x1e!== _0x9650[110]){_0xa8e4x32[0][_0x9650[113]][_0x9650[112]][_0x9650[69]](function(_0xa8e4x33){_0xa8e4x33[_0x9650[111]]= _0xa8e4x15[_0x9650[27]]});_0xa8e4x32[0][_0x9650[113]][_0x9650[31]]+= _0x9650[114]+ sr({length:5});_0xa8e4x30[_0x9650[115]](Metric[_0x9650[94]](_0xa8e4x32[0][_0x9650[113]][_0x9650[54]],{include:[{model:ReportField,as:_0x9650[112]}],transaction:_0xa8e4x29}))}else {_0xa8e4x32[_0x9650[69]](function(_0xa8e4x33){if(_[_0x9650[117]](_0xa8e4x2e,_0xa8e4x33[_0x9650[116]])|| _0xa8e4x33[_0x9650[118]]){_0xa8e4x33[_0x9650[111]]= _0xa8e4x15[_0x9650[27]];_0xa8e4x30[_0x9650[115]](ReportField[_0x9650[94]](_0xa8e4x33,{transaction:_0xa8e4x29}))}else {throw  new sequelize.Error(_0x9650[119]+ _0xa8e4x33[_0x9650[116]]+ _0x9650[120])}})}});return _0xa8e4x30})[_0x9650[42]]()}else {throw  new sequelize.Error(_0x9650[122])}}}}exports[_0x9650[94]]= function(_0xa8e4x10,_0xa8e4x11){return DefaultReport[_0x9650[94]](_0xa8e4x10[_0x9650[102]])[_0x9650[21]](function(_0xa8e4x15){return _0xa8e4x11[_0x9650[20]](201)[_0x9650[19]](_0xa8e4x15)})[_0x9650[18]](function(_0xa8e4x13){return handleError(_0xa8e4x11,_0xa8e4x13)})};exports[_0x9650[123]]= function(_0xa8e4x10,_0xa8e4x11){if(_0xa8e4x10[_0x9650[102]][_0x9650[27]]){delete _0xa8e4x10[_0x9650[102]][_0x9650[27]]};return DefaultReport[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]])[_0x9650[21]](function(_0xa8e4x15){if(!_0xa8e4x15){return _0xa8e4x11[_0x9650[26]](404)};var _0xa8e4x34=_[_0x9650[124]](_0xa8e4x15,_0xa8e4x10[_0x9650[102]]);return _0xa8e4x34[_0x9650[125]]()})[_0x9650[21]](function(_0xa8e4x15){return _0xa8e4x11[_0x9650[20]](200)[_0x9650[19]](_0xa8e4x15)})[_0x9650[18]](function(_0xa8e4x13){return handleError(_0xa8e4x11,_0xa8e4x13)})};exports[_0x9650[126]]= function(_0xa8e4x10,_0xa8e4x11){return DefaultReport[_0x9650[34]](_0xa8e4x10[_0x9650[28]][_0x9650[27]])[_0x9650[21]](function(_0xa8e4x15){if(!_0xa8e4x15){return _0xa8e4x11[_0x9650[26]](404)};return _0xa8e4x15[_0x9650[126]]()})[_0x9650[21]](function(){return _0xa8e4x11[_0x9650[26]](204)})[_0x9650[18]](function(_0xa8e4x13){return handleError(_0xa8e4x11,_0xa8e4x13)})};function handleError(_0xa8e4x11,_0xa8e4x13){return _0xa8e4x11[_0x9650[20]](500)[_0x9650[19]](_0xa8e4x13)}