1 var _0x3068=["\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","\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","\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","\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","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\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","\x63\x72\x65\x61\x74\x65","\x28","\x72\x75\x6C\x65\x73","\x20","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x67\x72\x6F\x75\x70","\x66\x69\x65\x6C\x64","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x20\x27","\x4C\x49\x4B\x45","\x25","\x27","\x29","\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","\x69\x73\x41\x72\x72\x61\x79","\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","\x69\x6E\x63\x6C\x75\x64\x65\x73","\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"];_0x3068[0];var _=require(_0x3068[1]);var util=require(_0x3068[2]);var DefaultReport=require(_0x3068[4])[_0x3068[3]];var ReportField=require(_0x3068[4])[_0x3068[5]];var Metric=require(_0x3068[4])[_0x3068[6]];var sequelize=require(_0x3068[4])[_0x3068[7]];var CustomReport=require(_0x3068[4])[_0x3068[8]];var ExtractedReport=require(_0x3068[4])[_0x3068[9]];var extractUtils=require(_0x3068[10]);var reportBuildUtils=require(_0x3068[11]);var Util=require(_0x3068[12]);var moment=require(_0x3068[13]);var cp=require(_0x3068[14]);var sr=require(_0x3068[15]);exports[_0x3068[16]]= function(_0x6986xf,_0x6986x10,_0x6986x11){return DefaultReport[_0x3068[23]](Util[_0x3068[22]](_0x6986xf[_0x3068[21]]))[_0x3068[20]](function(_0x6986x13){_0x6986x10[_0x3068[19]](200)[_0x3068[18]](_0x6986x13)})[_0x3068[17]](function(_0x6986x12){return handleError(_0x6986x10,_0x6986x12)})};exports[_0x3068[24]]= function(_0x6986xf,_0x6986x10){return DefaultReport[_0x3068[35]]({method:[_0x3068[34],{DefaultReportId:_0x6986xf[_0x3068[27]][_0x3068[26]]}]})[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]],{attributes:[_0x3068[28],_0x3068[29],_0x3068[30],_0x3068[31],_0x3068[32]]})[_0x3068[20]](function(_0x6986x14){if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};return _0x6986x10[_0x3068[18]](_0x6986x14)})[_0x3068[17]](function(_0x6986x12){return handleError(_0x6986x10,_0x6986x12)})};exports[_0x3068[36]]= function(_0x6986xf,_0x6986x10){return Promise[_0x3068[39]]([])[_0x3068[20]](getQuery(_0x6986xf,_0x6986x10))[_0x3068[20]](function(_0x6986x15){_0x6986x10[_0x3068[19]](200)[_0x3068[18]]({query:_0x6986x15})})[_0x3068[17]](function(_0x6986x12){console[_0x3068[38]](_0x3068[37],_0x6986x12)})};function getQuery(_0x6986xf,_0x6986x10){var _0x6986x17;return function(){return DefaultReport[_0x3068[35]](_0x3068[55])[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]])[_0x3068[20]](function(_0x6986x14){console[_0x3068[38]](_0x3068[44]);if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};if(_0x6986xf[_0x3068[21]][_0x3068[45]]&& _0x6986xf[_0x3068[21]][_0x3068[45]]=== _0x3068[46]){_0x6986xf[_0x3068[21]][_0x3068[47]]= moment()[_0x3068[49]](_0x3068[48]);_0x6986xf[_0x3068[21]][_0x3068[50]]= moment()[_0x3068[49]](_0x3068[48]);_0x6986x14[_0x3068[51]][_0x3068[32]]= _0x6986x14[_0x3068[51]][_0x3068[32]][_0x3068[54]](_0x3068[52],_0x3068[53])};delete _0x6986xf[_0x3068[21]][_0x3068[45]];_0x6986x17= _0x6986x14[_0x3068[51]];return _0x6986x17[_0x3068[32]]})[_0x3068[20]](reportBuildUtils[_0x3068[43]](_0x6986xf[_0x3068[42]]))[_0x3068[20]](function(_0x6986x18){return [_0x6986x18,_0x6986x17]})[_0x3068[41]](reportBuildUtils[_0x3068[40]](_0x6986xf[_0x3068[21]]))}}exports[_0x3068[56]]= function(_0x6986xf,_0x6986x10){var _0x6986x19;return Promise[_0x3068[39]]([])[_0x3068[20]](getQuery(_0x6986xf,_0x6986x10))[_0x3068[20]](function(_0x6986x15){return sequelize[_0x3068[21]](_0x6986x15,{type:sequelize[_0x3068[67]][_0x3068[66]]})})[_0x3068[20]](function(_0x6986x1a){_0x6986x19= _0x6986x1a[_0x3068[57]];if(_0x6986xf[_0x3068[21]][_0x3068[58]]){_0x6986x1a= _(_0x6986x1a)[_0x3068[62]](_0x6986xf[_0x3068[21]][_0x3068[61]]|| 0)[_0x3068[60]](_0x6986xf[_0x3068[21]][_0x3068[58]])[_0x3068[59]]()};_[_0x3068[65]](_0x6986x1a,function(_0x6986x1b){_[_0x3068[64]](_0x6986x1b,function(_0x6986x1c,_0x6986x1d){if(_0x6986x1c instanceof Date){_0x6986x1b[_0x6986x1d]= moment(_0x6986x1c)[_0x3068[49]](_0x3068[63]).toString()}})});_0x6986x10[_0x3068[19]](200)[_0x3068[18]]({rows:_0x6986x1a,count:_0x6986x19})})[_0x3068[17]](function(_0x6986x12){console[_0x3068[38]](_0x6986x12);return handleError(_0x6986x10,_0x6986x12)})};exports[_0x3068[68]]= function(_0x6986xf,_0x6986x10){docExtract(_0x6986xf,_0x6986x10,_0x3068[69])};exports[_0x3068[70]]= function(_0x6986xf,_0x6986x10){docExtract(_0x6986xf,_0x6986x10,_0x3068[71])};function docExtract(_0x6986xf,_0x6986x10,_0x6986x1f){DefaultReport[_0x3068[35]](_0x3068[55])[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]])[_0x3068[20]](function(_0x6986x14){if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};if(_0x6986xf[_0x3068[21]][_0x3068[45]]&& _0x6986xf[_0x3068[21]][_0x3068[45]]=== _0x3068[46]){_0x6986xf[_0x3068[21]][_0x3068[47]]= moment()[_0x3068[49]](_0x3068[48]);_0x6986xf[_0x3068[21]][_0x3068[50]]= moment()[_0x3068[49]](_0x3068[48]);_0x6986x14[_0x3068[51]][_0x3068[32]]= _0x6986x14[_0x3068[51]][_0x3068[32]][_0x3068[54]](_0x3068[52],_0x3068[53])};delete _0x6986xf[_0x3068[21]][_0x3068[45]];return [_0x6986x14,ExtractedReport[_0x3068[82]]({name:_0x6986x14[_0x3068[30]],startDate:_0x6986xf[_0x3068[21]][_0x3068[47]]|| null,endDate:_0x6986xf[_0x3068[21]][_0x3068[50]]|| null,output:_0x6986x1f,UserId:_0x6986xf[_0x3068[42]][_0x3068[26]]})]})[_0x3068[41]](function(_0x6986x14,_0x6986x20){var _0x6986x21=cp[_0x3068[73]](__dirname+ _0x3068[72]);_0x6986x21[_0x3068[76]](_0x3068[79],function(_0x6986x22){console[_0x3068[38]](_0x3068[80],_0x6986x22);_0x6986x21[_0x3068[81]]()})[_0x3068[76]](_0x3068[77],function(){console[_0x3068[38]](_0x3068[78])})[_0x3068[76]](_0x3068[74],function(_0x6986x12){console[_0x3068[38]](_0x3068[75],_0x6986x12)});_0x6986x21[_0x3068[18]]({report:_0x6986x14,query:_0x6986xf[_0x3068[21]],extractedId:_0x6986x20[_0x3068[26]],user:_0x6986xf[_0x3068[42]],type:_0x6986x1f})})[_0x3068[17]](function(_0x6986x12){console[_0x3068[38]](_0x6986x12);return handleError(_0x6986x10,_0x6986x12)});return _0x6986x10[_0x3068[25]](200)}function getConditions(_0x6986x24){if(!_0x6986x24){return _0x3068[53]};for(var _0x6986x25=_0x3068[83],_0x6986x26=0;_0x6986x26< _0x6986x24[_0x3068[84]][_0x3068[57]];_0x6986x26++){_0x6986x26> 0&& (_0x6986x25+= _0x3068[85]+ _0x6986x24[_0x3068[86]]+ _0x3068[85]);_0x6986x25+= _0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[87]]?getConditions(_0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[87]]):_0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[88]]+ _0x3068[85]+ _0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[89]]+ _0x3068[90]+ (_0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[89]]=== _0x3068[91]?_0x3068[92]+ _0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[59]]+ _0x3068[92]:_0x6986x24[_0x3068[84]][_0x6986x26][_0x3068[59]])+ _0x3068[93]};return _0x6986x25+ _0x3068[94]}exports[_0x3068[95]]= function(_0x6986xf,_0x6986x10){return DefaultReport[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]],{include:[{all:true}]})[_0x3068[20]](function(_0x6986x14){if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};return _0x6986x10[_0x3068[18]](_0x6986x14)})[_0x3068[17]](function(_0x6986x12){return handleError(_0x6986x10,_0x6986x12)})};exports[_0x3068[96]]= function(_0x6986xf,_0x6986x10){var _0x6986x27;return sequelize[_0x3068[101]](function(_0x6986x28){return DefaultReport[_0x3068[35]]({method:[_0x3068[34],{DefaultReportId:_0x6986xf[_0x3068[27]][_0x3068[26]]}]})[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]])[_0x3068[20]](function(_0x6986x14){if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};var _0x6986x29=_0x6986x14[_0x3068[51]];console[_0x3068[38]](_0x6986x29);delete _0x6986x29[_0x3068[26]];delete _0x6986x29[_0x3068[97]];delete _0x6986x29[_0x3068[98]];_0x6986x29[_0x3068[31]]= _0x6986xf[_0x3068[99]][_0x3068[31]];_0x6986x27= _[_0x3068[100]](_0x6986x29.Fields,_0x3068[51]);return CustomReport[_0x3068[82]](_0x6986x29,{transaction:_0x6986x28})})[_0x3068[20]](function(_0x6986x14){return [_0x6986x14,_0x6986x27]})[_0x3068[41]](createCopyFields(_0x6986x28))})[_0x3068[20]](function(){return _0x6986x10[_0x3068[25]](201)})[_0x3068[17]](function(_0x6986x12){console[_0x3068[38]](_0x6986x12);return handleError(_0x6986x10,_0x6986x12)})};function createCopyFields(_0x6986x28){return function(_0x6986x14,_0x6986x2b){if(_0x6986x2b&& Array[_0x3068[102]](_0x6986x2b)&& _0x6986x2b[_0x3068[57]]){var _0x6986x2c=reportBuildUtils[_0x3068[103]](_0x6986x14[_0x3068[32]]);if(_0x6986x2c){var _0x6986x2d;return _0x6986x2c[_0x3068[117]]()[_0x3068[20]](function(_0x6986x2e){_0x6986x2d= _[_0x3068[104]](_0x6986x2e);var _0x6986x2f=[];var _0x6986x30=_[_0x3068[106]](_0x6986x2b,_0x3068[105]);_[_0x3068[64]](_0x6986x30,function(_0x6986x31,_0x6986x1d){if(_0x6986x1d!== _0x3068[107]&& _0x6986x1d!== _0x3068[108]){_0x6986x31[0][_0x3068[111]][_0x3068[110]][_0x3068[65]](function(_0x6986x32){_0x6986x32[_0x3068[109]]= _0x6986x14[_0x3068[26]]});_0x6986x31[0][_0x3068[111]][_0x3068[30]]+= _0x3068[112]+ sr({length:5});_0x6986x2f[_0x3068[113]](Metric[_0x3068[82]](_0x6986x31[0][_0x3068[111]][_0x3068[51]],{include:[{model:ReportField,as:_0x3068[110]}],transaction:_0x6986x28}))}else {_0x6986x31[_0x3068[65]](function(_0x6986x32){if(_[_0x3068[114]](_0x6986x2d,_0x6986x32[_0x3068[88]])){_0x6986x32[_0x3068[109]]= _0x6986x14[_0x3068[26]];_0x6986x2f[_0x3068[113]](ReportField[_0x3068[82]](_0x6986x32,{transaction:_0x6986x28}))}else {throw new sequelize.Error(_0x3068[115]+ _0x6986x32[_0x3068[88]]+ _0x3068[116])}})}});return _0x6986x2f})[_0x3068[39]]()}else {throw new sequelize.Error(_0x3068[118])}}}}exports[_0x3068[82]]= function(_0x6986xf,_0x6986x10){return DefaultReport[_0x3068[82]](_0x6986xf[_0x3068[99]])[_0x3068[20]](function(_0x6986x14){return _0x6986x10[_0x3068[19]](201)[_0x3068[18]](_0x6986x14)})[_0x3068[17]](function(_0x6986x12){return handleError(_0x6986x10,_0x6986x12)})};exports[_0x3068[119]]= function(_0x6986xf,_0x6986x10){if(_0x6986xf[_0x3068[99]][_0x3068[26]]){delete _0x6986xf[_0x3068[99]][_0x3068[26]]};return DefaultReport[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]])[_0x3068[20]](function(_0x6986x14){if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};var _0x6986x33=_[_0x3068[120]](_0x6986x14,_0x6986xf[_0x3068[99]]);return _0x6986x33[_0x3068[121]]()})[_0x3068[20]](function(_0x6986x14){return _0x6986x10[_0x3068[19]](200)[_0x3068[18]](_0x6986x14)})[_0x3068[17]](function(_0x6986x12){return handleError(_0x6986x10,_0x6986x12)})};exports[_0x3068[122]]= function(_0x6986xf,_0x6986x10){return DefaultReport[_0x3068[33]](_0x6986xf[_0x3068[27]][_0x3068[26]])[_0x3068[20]](function(_0x6986x14){if(!_0x6986x14){return _0x6986x10[_0x3068[25]](404)};return _0x6986x14[_0x3068[122]]()})[_0x3068[20]](function(){return _0x6986x10[_0x3068[25]](204)})[_0x3068[17]](function(_0x6986x12){return handleError(_0x6986x10,_0x6986x12)})};function handleError(_0x6986x10,_0x6986x12){return _0x6986x10[_0x3068[19]](500)[_0x3068[18]](_0x6986x12)}