letters = {
const objects = nodegoat_api_output['data']['objects'];
const dates = {};
for (const object_id in objects) {
const object = objects[object_id];
if (!object['object_definitions']['163']) {
continue;
}
const date = object['object_definitions']['163']['object_definition_value'];
if (!dates[date]) {
dates[date] = {'amount': 1, 'names': [object['object']['object_name']], 'date': new Date(date)}
} else {
dates[date]['amount']++;
dates[date]['names'].push(object['object']['object_name']);
}
}
return Object.values(dates);
}