function convertNumbersToString()

in transcriptTransformationScript.js [46:66]


function convertNumbersToString(currEntry) {
    if (currEntry['type'] === 'message') {
        if (currEntry.hasOwnProperty("attachments")) {
            for (var attachment of currEntry["attachments"]) {
                if (attachment.hasOwnProperty("content") && attachment["content"].hasOwnProperty("body")) {
                    for (var bodyItem of attachment["content"]["body"]) {
                        if (bodyItem.hasOwnProperty("columns")) {
                            convertColumnsWidthToString(bodyItem);
                        } else if (bodyItem.hasOwnProperty("items")) {
                            for (var item of bodyItem["items"]) {
                                if (item.hasOwnProperty("columns")) {
                                    convertColumnsWidthToString(item);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}