# By: Riasat Ullah
# This file contains Microsoft Teams integration related variables.

from constants import static_vars, var_names
from taskcallweb import settings


# variable names
str_mst_temp_token_details = 'mst_temp_token_details'
str_service_url = 'serviceUrl'
str_tenant_id = 'tenant_id'


def get_web_path_us_tc_ms_teams_authorization(verification_token, tenant, admin_consent):
    ref_dict = static_vars.regional_urls
    if settings.TEST_SERVER:
        ref_dict = static_vars.regional_test_server_urls
    path = ref_dict[static_vars.aws_us_ohio][var_names.redirect_base] +\
        '/configurations/services/integrations/microsoft-teams/authorize?state={0}&tenant={1}&admin_consent={2}'.format(
            verification_token, tenant, admin_consent)
    return path
