Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
RED: 4,
YELLOW: 3,
};
export class Configuration {
readonly APP_BASE = env.APP_BASE || 'https://app.wire.com';
readonly APP_NAME = env.APP_NAME || 'Webapp';
readonly APP_INSTANCE_ID = UUID();
readonly BACKEND_REST = env.BACKEND_REST || 'https://prod-nginz-https.wire.com';
readonly BACKEND_WS = env.BACKEND_WS || 'wss://prod-nginz-ssl.wire.com';
readonly BRAND_NAME = env.BRAND_NAME || 'Wire';
readonly ENVIRONMENT = env.ENVIRONMENT || 'production';
readonly FEATURE = env.FEATURE;
readonly MAX_GROUP_PARTICIPANTS = env.MAX_GROUP_PARTICIPANTS || 500;
readonly MAX_VIDEO_PARTICIPANTS = env.MAX_VIDEO_PARTICIPANTS || 4;
readonly NEW_PASSWORD_MINIMUM_LENGTH = env.NEW_PASSWORD_MINIMUM_LENGTH || ValidationUtil.DEFAULT_PASSWORD_MIN_LENGTH;
readonly URL = env.URL || {
ACCOUNT_BASE: 'https://account.wire.com',
MOBILE_BASE: '',
SUPPORT_BASE: 'https://support.wire.com',
TEAMS_BASE: 'https://teams.wire.com',
WEBSITE_BASE: 'https://wire.com',
};
readonly VERSION = env.VERSION || '0.0.0';
// 10 seconds until phone code expires
readonly LOGIN_CODE_EXPIRATION = 10 * 60;
// 25 megabyte upload limit for personal use (private users & guests)
readonly MAXIMUM_ASSET_FILE_SIZE_PERSONAL = 25 * 1024 * 1024;
// 100 megabyte upload limit for organizations (team members)
readonly APP_INSTANCE_ID = UUID();
readonly BACKEND_REST = window.wire.env.BACKEND_REST || 'https://prod-nginz-https.wire.com';
readonly BACKEND_WS = window.wire.env.BACKEND_WS || 'wss://prod-nginz-ssl.wire.com';
readonly CALLING_PROTOCOL_VERSION = '3.0';
readonly ENVIRONMENT = window.wire.env.ENVIRONMENT || 'production';
readonly FEATURE = window.wire.env.FEATURE || {
CHECK_CONSENT: true,
ENABLE_ACCOUNT_REGISTRATION: true,
ENABLE_DEBUG: false,
ENABLE_PHONE_LOGIN: true,
ENABLE_SSO: false,
SHOW_LOADING_INFORMATION: false,
};
readonly MAX_VIDEO_PARTICIPANTS = 4;
readonly NEW_PASSWORD_MINIMUM_LENGTH =
window.wire.env.NEW_PASSWORD_MINIMUM_LENGTH || ValidationUtil.DEFAULT_PASSWORD_MIN_LENGTH;
readonly URL = window.wire.env.URL || {
ACCOUNT_BASE: 'https://account.wire.com',
MOBILE_BASE: '',
SUPPORT_BASE: 'https://support.wire.com',
TEAMS_BASE: 'https://teams.wire.com',
WEBSITE_BASE: 'https://wire.com',
};
readonly VERSION = window.wire.env.VERSION || '0.0.0';
}
const Config = new Configuration();
export {Config};
import * as UUID from 'uuid/v4';
class Configuration {
readonly APP_BASE = window.wire.env.APP_BASE || 'https://app.wire.com';
readonly APP_NAME = window.wire.env.APP_NAME || 'Webapp';
readonly APP_INSTANCE_ID = UUID();
readonly BACKEND_REST = window.wire.env.BACKEND_REST || 'https://prod-nginz-https.wire.com';
readonly BACKEND_WS = window.wire.env.BACKEND_WS || 'wss://prod-nginz-ssl.wire.com';
readonly BRAND_NAME = window.wire.env.BRAND_NAME || 'Wire';
readonly CALLING_PROTOCOL_VERSION = '3.0';
readonly ENVIRONMENT = window.wire.env.ENVIRONMENT || 'production';
readonly FEATURE = window.wire.env.FEATURE;
readonly MAX_GROUP_PARTICIPANTS = window.wire.env.MAX_GROUP_PARTICIPANTS || 500;
readonly MAX_VIDEO_PARTICIPANTS = window.wire.env.MAX_VIDEO_PARTICIPANTS || 4;
readonly NEW_PASSWORD_MINIMUM_LENGTH =
window.wire.env.NEW_PASSWORD_MINIMUM_LENGTH || ValidationUtil.DEFAULT_PASSWORD_MIN_LENGTH;
readonly URL = window.wire.env.URL || {
ACCOUNT_BASE: 'https://account.wire.com',
MOBILE_BASE: '',
SUPPORT_BASE: 'https://support.wire.com',
TEAMS_BASE: 'https://teams.wire.com',
WEBSITE_BASE: 'https://wire.com',
};
readonly VERSION = window.wire.env.VERSION || '0.0.0';
}
const Config = new Configuration();
export {Config};