const IS_HOST_ENVIRONMENT_TEST = false;

var consoleHolder = console;

function debug(bool) {
    if (!bool) {
        consoleHolder = console;
        console = {};
        Object.keys(consoleHolder).forEach(function (key) {
            console[key] = function () {
            };
        })
    } else {
        console = consoleHolder;
    }
}

debug(IS_HOST_ENVIRONMENT_TEST);

const typeVersion = (IS_HOST_ENVIRONMENT_TEST) ? "TESTE" : "";

const NAME_PROJECT = "nodes-goway-prod";

const CONTACT_SUPPORT = '+5585996777458';

//----------------------------------------------------

const API_HOST_PRODUCTION = `https://mobilidade-api-php-goway.prod.704apps.com.br/`;
const API_HOST_TEST = `http://${NAME_PROJECT}api.fb704.com.br`;

const API_HOST = (IS_HOST_ENVIRONMENT_TEST) ? API_HOST_TEST : API_HOST_PRODUCTION;

//----------------------------------------------------

const API_HOST_LOCATION_PRODUCTION = `https://mobilidade-api-node-goway.prod.704apps.com.br`;
const API_HOST_LOCATION_TEST = `http://${NAME_PROJECT}api.fb704.com.br`;

const API_HOST_LOCATION = (IS_HOST_ENVIRONMENT_TEST) ? API_HOST_LOCATION_TEST : API_HOST_LOCATION_PRODUCTION;

//---------------------------------------------------

const PWA_HOST_TEST = `https://pwatest.${NAME_PROJECT}.com.br/`;
const PWA_HOST_PRODUCTION = `https://pwa.${NAME_PROJECT}.com.br/`;

const CURRENT_HOST_PWA = (IS_HOST_ENVIRONMENT_TEST) ? PWA_HOST_TEST : PWA_HOST_PRODUCTION;

//---------------------------------------------------

const SOCKET_HOST_PRODUCTION = `https://mobilidade-api-node-goway.prod.704apps.com.br`;
const SOCKET_HOST_TEST = `http://apiteste.${NAME_PROJECT}.com.br:3704`;


const SOCKET_IO_HOST = (IS_HOST_ENVIRONMENT_TEST) ? SOCKET_HOST_TEST : SOCKET_HOST_PRODUCTION;

//---------------------------------------------------0

const SOCKET_TEST = `ws://${NAME_PROJECT}.com.br:5555/`;

const SOCKET_PRODUCTION = `ws://${NAME_PROJECT}.com.br:4444/`;

const SOCKET_HOST = (IS_HOST_ENVIRONMENT_TEST) ? SOCKET_TEST : SOCKET_PRODUCTION;

//----------------------------------------------------
const PATH_IMAGE_PRODUCTION = `https://s3.amazonaws.com/nodes-goway-prod/driver/profile/compressed/`;
const PATH_IMAGE_TEST = `https://s3.amazonaws.com/nodes-goway-prod/driver/profile/compressed/`;

const PATH_IMAGE = (IS_HOST_ENVIRONMENT_TEST) ? PATH_IMAGE_TEST : PATH_IMAGE_PRODUCTION;
//----------------------------------------------------

const PATH_IMAGE_PRODUCTION_TEMP = `https://s3.amazonaws.com/nodes-goway-prod/driver/profile/temp/`;
const PATH_IMAGE_TEST_TEMP = `https://s3.amazonaws.com/nodes-goway-prod/driver/profile/temp/`;

const PATH_IMAGE_TEMP = (IS_HOST_ENVIRONMENT_TEST) ? PATH_IMAGE_TEST_TEMP : PATH_IMAGE_PRODUCTION_TEMP;
// ---------------------------------------------------
const PATH_IMAGE_CLIENT_TEST = `https://s3.amazonaws.com/nodes-goway-prod/customer/profile/compressed/`;

const PATH_IMAGE_CLIENT_PRODUCTION = `https://s3.amazonaws.com/nodes-goway-prod/customer/profile/compressed/`;

const CLIENT_PROFILE = (IS_HOST_ENVIRONMENT_TEST) ? PATH_IMAGE_CLIENT_TEST : PATH_IMAGE_CLIENT_PRODUCTION;
// ---------------------------------------------------

const PATH_IMAGE_COOPERATIVE_TEST = `https://s3.amazonaws.com/nodes-goway-prod/cooperative/`;

const PATH_IMAGE_COOPERATIVE_PRODUCTION = `https://s3.amazonaws.com/nodes-goway-prod/cooperative/`;

const PATH_COOPERATIVE = (IS_HOST_ENVIRONMENT_TEST) ? PATH_IMAGE_COOPERATIVE_TEST : PATH_IMAGE_COOPERATIVE_PRODUCTION;
// ---------------------------------------------------
const AUDIO_CHAT_MESSAGE_TEST = `https://s3.amazonaws.com/nodes-goway-prod/chat/trip/`;

const AUDIO_CHAT_MESSAGE_PRODUCTION = `https://s3.amazonaws.com/nodes-goway-prod/chat/trip/`;

const AUDIO_CHAT_MESSAGE = (IS_HOST_ENVIRONMENT_TEST) ? AUDIO_CHAT_MESSAGE_TEST : AUDIO_CHAT_MESSAGE_PRODUCTION;

//----------------------------------------------------
const HOST_HOSTEL = `https://pwa.${NAME_PROJECT}.com.br/cliente/OpenHostel?hostel=`;

const API_HOST_WHAT = `https://api.whatsapp.com/`;

//--------------------------------------------------

const HOST_SITE_TEST = `https://beta.${NAME_PROJECT}.com.br/`;

const HOST_SITE_PRODUCTION = `https://goway.prod.704apps.com.br/`;

const HOST_SITE = (IS_HOST_ENVIRONMENT_TEST) ? HOST_SITE_TEST : HOST_SITE_PRODUCTION;


/// ---------------------------------------------------

const HOST_API_V2 = `https://delivery-api-goway.prod.704apps.com.br`;

const HOST_API_SOCKET_V2 = `https://delivery-realtimeapi-goway.prod.704apps.com.br/`;

// ----------------------------------------------------

const PATH_IMAGE_CENTRAL_TEST = `https://s3.amazonaws.com/nodes-goway-prod/`;
const PATH_IMAGE_CENTRAL_PRODUCTION = `https://s3.amazonaws.com/nodes-goway-prod/`;

const PATH_IMAGE_CENTRAL = (IS_HOST_ENVIRONMENT_TEST) ? PATH_IMAGE_CENTRAL_TEST : PATH_IMAGE_CENTRAL_PRODUCTION;
