/** * @module jobAssignmentHelper * @description * This module provides utility functions for handling job assignment types. * Currently, it includes a function to map lowercase job assignment codes to their corresponding human-readable job types. */ /** * Maps a lowercase job assignment code to its corresponding human-readable job type. * * @param {string} data - The lowercase job assignment code (e.g., "employee_pre"). * @returns {string} The human-readable job type (e.g., "Prep"). Returns an empty string if the code is unknown or if the input is null/undefined. */ const getJobAssignmentType = (data) => { switch (data) { case "employee_pre": return "Prep"; case "employee_body": return "Body"; case "employee_csr": return "CSR"; case "employee_refinish": return "Refinish"; default: return ""; } }; module.exports = { getJobAssignmentType };