const {getAllCalls, getAllSms} = require("../controllers/crmcalls");
const { getLeadPhones } = require("../models/admin");

const crmCallRoutes = [
  {
    method: "POST",
    url: "/webservice/calls/get-all-calls",
    handler: getAllCalls,
  },
  {
    method : "POST",
    url: "/webservice/admin/get-lead-phones",
    handler:getLeadPhones
   },
   {
    method: "POST",
    url: "/webservice/crm/get-all-sms",
    handler: getAllSms,
  },
];

module.exports = crmCallRoutes;
