const {getLeadsList, addLead, getAddLeadsData, getLeadById, editLead, deleteLeadNote, viewLead, deleteLead, 
    leadStatus,addLeadStatus,editLeadStatus,deleteLeadStatus, getLeadStatusById } = require("../controllers/leads");

const leadRoutes = [
    {
        method : "POST",
        url : "/webservice/leads/get-leads-list",
        handler : getLeadsList
    },
    {
        method : "POST",
        url : "/webservice/leads/add-lead",
        handler : addLead
    },
    {
        method : "POST",
        url : "/webservice/leads/get-add-lead-data",
        handler : getAddLeadsData
    },
    {
        method : "POST",
        url : "/webservice/leads/get-lead-by_id",
        handler : getLeadById
    },
    {
        method : "POST",
        url : "/webservice/leads/edit-lead",
        handler : editLead
    },
    {
        method : "POST",
        url : "/webservice/leads/delete-lead",
        handler : deleteLead
    },
    {
        method : "POST",
        url : "/webservice/leads/delete-lead-note",
        handler : deleteLeadNote
    },
    {
        method : "POST",
        url : "/webservice/leads/view-lead",
        handler : viewLead
    },
    {
        method : "POST",
        url : "/webservice/leads/lead-status",
        handler : leadStatus
    },
    {
        method : "POST",
        url : "/webservice/leads/add-lead-status",
        handler : addLeadStatus
    },
    {
        method : "POST",
        url : "/webservice/leads/get-lead-status-by-id",
        handler : getLeadStatusById
    },
    {
        method : "POST",
        url : "/webservice/leads/edit-lead-status",
        handler : editLeadStatus
    },
    {
        method : "POST",
        url : "/webservice/leads/delete-lead-status",
        handler : deleteLeadStatus
    },
];
 module.exports = leadRoutes;