def getEnvPrefixByBranch(branch) {
  switch(branch) {
    case "master":
    case "mvp-new-apollo-portal":
    case "mvp-old-apollo-portal":
    case "production-auth0":
    case "production":
      return "prod"
    case "staging":
      return "stage"
    case "develop":
      return "dev"
    case "uat":
      return "uat"
    case "qa":
      return "dev"
    default:
      return "NULL"
  }
}

def getAuth0DomainByBranch(branch) {
  switch(branch) {
    case "master":
    case "production-auth0":
    case "production":
    case "uat":
      return "accounts.apollo.stream"
    default:
      return "dev-login.apollo.stream"
  }
}

def getAuth0ClientIdByBranch(branch) {
  switch(branch) {
    case "master":
    case "production-auth0":
    case "production":
    case "uat":
      return "ztpBtY1FDTEXhUICU7NTlZipqe5CjBhP"
    default:
      return "QQu4ikMpMVw5a12GFTXicuCP1YtMn3JS"
  }
}

def getAuth0ApiAudienceByBranch(branch) {
  return "https://apollo-private-api/"
}

def getDuplicationApiUriByBranch(branch) {
  switch(branch) {
    case "master":
    case "production-auth0":
    case "production":
    case "uat":
      return "https://playlists-sync.apollo.stream"
    default:
      return "https://dev-playlists-sync.apollo.stream"
  }
}