const {getAllWorkflows, ViewOnboardWorkflow, addWorkFlow, loadSidePanelForAddWorkFlow, createDocumentRequest, saveStages, deletWorkFlow, editWorkFlow, fetchWorkFlowById, onboardProcess, reviewOnboard, teamProcess, clientOnboardFormUpdate, requestOnboardFormUpdate, TeamOnboardFormUpdate, ViewOnboardStageData, getAllClientFacingWorkflows, duplicateWorkFlow, getAllProductionWorkflows, getAllProductWorkflows, getAllServicesWorkflows, getAllServiceWorkflows} = require("../controllers/onboard")
const { getStagePartners, getAllClientFacingWorkflow, getAllTeamFacingWorkflow } = require("../models/onboard")

const onboardRoutes=[
    {
        method : "POST",
        url : "/webservice/onboard/get-all-workflows", 
        handler : getAllWorkflows
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-production-workflows", 
        handler : getAllProductionWorkflows
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-service-workflows", 
        handler : getAllServicesWorkflows
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-client-facing-workflows", 
        handler : getAllClientFacingWorkflow
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-team-facing-workflows", 
        handler : getAllTeamFacingWorkflow
    },
    {
        method:'POST',
        url:"/webservice/view-onboard",
        handler:ViewOnboardWorkflow
    },
    {
     method:'POST',
     url:"/webservice/onboard/add-workflow",
     handler:addWorkFlow
    },
  
    {
        method:'POST',
        url:'/webservice/onboard/load-sidepanel',
        handler:loadSidePanelForAddWorkFlow
    },
    {
        method:'POST',
        url:'/webservice/onboard/add-new-document',
        handler:createDocumentRequest
    },
    {
        method:'POST',
        url:'/webservice/onboard/save-stages',
        handler:saveStages
    },
    {
        method:'POST',
        url:'/webservice/onboard/delete-workflow',
        handler:deletWorkFlow
    },
    {
        method:'POST',
        url:"/webservice/onboard/edit-workflow",
        handler:editWorkFlow
    },
    {
        method:'POST',
        url:"/webservice/onboard/duplicate-workflow",
        handler:duplicateWorkFlow
       },
    {
        method:'POST',
        url:"/webservice/onboard/fetch-workflow-id",
        handler:fetchWorkFlowById,
    },
    {
        method:'POST',
        url:"/webservice/onboard/process",
        handler:onboardProcess,
    },
    {
        method:'POST',
        url:"/webservice/onboard/team-process",
        handler:teamProcess,
    },
    {
        method:'POST',
        url:"/webservice/onboard/review-onboard",
        handler:reviewOnboard,
    },
    {
        method:'POST',
        url:"/webservice/onboard/onboard-stages-list",
        handler:getStagePartners,
    },
    {
        method:'POST',
        url:"/webservice/onboard/update-data",
        handler:clientOnboardFormUpdate,
    },
    {
        method:'POST',
        url:"/webservice/onboard/update-data-team",
        handler:TeamOnboardFormUpdate,
    },
    {
        method:'POST',
        url:"/webservice/onboard/update-request-workflow",
        handler:requestOnboardFormUpdate,
    },
    {
        method:'POST',
        url:"/webservice/onboard/view-onboard-stage-data",
        handler:ViewOnboardStageData,
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-workflows-client", 
        handler : getAllClientFacingWorkflows
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-workflows-products", 
        handler : getAllProductWorkflows
    },
    {
        method : "POST",
        url : "/webservice/onboard/get-all-workflows-services", 
        handler : getAllServiceWorkflows
    },
    
    
]

module.exports = onboardRoutes