# This file contains static values.

####################################
# Multi region data center settings
####################################

# regions for data hosting
aws_europe_paris = 'aws-europe-paris'
aws_us_ohio = 'aws-us-ohio'

base_domain = 'taskcallapp.com'
domain_europe = 'taskcallapp.com'
domain_us = 'us.taskcallapp.com'

regional_urls = {
    aws_europe_paris: {
        'redirect_base': 'https://app.taskcallapp.com',
        'rest_api_base': 'https://api.taskcallapp.com',
        'redirect_info_site': 'https://taskcallapp.com',
        'allowed_hosts': ["app.taskcallapp.com", "35.180.104.232", "127.0.0.1"],
        'static_url': 'https://app.taskcallapp.com/',
        'domain': domain_europe,
        'incidents_api_base_url': 'https://incidents-api.taskcallapp.com',
        'itsm_base_url': 'https://{0}.itsm.taskcallapp.com'
    },
    aws_us_ohio: {
        'redirect_base': 'https://app.us.taskcallapp.com',
        'rest_api_base': 'https://api.us.taskcallapp.com',
        'redirect_info_site': 'https://taskcallapp.com',
        'allowed_hosts': ["app.us.taskcallapp.com", "3.20.15.142", "127.0.0.1"],
        'static_url': 'https://app.us.taskcallapp.com/',
        'domain': domain_us,
        'incidents_api_base_url': 'https://incidents-api.us.taskcallapp.com',
        'itsm_base_url': 'https://{0}.itsm.us.taskcallapp.com'
    }
}

regional_test_server_urls = {
    aws_europe_paris: {
        'redirect_base': 'https://s1vrqp-test-app-server.taskcallapp.com',
        'rest_api_base': 'https://khghc6-test-rest-server.taskcallapp.com',
        'redirect_info_site': 'https://taskcallapp.com',
        'allowed_hosts': ["s1vrqp-test-app-server.taskcallapp.com"],
        'static_url': 'https://s1vrqp-test-app-server.taskcallapp.com/',
        'domain': domain_europe,
        'incidents_api_base_url': 'https://incidents-api.taskcallapp.com',
        'itsm_base_url': 'https://{0}.s1vrqp-test-itsm-server.taskcallapp.com'
    },
    aws_us_ohio: {
        'redirect_base': 'https://s1vrqp-test-app-server.us.taskcallapp.com',
        'rest_api_base': 'https://khghc6-test-rest-server.us.taskcallapp.com',
        'redirect_info_site': 'https://taskcallapp.com',
        'allowed_hosts': ["s1vrqp-test-app-server.us.taskcallapp.com"],
        'static_url': 'https://s1vrqp-test-app-server.us.taskcallapp.com/',
        'domain': domain_us,
        'incidents_api_base_url': 'https://incidents-api.us.taskcallapp.com',
        'itsm_base_url': 'https://{0}.s1vrqp-test-itsm-server.us.taskcallapp.com'
    }
}

regional_test_mode_urls = {
    aws_europe_paris: {
        'redirect_base': 'http://127.0.0.1:8000',
        'rest_api_base': 'http://127.0.0.1:9000',
        'redirect_info_site': 'http://127.0.0.1:7000',
        'allowed_hosts': ["127.0.0.1"],
        'static_url': 'http://127.0.0.1:8000/',
        'incidents_api_base_url': 'https://incidents-api.us.taskcallapp.com',
        'itsm_base_url': 'https://{0}.itsm.taskcallapp.com'
    },
    aws_us_ohio: {
        'redirect_base': 'http://127.0.0.1:8100',
        'rest_api_base': 'http://127.0.0.1:9000',
        'redirect_info_site': 'http://127.0.0.1:7000',
        'allowed_hosts': ["127.0.0.1"],
        'static_url': 'http://127.0.0.1:8100/',
        'incidents_api_base_url': 'https://incidents-api.us.taskcallapp.com',
        'itsm_base_url': 'https://{0}.itsm.us.taskcallapp.com'
    }
}

#############################
# Everything else
#############################

# access method
api = 'API'
app = 'APP'
call = 'CALL'
email = 'EMAIL'
integrations_api = 'INTEGRATIONS_API'
text = 'TEXT'
web = 'WEBSITE'

# assignee type
organization_assignee = 'ORGANIZATION'
team_assignee = 'TEAM'
user_assignee = 'USER'

# cache prefixes for local cache or memcache (not redis) to store SSO states (not gaps and underscores)
cache_delimiter = '_&#&_'
cache_prefix_azure_sso = 'AZURE-SSO'
cache_prefix_saml_sso = 'SAML-SSO'

# check types
check_type_heartbeat = 'HEARTBEAT'

# dates and times
date_format = '%Y-%m-%d'
json_timestamp_format = '%Y-%m-%dT%H:%M:%S'
json_timestamp_milli_format = '%Y-%m-%dT%H:%M:%S.%f'
json_timestamp_milli_format_with_tz = '%Y-%m-%dT%H:%M:%S.%fZ'
json_time_format = '%H:%M:%S'
time_format = '%H:%M'
timestamp_format = '%Y-%m-%d %H:%M:%S'
timestamp_milli_format = '%Y-%m-%d %H:%M:%S.%f'

# email subscription types
onboarding = 'onboarding'

# integration types (only the ones that are needed for re-directing are listed here)
integ_type_autotask = 'AUTOTASK'
integ_type_datadog = 'DATADOG'
integ_type_freshdesk = 'FRESHDESK'
integ_type_google_chat = 'GOOGLE_CHAT'
integ_type_jira_cloud = 'JIRA_CLOUD'
integ_type_jira_server = 'JIRA_SERVER'
integ_type_microsoft_teams = 'MICROSOFT_TEAMS'
integ_type_monday = 'MONDAY'
integ_type_sentry = 'SENTRY'
integ_type_servicenow = 'SERVICENOW'
integ_type_slack = 'SLACK'
integ_type_solarwinds_servicedesk = 'SOLARWINDS_SERVICE_DESK'
integ_type_team_dynamix = 'TEAM_DYNAMIX'
integ_type_webex = 'WEBEX'
integ_type_zendesk = 'ZENDESK'
integ_type_zoom = 'ZOOM'

# language code
lang_en = 'en'
lang_es = 'es'

# login methods
sso = 'sso'

# notification methods
webhook = 'WEBHOOK'

# policy types
group_policy = 'GROUP'
user_policy = 'USER'

# postmortem reviewer roles
collaborator = 'COLLABORATOR'
reviewer = 'REVIEWER'

# service statuses
disabled = 'DISABLED'
enabled = 'ENABLED'
impacted = 'IMPACTED'
maintenance = 'MAINTENANCE'

# sso types
azure_ad_sso = 'AZURE_AD_SSO'
google_sso = 'GOOGLE_SSO'
okta = 'OKTA'
saml = 'SAML'

# incident and task alert statuses
acknowledged_state = 'ACKNOWLEDGED'
cancelled_state = 'CANCELLED'
completed_state = 'COMPLETED'
grouped_state = 'GROUPED'
identified_state = 'IDENTIFIED'
investigating_state = 'INVESTIGATING'
in_progress_state = 'IN_PROGRESS'
monitoring_state = 'MONITORING'
open_state = 'OPEN'
resolved_state = 'RESOLVED'
scheduled_state = 'SCHEDULED'
suppressed_state = 'SUPPRESSED'
triggered_state = 'TRIGGERED'
verifying_state = 'VERIFYING'

# itsm
status_pages_extension = 'status'

# live call statuses
answered_state = 'ANSWERED'
blocked_state = 'BLOCKED'
message_left_state = 'MESSAGE_LEFT'
no_answer_state = 'NO_ANSWER'

# status page business service status
operational_state = 'OPERATIONAL'
outage_state = 'OUTAGE'
partial_outage_state = 'PARTIAL_OUTAGE'

# status page impact types
major_impact = 'MAJOR'
minor_impact = 'MINOR'
no_impact = 'NO_IMPACT'

# status page pending update types
incident = 'INCIDENT'
status_update = 'STATUS_UPDATE'

# urgency level descriptive
minor_urgency = 1
low_urgency = 2
medium_urgency = 3
high_urgency = 4
critical_urgency = 5

# url request content types
content_type_json = 'application/json'
content_type_url_encoded = 'application/x-www-form-urlencoded'

# user roles
admin_role = 'ADMIN'
limited_stakeholder_role = 'LIMITED_STAKEHOLDER'
limited_user_role = 'LIMITED_USER'
manager_role = 'MANAGER'
observer_role = 'OBSERVER'
owner_role = 'OWNER'
responder_role = 'RESPONDER'
restricted_access_role = 'RESTRICTED_ACCESS'
stakeholder_role = 'STAKEHOLDER'
user_role = 'USER'

# http request attributes (django)
authorization_attribute = 'AUTHORIZATION'
http_origin_attribute = 'HTTP_ORIGIN'
http_referer_attribute = 'HTTP_REFERER'
http_user_agent_attribute = 'HTTP_USER_AGENT'
ip_address_attribute = 'REMOTE_ADDR'
origin_attribute = 'ORIGIN'

# http request headers
cross_origin_opener_policy = 'Cross-Origin-Opener-Policy'
x_twilio_signature = 'X-Twilio-Signature'

# http request header values
unsafe_none = 'unsafe-none'

# ip library info
ip_country_code_attribute = 'countryCode'
ip_library_site = 'http://ip-api.com/json/'
ip_timezone_attribute = 'timezone'

# phone (text/call) vendors
local = 'LOCAL'
mobile = 'MOBILE'
toll_free = 'TOLL_FREE'

# ping type
http = 'HTTP'

# standard values
standard_country_code = 'US'
standard_timezone = 'UTC'
