import {body,oneOf} from "express-validator"; export const finavigatorServiceChatReqValidators = { create:() => [body("agent").exists(),body("client").exists(),], update:() => [oneOf([ body("agent").exists(), body("client").exists(), body("msg").exists(), body("note").exists(),])], updateMany:() => [ body("ids").exists(), body("updates").exists(), oneOf([ body("updates.agent").exists(), body("updates.client").exists(), body("updates.msg").exists(), body("updates.note").exists(),])], removeMany:() => [body("ids").exists()], };