/var/www/greso.tech/server/nsm/responseModels/branch
Edit: /var/www/greso.tech/server/nsm/responseModels/branch/branchList.model.js (542B)
module.exports = class BranchListModel {
constructor({ branches, count, page, time }) {
this.list = branches
? branches.map((branch) => {
const { id, agent, name, short_name, dba, description, usdot, mc, site, email, phone, users, companyId, addressId, address, company } = branch
return { id, agent, name, short_name, dba, description, usdot, mc, site, email, phone, users, companyId, addressId, address, company }
})
: []
this.count = count || 0
this.page = page ? page : 1
this.time = time ? time : 0
}
}