/var/www/greso.tech/server/nsm/responseModels/branch
NameSizeModeActions
branch.model.js9560644editdlrm
branchList.model.js5420644editdlrm
branchShort.model.js4670644editdlrm
branchUsersList.model.js7530644editdlrm
branchUsersShort.model.js4240644editdlrm
Edit: /var/www/greso.tech/server/nsm/responseModels/branch/branch.model.js (956B)
let { AddressModel, UserModel } = {} module.exports = class BranchModel { constructor( { id, active, name, short_name, dba, description, usdot, mc, site, email, phone, users, company, companyId, addressId, address, }, time, discount ) { AddressModel = require('../address/address.model') UserModel = require('../user/user.model') this.id = id || '' this.active = active this.name = name || '' this.short_name = short_name || '' this.dba = dba || '' this.description = description || '' this.usdot = usdot || '' this.mc = mc || '' this.site = site || '' this.email = email || '' this.phone = phone || '' this.company = company || null this.companyId = companyId || '' this.addressId = addressId || '' this.address = address ? new AddressModel(address) : null this.users = users ? users.map((user) => { return new UserModel(user) }) : [] } }