2021-04-10 12:02:35 +00:00
|
|
|
export function getIntegrationName(name: String) {
|
|
|
|
switch(name) {
|
|
|
|
case "google_calendar":
|
|
|
|
return "Google Calendar";
|
2021-04-21 22:10:48 +00:00
|
|
|
case "office365_calendar":
|
|
|
|
return "Office 365 Calendar";
|
2021-06-12 23:24:13 +00:00
|
|
|
case "zoom":
|
|
|
|
return "Zoom";
|
2021-04-10 12:02:35 +00:00
|
|
|
default:
|
|
|
|
return "Unknown";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getIntegrationType(name: String) {
|
2021-04-21 22:10:48 +00:00
|
|
|
if (name.endsWith('_calendar')) {
|
|
|
|
return 'Calendar';
|
2021-04-10 12:02:35 +00:00
|
|
|
}
|
2021-04-21 22:10:48 +00:00
|
|
|
return "Unknown";
|
|
|
|
}
|