function enableReporting(reportingConfig,start,rulesToEnable){var i=void 0;if(rulesToEnable.length){rulesToEnable.forEach(function(rule){for(i=reportingConfig.length-1;i>=0;i--){if(!reportingConfig[i].end&&reportingConfig[i].rule===rule){reportingConfig[i].end=start;break;}}});}else{// find all previous disabled locations if they was started as list of rules
var prevStart=void 0;for(i=reportingConfig.length-1;i>=0;i--){if(prevStart&&prevStart!==reportingConfig[i].start){break;}if(!reportingConfig[i].end){reportingConfig[i].end=start;prevStart=reportingConfig[i].start;}}}}
Add data to reporting configuration to enable reporting for list of rules
starting from start location
@param  {Object[]} reportingConfig Current reporting configuration
@param  {Object} start Position to start
@param  {string[]} rulesToEnable List of rules
@returns {void}