You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
easyappointments-archive/assets/js/backend_calendar_api.min.js

1 line
1.2 KiB

window.BackendCalendarApi=window.BackendCalendarApi||{},function(a){"use strict";a.saveAppointment=function(a,n,e,i){var o=GlobalVariables.baseUrl+"/index.php/backend_api/ajax_save_appointment",l={csrfToken:GlobalVariables.csrfToken,appointment_data:JSON.stringify(a)};n&&(l.customer_data=JSON.stringify(n)),$.post(o,l).done(function(a){e&&e(a)}).fail(function(a,n,e){i&&i()})},a.saveUnavailable=function(a,n,i){var e=GlobalVariables.baseUrl+"/index.php/backend_api/ajax_save_unavailable",o={csrfToken:GlobalVariables.csrfToken,unavailable:JSON.stringify(a)};$.post(e,o).done(function(a){n&&n(a)}).fail(function(a,n,e){i&&i()})},a.saveWorkingPlanException=function(a,n,e,i,o){var l=GlobalVariables.baseUrl+"/index.php/backend_api/ajax_save_working_plan_exception",r={csrfToken:GlobalVariables.csrfToken,date:a,working_plan_exception:n,provider_id:e};$.post(l,r).done(function(a){i&&i(a)}).fail(function(a,n,e){o&&o()})},a.deleteWorkingPlanException=function(a,n,e,i){var o=GlobalVariables.baseUrl+"/index.php/backend_api/ajax_delete_working_plan_exception",l={csrfToken:GlobalVariables.csrfToken,date:a,provider_id:n};$.post(o,l).done(function(a){e&&e(a)}).fail(function(a,n,e){i&&i()})}}(window.BackendCalendarApi);