import { replyToAction } from '../../../bus/publishActionReply.js' export const actions = { async action_TIME(action, payload, reqid, sender, roles) { replyToAction(this, { action, reqid, sender, success: true, payload: { gpsTime: new Date().toISOString(), redisTime: await this.redisClient.time(), }, }) }, async action_RELOADCONFIG(action, payload, reqid, sender, roles) { this.reloadAccessRights() replyToAction(this, { action, reqid, sender, success: true }) }, async action_GETCONFIG(action, payload, reqid, sender, roles) { replyToAction(this, { action, reqid, sender, success: true, payload: this.getAccessRights(), }) }, }