text: const logsServices = require('../services/logs.services')
  
  module.exports = {
    submitSubmission(req, res, next) {
      logsServices
        .postSubmitSubmission(req)
        .then((result) => res.json(result))
        .catch((err) => next(err))
    },
  
    rejectSubmission(req, res, next) {
      logsServices
        .postRejectSubmission(req)
        .then((result) => res.json(result))
        .catch((err) => next(err))
    },
  
    approveSubmission(req, res, next) {
      logsServices
        .postApproveSubmission(req)
        .then((result) => res.json(result))
        .catch((err) => next(err))
    },
  
    processSubmission(req, res, next) {
      logsServices
        .postProcessSubmission(req)
        .then((result) => res.json(result))
        .catch((err) => next(err))
    },
  
    finishSubmission(req, res, next) {
      logsServices
        .postFinishSubmission(req)
        .then((result) => res.json(result))
        .catch((err) => next(err))
    },
  
    postLogsDocuments(req, res, next) {
      logsServices
        .postLogsDocuments(req)
        .then((result) => res.json(result))
        .catch((err) => next(err))
    },
  }
  