simba-mobile-cud/app/webservice/IlinkConstants.js

187 lines
9.7 KiB
JavaScript

export const isDebugMode = false;
//base url test
//export const baseUrl = "https://ilink-app.com/mobilebackendbeta"
//base url production
//export const baseUrl = "https://ilink-app.com/mobilebackend";
//export const baseUrl = "https://test.ilink-app.com/mobilebackendtest";
//export const baseUrl = "http://test.ilink-app.com:8080/mobilebackendtest";
//const baseUrl = "https://ilink-app.com/mobilebackendtest2";
/*export const baseUrl = "http://city.ilink-app.com:8080/mobilebackend";
export const testBaseUrl = "https://city.ilink-app.com:8081";*/
export const baseUrl = 'https://test-cud.ilink-app.com:9080/mobilebackend';
export const testBaseUrl = 'https://test-cud.ilink-app.com:9081';
//CUD
// export const baseUrl = "https://test-cud.ilink-app.com:9080/mobilebackend";
// export const testBaseUrl = "https://test-cud.ilink-app.com:9081";
// les derniers api modifiers commune X
// export const baseUrl = "http://test-city.ilink-app.com:8080/mobilebackend";
// export const testBaseUrl = "https://test-city.ilink-app.com:8081";
/* export const baseUrl = "https://preprod.ilink-app.com:8080/mobilebackend";
export const testBaseUrl = "https://preprod.ilink-app.com"; */
//base url agent test
//const baseUrl = "https://ilink-app.com/mobilebackendtest";
export const adhesionUrl = baseUrl + '/interacted/LoginAction.php';
export const memberActionUrl = baseUrl + '/interacted/MembersAction.php';
export const networkActionUrl = baseUrl + '/interacted/NetworkAction.php';
export const locationActionUrl = baseUrl + '/interacted/LocationAction.php';
export const demandeActionUrl = baseUrl + '/interacted/DemandeAction.php';
export const configActionUrl = baseUrl + '/interacted/ConfigAction.php';
export const logoutActionUrl = testBaseUrl + '/logout';
export const walletActionUrl = testBaseUrl + '/walletService/wallets';
export const walletUserSimpleActionUrl =
testBaseUrl + '/walletService/wallets/users';
export const walletDetailUrl = testBaseUrl + '/walletService/wallets';
export const creditTreatDemand =
testBaseUrl + '/walletService/credits/treatDemand';
export const creditCancelDemand =
testBaseUrl + '/walletService/credits/cancelDemand';
export const commissionAmount =
testBaseUrl + '/walletService/transactions/commission';
export const transactionUrl = testBaseUrl + '/walletService/transactions';
export const transactionIlinkUrl =
testBaseUrl + '/walletService/transactions/ilink';
export const transferCommission = testBaseUrl + '/walletService/virement';
export const createIdentificationUrl =
testBaseUrl + '/walletService/identifications';
export const validateIdentificationUrl =
testBaseUrl + '/walletService/identifications';
export const getNumberInformationUrl =
testBaseUrl + '/walletService/identifications/verify';
export const getUserIdentifiedInformationUrl =
testBaseUrl + '/walletService/identifications';
export const activeCountryUrl = testBaseUrl + '/walletService/countries';
export const payCountryNetworkUrl =
testBaseUrl + '/walletService/paying_networks';
export const otherPayCountryNetworkUrl =
testBaseUrl + '/walletService/other_paying_networks';
export const envoieUserWalletToWallet =
testBaseUrl + '/walletService/transactions/ilink';
export const envoieCommissionUrl =
testBaseUrl + '/walletService/transactions/ilink/commission';
export const idVerificationUrl =
testBaseUrl + '/walletService/transactions/ilink/check_retraits';
export const linkCardUrl =
testBaseUrl + '/walletService/identifications/rattach_card';
export const getCreditDemand = testBaseUrl + '/walletService/groups/demands';
export const groupUrl = testBaseUrl + '/walletService/groups';
export const treatDemandUrl =
testBaseUrl + '/walletService/groups/demands/validate';
export const cancelDemandUrl =
testBaseUrl + '/walletService/groups/demands/cancel';
export const askNanoCreditUrl =
testBaseUrl + '/walletService/groups/nanoCredit/ask';
export const cautionCreditDemandtUrl =
testBaseUrl + '/walletService/groups/nanoCredit/guarantee';
export const refundCreditDemandUrl =
testBaseUrl + '/walletService/groups/nanoCredit/refund';
export const getNanoCreditDemandUrl =
testBaseUrl + '/walletService/groups/nanoCredit/details';
export const joinGroupUrl = testBaseUrl + '/walletService/groups/join';
export const getNanoCreditDemandDureationUrl =
testBaseUrl + '/walletService/groups/nanoCredit/durations';
export const epargnerArgentUrl =
testBaseUrl + '/walletService/groups/nanoCredit/savings/make';
export const casserEpargneUrl =
testBaseUrl + '/walletService/groups/nanoCredit/savings/break';
export const saveOnesignalIds = testBaseUrl + '/notificationService/onesignal';
export const getNotificationUrl =
testBaseUrl + '/notificationService/notifications';
export const getNanoCreditAccount =
testBaseUrl + '/walletService/groups/nanoCredit/accounts';
export const getNanoCreditUserHistoryUrl =
testBaseUrl + '/walletService/groups/nanoCredit/all_demands';
export const getNanoCreditAgentHistoryUrl =
testBaseUrl + '/walletService/groups/nanoCredit/guarantee_demands';
export const getHyperviseurHistoriqueUrl =
testBaseUrl + '/walletService/wallets/all_hyper_history';
export const getSuperviseurHistoriqueUrl =
testBaseUrl + '/walletService/wallets/all_super_history';
export const getBankUrl =
testBaseUrl + '/walletService/wallets/users/operators/bank';
export const getHistoryNanoPendingCreditUrl =
testBaseUrl + '/walletService/groups/nanoCredit/demands_in_progress';
export const getHistoryEpargnePendingUrl =
testBaseUrl + '/walletService/groups/nanoCredit/savings/demands_in_progress';
export const getOperatorListUrl =
testBaseUrl + '/walletService/wallets/users/operators';
export const getIlinkBankListUrl =
testBaseUrl + '/walletService/wallets/users/banks_for_link';
export const linkBankAccountUrl =
testBaseUrl + '/walletService/wallets/users/link_bank_account';
export const payBillUrl = testBaseUrl + '/walletService/transactions/ilink';
export const getAvisImpositionUrl =
testBaseUrl + '/walletService/tax_notices/current';
export const getAvisImpositionWithoutOrdreRecetteUrl =
testBaseUrl + '/walletService/tax_notices/current_without_revenue_order';
export const getAvisImpositionWithPenaliteUrl =
testBaseUrl + '/walletService/tax_notices/current_with_penalties';
export const getOrdreRecetteUrl =
testBaseUrl + '/walletService/revenue_orders/current';
export const getOrdreRecetteWithoutQuitanceUrl =
testBaseUrl + '/walletService/revenue_orders/current_without_receipt';
export const modifyAvisImpositionUrl =
testBaseUrl + '/walletService/tax_notices';
export const penalityUrl = testBaseUrl + '/walletService/taxes_penalties';
export const getOnePenality =
testBaseUrl + '/walletService/tax_notices/one_with_penalties';
export const getOneTaxNoticeUrl =
testBaseUrl + '/walletService/tax_notices/one_without_revenue_order';
export const getOneReceiptUrl = testBaseUrl + '/walletService/receipts/one';
export const saveOrdreRecetteUrl =
testBaseUrl + '/walletService/revenue_orders';
export const saveQuitanceUrl = testBaseUrl + '/walletService/receipts';
export const modifyQuitanceUrl = testBaseUrl + '/walletService/receipts';
export const modifyOrdreRecetteUrl =
testBaseUrl + '/walletService/revenue_orders';
export const updateDefaultNetworkUrl =
testBaseUrl + '/walletService/update_default_network';
export const saveActifSocietyUrl =
testBaseUrl + '/walletService/companies/assets';
export const saveManyActifsSocietyUrl =
testBaseUrl + '/walletService/companies/many_assets';
export const getActifsUrl =
testBaseUrl + '/walletService/companies/assets/registered';
export const getQRCodeDetail = testBaseUrl + '/walletService/qrcode/read';
export const checkAppVersion = testBaseUrl + '/check_app_version';
export const getHistoryOrdersReceiptSuperUrl =
testBaseUrl + '/walletService/history/super/orders_receipts';
export const uploadImage = testBaseUrl + '/walletService/upload_image';
export const searchUserUrl = testBaseUrl + '/walletService/search/users';
export const searchUserHomeUrl = testBaseUrl + '/walletService/agents';
export const paymentMethodUrl = testBaseUrl + '/paymentService/methods';
export const authKeyUrl = testBaseUrl + '/oauth/token';
export const videoUrl = 'https://www.youtube.com/watch?v=wwGPDPsSLWY';
export const MARKER_URL = baseUrl + '/interacted/LocationAction.php';
export const defaultKey = `bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIyIiwianRpIjoiMWM2NWQ1NzliMzVkMDNjM2ViMDNjNzIxMDJlY2VjMTYwYzQyNjkxYjQ4OTdlNmRhMmE0YTlkZjMyNDI5Yjc0NDdkYTRjMjM0OThmYTRmZDYiLCJpYXQiOjE2MTUyNTUzNjMsIm5iZiI6MTYxNTI1NTM2MywiZXhwIjoxNjQ2NzkxMzYzLCJzdWIiOiI0NCIsInNjb3BlcyI6W119.ieHjAfPZXhnQnlQiRSRVsDP-vAIvjypXyuM1tsn9ZIrjvN8gG1gUSSDtQuf8mzYKITqILYxucE7Pggxt-1DRWtHwCPO4syEBe8E1YIg7-2ObMFNh8deTKrjeAXTyBz4HrA4jIwRQBthppGeeclG3e2xpBEenNINJEBouz7Tx2hybq4RS67UiQQhUekZUZ_-EpIbxIIjLSC_ivfHZGsCaMkrf-j-5YqRKsuIIS9cVnjjAB7J8YbWOfpHGCgWlf9c8YmuAtuVI4Qtq5UqxhlRHnohV32i7wSKes2_ljR6xQFs-iby8FdjtxvnpQ4PoMb2TPmusq-_5gXKCt9ww7MWoNJVtCLXr2beJqKZdw2AT9KM0STgnnvZJRQe_xyZ_e6t27TrkILq1DiihhWtB_4mYugXFrqx0nFn0kpqwhsjFOZ5HZrYNGtDPa6KUpimQL-_KhZCCNv0zdQOc_PNoCaadQ0sjXVhxsbEZEYzASnuuK2ClOAk_qQMlDH7HleigwwnX3RRtF1OTZh43KoT6YTNO2uriYNLHDtq-nd8XBWxE7EwYTZ37bH4qjJ4Xg_IAtMTjuM1FCzJVBHB1zJy83z4CYPlTc4BXgglIsZYWjT7LetPemjXv8323AvH4ot6xaoLNSPTu4llxpoWK16eHNj3JHUegQNJAtfZ4q3lUX-mR9Rg`;
export const opencageDataApiKey = 'c2d8cd0fc0c743669c96e82dd9a7e261';
export const opencageDataApiUrl = `https://api.opencagedata.com/geocode/v1/json?key=${opencageDataApiKey}&pretty=1&no_annotations=1`;
export const supervisorCode = 'supervisorCode';
export const usagerToSave = 'usagerToSave';
export const actifToSave = 'actifToSave';
export const mobileAppVersion = '1.0.0';
export const authKeyData = {
grant_type: 'password',
client_id: '2',
client_secret: 'rrbvxACJPBOG4cqjDNlstSljlmjydLon3P55JMav',
};