easyappointments/assets/js/http/google_http_client.min.js

1 line
773 B
JavaScript
Executable File

"use strict";App.Http.Google=function(){return{getGoogleCalendars:function(providerId){var url=App.Utils.Url.siteUrl("google/get_google_calendars"),data={csrf_token:vars("csrf_token"),provider_id:providerId};return $.post(url,data)},selectGoogleCalendar:function(providerId,googleCalendarId){var url=App.Utils.Url.siteUrl("google/select_google_calendar"),data={csrf_token:vars("csrf_token"),provider_id:providerId,calendar_id:googleCalendarId};return $.post(url,data)},disableProviderSync:function(providerId){var url=App.Utils.Url.siteUrl("google/disable_provider_sync"),data={csrf_token:vars("csrf_token"),provider_id:providerId};return $.post(url,data)},syncWithGoogle:function(providerId){var url=App.Utils.Url.siteUrl("google/sync/"+providerId);return $.get(url)}}}();