{"size": 460, "ext": "js", "max_stars_repo_path": "adp-backend-v5/model/server_controllers/bpmn-controller.js", "max_stars_repo_name": "FDA/Healthy-Citizen-Code", "max_stars_repo_stars_event_min_datetime": "2018-08-22T21:08:52.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-22T03:01:23.000Z", "max_issues_repo_path": "adp-backend-v5/model/server_controllers/bpmn-controller.js", "max_issues_repo_name": "FDA/Healthy-Citizen-Code", "max_issues_repo_issues_event_min_datetime": "2018-11-26T18:17:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T15:43:41.000Z", "max_forks_repo_path": "adp-backend-v5/model/server_controllers/bpmn-controller.js", "max_forks_repo_name": "FDA/Healthy-Citizen-Code", "max_forks_repo_forks_event_min_datetime": "2020-04-10T18:58:06.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-03T19:12:55.000Z"}
{"max_stars_count": 5, "max_issues_count": 57, "max_forks_count": 2, "avg_line_length": 27.0588235294, "max_line_length": 104, "alphanum_fraction": 0.6565217391}
const { getServicesScheme } = require('../../lib/queue/background-jobs/bpmn/services');

module.exports = () => {
  const m = {};

  m.init = async (appLib) => {
    m.bpmnServicesScheme = getServicesScheme();
    appLib.addRoute('get', `/getBpmnServicesScheme`, [appLib.isAuthenticated, m.getBpmnServicesScheme]);
  };

  m.getBpmnServicesScheme = async (req, res) => {
    return res.json({ success: true, data: m.bpmnServicesScheme });
  };

  return m;
};
