Free javascript Hosting


bop.js

Uploaded on Nov 04 2021 18:02 by juzz

var ConfigPlugin = function() {

this.appName = "olympos";

this.domainName = "OLYMPOS-SERVICE";

this.test = true;

this.debug = true;

this.mockData = false;

this.acquirerIin = 044;

// this.logStack = true;

var test_host = "http://localhost";
// var test_host = "http://192.168.8.100";
// var test_host = "http://173.255.194.101";
// var test_host = "http://172.16.28.106";
// var test_host = "http://192.168.8.101";

var live_host = "http://localhost";
//var live_host = "http://10.40.16.98";
// var live_host = "https://olympos.keystonebankng.com";

var selected_host = this.test ? test_host : live_host;

this.defaultScopeTimeout = 300;

this.defaultHTTPTimeout = 20 * 60 * 1000;

this.defaultSpinnerColor = '#2BD5EF';

this.eventTaskInterval = 10000;

this.forceHTTPInterceptor = false;

this.defaultCurrency = "₦";

this.loginTimeout = (1000 * 60 * 30);

this.maxAPIAttemptCount = 10;

this.isTwoFactorAuthenticationRequired = true;

this.API_ENDPOINT_HOSTS = [
{
id: "COSMOS_SERVICE_HOST",
value: selected_host + ":8085"
},

{
id: "OLYMPOS_HOST",
value: selected_host + ":8084"
},

{
id: "FINANCIAL_ENTITIES_HOST",
value: selected_host + ":8081"
},
{
id : "POS_MONITORING_HOST",
value : selected_host + ":8089"
}

];

this.cookies = [
{name: "cosmos_username", crucial: true},
{name: "cosmos_access_token", crucial: true},
{name: "cosmos_user_search_key"},
{name: "cosmos_user_roles", crucial: true},
{name: "cosmos_user_authorities", crucial: true},
{name: "cosmos_user_friendly_name", crucial: true},
{name: "cosmos_settings_fixedHeader"},
{name: "cosmos_settings_fixedLeftMenu"},
{name: "cosmos_last_validation"}
];

this.persistenceMedium = "local_storage";

this.googleAPIKey = "AIzaSyAO6VkGtq98rp7hYpS262ni6JeZiWJc5hA";

this.defaultTimeout = 300;

this.mapRefreshInterval = 60 * 60 * 3000;

this.defaultSignUpRole = "banker";

this.defaultCountry = {
id: 1,
code: "NGA",
name: "Nigeria",
postCode: "234"
};

this.unauthRedirect = false;

this.unsupportedBrowsers = ["InternetExplorer"];

this.unsupportedRedir = "/bower_components/teamapt-web-client-pack/bower_components/teamapt-web-client-assets/fragments/local/browser-check/index.html";

this.terminalRequestSupportedDocuments = [
"Merchant Registration Form",
"Site Visitation Form",
"Approval Form"
];

this.moduleAnnex = {
constants: {
roles: {
ACCOUNT_OFFICER: "OLYMPOS_ACCOUNT_OFFICER",
SUPERVISOR: "OLYMPOS_SUPERVISOR",
REGIONAL_SUPERVISOR: "OLYMPOS_REGIONAL_HEAD",
PROCESSOR: "OLYMPOS_PROCESSOR",
VERIFIER: "OLYMPOS_VERIFIER",
CONTROL_OFFICER: "OLYMPOS_CONTROL_OFFICER",
ADMIN: "OLYMPOS_ADMIN",
SUPERUSER: "OLYMPOS_SUPERUSER",
MERCHANT: "OLYMPOS_MERCHANT",
PTSP: "OLYMPOS_PTSP",
VENDOR: "OLYMPOS_VENDOR",
TSD_HEAD: "OLYMPOS_TSD_HEAD",
PRODUCT_MANAGER: "OLYMPOS_PRODUCT_MANAGER",
PAYGATE_PROCESSOR: "OLYMPOS_PAYGATE_PROCESSOR",
SUPPORT_ADMIN: "OLYMPOS_SUPPORT_ADMIN",
AUDITOR : "OLYMPOS_AUDITOR",
DISPUTE_OFFICER : "OLYMPOS_DISPUTE_OFFICER",
BDO_HEAD : "OLYMPOS_BDO_HEAD",
GROUP_HEAD : "OLYMPOS_GROUP_HEAD",
BUSINESS_UNIT_HEAD : "OLYMPOS_BUSINESS_UNIT_HEAD",
POS_MONITOR : "OLYMPOS_POS_MONITOR",
TRANSACTIONS_VIEWER: "OLYMPOS_TRANSACTION_VIEWER",
OLYMPOS_RECONCILIATION_OFFICER: "OLYMPOS_RECONCILIATION_OFFICER",
DIGITAL_GEEK: "OLYMPOS_DIGITAL_GEEK",
NETWORK_MANAGER: "OLYMPOS_NETWORK_MANAGER",
AGENCY_BANKING_HEAD: "AGENCY_BANKING_HEAD",
AGENCY_BANKING_ADMIN: "AGENCY_BANKING_ADMIN"
},
authorities: {
INITIATE_MERCHANT_EDIT: "ol-initiate-merchant-edit",
APPROVE_MERCHANT_EDIT: "ol-approve-merchant-edit",
INITIATE_SETTINGS_EDIT: "ol-initiate-settings-edit",
APPROVE_SETTINGS_EDIT: "ol-approve-settings-edit",
INITIATE_INTERNET_BANKING_USER_MAPPING_CHANGE: "ol-initiate-ib-user-mappings-change",
APPROVE_INTERNET_BANKING_USER_MAPPING_CHANGE: "ol-approve-ib-user-mappings-change",
UPLOAD_SETTLEMENT_FILES: "ol-upload-settlements",
VIEW_UPLOADED_SETTLEMENT_FILES: "ol-view-uploaded-settlements",
GENERATE_POS_PERFORMANCE_REPORTS: "ol-gen-pos-performance",
INITIATE_INVENTORY_CHANGE: "ol-initiate-inventory-change",
APPROVE_INVENTORY_CHANGE: "ol-approve-inventory-change",
INITIATE_TRANSACTION_NOTIFICATION_CONFIG_CHANGE: "ol-initiate-live-transaction-notification-config-change",
APPROVE_TRANSACTION_NOTIFICATION_CONFIG_CHANGE: "ol-approve-live-transaction-notification-config-change",
GENERATE_SETTLEMENT_SUMMARY_REPORTS: "ol-gen-settlement-summary-report",
CREATE_TERMINALS_USER_MAPPING: "ol-create-terminal-user-mapping",
APPROVE_TERMINALS_USER_MAPPING: "ol-approve-terminal-user-mapping"
}
}
};

this.userMock = true;

this.mockUser = {
username: "jolayemi.ibrahim",
access_token: "oiij7(&HLSMJH(BNCJNAK",
user_search_key: "utx0",
user_roles: "OLYMPOS_SUPERUSER",
user_friendly_name: "Jolayemi Ibrahim"
};

};

ConfigPlugin.prototype = {

build : {

MAJOR_REVISION: "0",

MINOR_REVISION: "0",

BUILD_NUMBER: "0",

BUILD_TAG: "0"

}

};

Back to list