const { createCampaigns, getAllcampaigns, getCampaignById, editCamapaign, deleteCampaign, createCustomContactBuilder, addCampaignForm, getAllCampaignFormByID, getCampaignFormDataById, deleteCampaignForm, submitCampaignForm, getFormUserByid } = require("../controllers/campaign");

const campaignRoutes = [
    {
        method : "POST",
        url : "/webservice/campaign/create-new",
        handler : createCampaigns
    },
    {
        method : "POST",
        url : "/webservice/campaign/campaign-list",
        handler : getAllcampaigns
    },
    {
        method : "POST",
        url : "/webservice/campaign/get-campaign-by-id",
        handler : getCampaignById
    },
    {
        method : "POST",
        url : "/webservice/campaign/edit-campaign",
        handler : editCamapaign
    },
    {
        method : "POST",
        url : "/webservice/campaign/delete-campaign",
        handler : deleteCampaign
    },
    {
        method : "POST",
        url : "/webservice/campaign/create-custom-form",
        handler : addCampaignForm
    },
    {
        method : "POST",
        url : "/webservice/campaign/get-all-form-by-id",
        handler : getAllCampaignFormByID
    },
    {
        method : "POST",
        url : "/webservice/campaign/get-form-data-by-id",
        handler : getCampaignFormDataById
    },
    {
        method : "POST",
        url : "/webservice/campaign/delete-form",
        handler : deleteCampaignForm
    },
    {
        method : "POST",
        url : "/webservice/campaign/submit-form",
        handler : submitCampaignForm
    },
    {
        method : "POST",
        url : "/webservice/campaign/form-users",
        handler : getFormUserByid
    },
    
]
module.exports=campaignRoutes;