transformAccountDetails(accountDetails) {
    _.set(accountDetails, 'email', accountDetails.service.contact
      ? accountDetails.service.contact.email
      : accountDetails.me.email);
    this.getGrayLogUrl(accountDetails);
    this.getGrayLogApiUrl(accountDetails);
    _.set(accountDetails, 'graylogApiUrl', `${accountDetails.graylogApiUrl}/api-browser`);
    _.set(accountDetails, 'graylogEntryPoint', accountDetails.graylogWebuiUrl
      .replace('https://', '')
      .replace('/api', ''));
    this.getElasticSearchApiUrl(accountDetails);
    if (accountDetails.last_stream) { this.getGrayLogUrl(accountDetails.last_stream); }
    if (accountDetails.last_dashboard) { this.getGrayLogUrl(accountDetails.last_dashboard); }
    _.set(accountDetails, 'portsAndMessages', this.getPortsAndMessages(accountDetails));
    return accountDetails;
  }
/**
   * Returns the transformed account details object
   *
   * @param {any} accountDetails
   * @returns the transformed account detials object
   * @memberof LogsHomeService
   */
Returns the transformed account details object
@param {any} accountDetails
@returns the transformed account detials object
@memberof LogsHomeService
Returns the transformed account details object @param { any } accountDetails @returns the transformed account detials object @memberof LogsHomeService
transformAccountDetails(accountDetails) {
    _.set(accountDetails, 'email', accountDetails.service.contact
      ? accountDetails.service.contact.email
      : accountDetails.me.email);
    this.getGrayLogUrl(accountDetails);
    this.getGrayLogApiUrl(accountDetails);
    _.set(accountDetails, 'graylogApiUrl', `${accountDetails.graylogApiUrl}/api-browser`);
    _.set(accountDetails, 'graylogEntryPoint', accountDetails.graylogWebuiUrl
      .replace('https://', '')
      .replace('/api', ''));
    this.getElasticSearchApiUrl(accountDetails);
    if (accountDetails.last_stream) { this.getGrayLogUrl(accountDetails.last_stream); }
    if (accountDetails.last_dashboard) { this.getGrayLogUrl(accountDetails.last_dashboard); }
    _.set(accountDetails, 'portsAndMessages', this.getPortsAndMessages(accountDetails));
    return accountDetails;
  }
transformAccountDetails ( accountDetails ) { _ . set ( accountDetails , 'email' , accountDetails . service . contact ? accountDetails . service . contact . email : accountDetails . me . email ) ; this . getGrayLogUrl ( accountDetails ) ; this . getGrayLogApiUrl ( accountDetails ) ; _ . set ( accountDetails , 'graylogApiUrl' , ` ${ accountDetails . graylogApiUrl } ` ) ; _ . set ( accountDetails , 'graylogEntryPoint' , accountDetails . graylogWebuiUrl . replace ( 'https://' , '' ) . replace ( '/api' , '' ) ) ; this . getElasticSearchApiUrl ( accountDetails ) ; if ( accountDetails . last_stream ) { this . getGrayLogUrl ( accountDetails . last_stream ) ; } if ( accountDetails . last_dashboard ) { this . getGrayLogUrl ( accountDetails . last_dashboard ) ; } _ . set ( accountDetails , 'portsAndMessages' , this . getPortsAndMessages ( accountDetails ) ) ; return accountDetails ; }
Returns the transformed account details object
 @param {any} accountDetails
 @returns the transformed account detials object
 @memberof LogsHomeService
Returns the transformed account details object @param { any } accountDetails @returns the transformed account detials object @memberof LogsHomeService