export function getMapRoute(assetId) {
    let route = "map";
    if (assetId) {
        route += "/" + assetId;
    }
    return route;
}
export function getAssetsRoute(editMode, assetIds) {
    let route = "assets/" + (editMode ? "true" : "false");
    if (assetIds) {
        route += "/" + assetIds;
    }
    return route;
}
export function getInsightsRoute(editMode, dashboardId) {
    let route = "insights/" + (editMode ? "true" : "false");
    if (dashboardId) {
        route += "/" + dashboardId;
    }
    return route;
}
export function getUsersRoute(userId) {
    let route = "users";
    if (userId) {
        route += "/" + userId;
    }
    return route;
}
export function getNewUserRoute(serviceAccount) {
    let route = "users";
    if (serviceAccount != undefined) {
        let type = (serviceAccount ? 'serviceuser' : 'regular');
        route += "/new/" + type;
    }
    return route;
}
export function getAlarmsRoute(alarmId) {
    let route = "alarms";
    if (alarmId) {
        route += "/" + alarmId;
    }
    return route;
}
export function getServicesRoute(serviceId) {
    let route = "services";
    if (serviceId) {
        route += "/" + serviceId;
    }
    return route;
}
//# sourceMappingURL=routes.js.map