function indexLevels(summary) {
    var parts = summary.getParts();
    parts = parts.map(indexPartLevels);

    return summary.set('parts', parts);
}
function indexLevels(summary) {
    var parts = summary.getParts();
    parts = parts.map(indexPartLevels);

    return summary.set('parts', parts);
}
function indexLevels ( summary ) { var parts = summary . getParts ( ) ; parts = parts . map ( indexPartLevels ) ; return summary . set ( 'parts' , parts ) ; }
Index all levels in the summary

@param {Summary}
@return {Summary}
Index all levels in the summary
index the levels of the given summary