lib/cloud/fh-reports.js
function getMessagingConfig() {
  return {
    host:         process.env.FH_MESSAGING_HOST || '',
    cluster:      process.env.FH_MESSAGING_CLUSTER || '',
    realTimeLoggingEnabled: isRealtimeLoggingEnabled(),
    mbaasType: mbaasType(),
    decoupled: process.env.FH_MBAAS_DECOUPLED ||  false,
    msgServer:    {
      logMessageURL: getLogMessageURL()
    },
    backupFiles:  {
      fileName: process.env.FH_MESSAGING_BACKUP_FILE || ''
    },
    recoveryFiles:{
      fileName: process.env.FH_MESSAGING_RECOVERY_FILE || ''
    }
  };
}
function getMessagingConfig() {
  return {
    host:         process.env.FH_MESSAGING_HOST || '',
    cluster:      process.env.FH_MESSAGING_CLUSTER || '',
    realTimeLoggingEnabled: isRealtimeLoggingEnabled(),
    mbaasType: mbaasType(),
    decoupled: process.env.FH_MBAAS_DECOUPLED ||  false,
    msgServer:    {
      logMessageURL: getLogMessageURL()
    },
    backupFiles:  {
      fileName: process.env.FH_MESSAGING_BACKUP_FILE || ''
    },
    recoveryFiles:{
      fileName: process.env.FH_MESSAGING_RECOVERY_FILE || ''
    }
  };
}
function getMessagingConfig ( ) { return { host : process . env . FH_MESSAGING_HOST || '' , cluster : process . env . FH_MESSAGING_CLUSTER || '' , realTimeLoggingEnabled : isRealtimeLoggingEnabled ( ) , mbaasType : mbaasType ( ) , decoupled : process . env . FH_MBAAS_DECOUPLED || false , msgServer : { logMessageURL : getLogMessageURL ( ) } , backupFiles : { fileName : process . env . FH_MESSAGING_BACKUP_FILE || '' } , recoveryFiles : { fileName : process . env . FH_MESSAGING_RECOVERY_FILE || '' } } ; }
Build the messaging configuration for the Reporting Client
Build the messaging configuration for the Reporting Client