require('dotenv').config();

module.exports.externalApis = {
  mailjet: {
    apiKey: process.env.MAILJET_API_KEY || 'bc196cdc3541523011f24b587c75119b',
    apiSecret: process.env.MAILJET_API_SECRET || '108aeda68985073217d8ad5ba614f300',
    senderEmail: process.env.MAILJET_SENDER || 'contact@evolutiosystem.com',
    senderName: process.env.MAILJET_NAME || 'Corossol Plateforme Scolaire'
  },

  twilio: {
    accountSid: process.env.TWILIO_ACCOUNT_SID || 'AC8419830071e0a104cf7ee4f32bf7d06e',
    authToken: process.env.TWILIO_AUTH_TOKEN || '439166ef015c89681c61d0f09fc58c41',
    phoneNumber: process.env.TWILIO_PHONE_NUMBER || '+17248925833'
  },
  baseUrl: process.env.BASE_URL || 'https://corossolwb.perlenedg.com',
  wasender: {
    apiKey: process.env.WASENDER_API_KEY || 'af5e6a1f5235a73b792d24ea00a55cef10b53720854eaba4f4a7dc2713c8c611',
    baseUrl: 'https://www.wasenderapi.com/api',
    senderName: 'VOTRE_NOM_EXPEDITEUR',// Nom approuvé dans votre compte WaSender,
    rateLimit: 5
  },
  fedapay: {
    env: process.env.FEDAPAY_ENV || 'sandbox', // 'live' ou 'sandbox'
    apiKey: process.env.FEDAPAY_API_KEY,      // clé secrète fedapay
    returnUrl: process.env.FEDAPAY_RETURN_URL, // URL de retour web/app
    callbackUrl: process.env.FEDAPAY_CALLBACK_URL // Webhook callback
  },
  firebase: {
    projectId: process.env.FIREBASE_PROJECT_ID,
    clientEmail: process.env.FIREBASE_CLIENT_EMAIL,
    privateKey: process.env.FIREBASE_PRIVATE_KEY
  }
};

