"use strict";App.Http.Appointments=function(){function store(appointment){var url=App.Utils.Url.siteUrl("appointments/store"),data={csrf_token:vars("csrf_token"),appointment:appointment};return $.post(url,data)}function update(appointment){var url=App.Utils.Url.siteUrl("appointments/update"),data={csrf_token:vars("csrf_token"),appointment:appointment};return $.post(url,data)}return{save:function(appointment){return appointment.id?update(appointment):store(appointment)},store:store,update:update,destroy:function(appointmentId){var url=App.Utils.Url.siteUrl("appointments/destroy"),data={csrf_token:vars("csrf_token"),appointment_id:appointmentId};return $.post(url,data)},search:function(keyword){var limit=1