transformAccount(account) {
    if (_.isEmpty(account.offer)) {
      _.set(account, 'offer.description', '');
    } else if (account.offer.reference === this.LogsConstants.basicOffer) {
      _.set(account, 'offer.description', this.LogsConstants.offertypes.BASIC);
    } else {
      const dataVolume = this.$translate.instant('logs_home_data_volume');
      const dataVolumeValue = this.$translate.instant(account.offer.reference);
      _.set(account, 'offer.description', `${this.LogsConstants.offertypes.PRO} - ${dataVolume}: ${dataVolumeValue}`);
    }
    return account;
  }
/**
   * Returns the transformed account object
   *
   * @param {any} account
   * @returns the transformed account object
   * @memberof LogsHomeService
   */
Returns the transformed account object
@param {any} account
@returns the transformed account object
@memberof LogsHomeService
Returns the transformed account object @param { any } account @returns the transformed account object @memberof LogsHomeService
transformAccount(account) {
    if (_.isEmpty(account.offer)) {
      _.set(account, 'offer.description', '');
    } else if (account.offer.reference === this.LogsConstants.basicOffer) {
      _.set(account, 'offer.description', this.LogsConstants.offertypes.BASIC);
    } else {
      const dataVolume = this.$translate.instant('logs_home_data_volume');
      const dataVolumeValue = this.$translate.instant(account.offer.reference);
      _.set(account, 'offer.description', `${this.LogsConstants.offertypes.PRO} - ${dataVolume}: ${dataVolumeValue}`);
    }
    return account;
  }
transformAccount ( account ) { if ( _ . isEmpty ( account . offer ) ) { _ . set ( account , 'offer.description' , '' ) ; } else if ( account . offer . reference === this . LogsConstants . basicOffer ) { _ . set ( account , 'offer.description' , this . LogsConstants . offertypes . BASIC ) ; } else { const dataVolume = this . $translate . instant ( 'logs_home_data_volume' ) ; const dataVolumeValue = this . $translate . instant ( account . offer . reference ) ; _ . set ( account , 'offer.description' , ` ${ this . LogsConstants . offertypes . PRO } ${ dataVolume } ${ dataVolumeValue } ` ) ; } return account ; }
Returns the transformed account object
 @param {any} account
 @returns the transformed account object
 @memberof LogsHomeService
Returns the transformed account object @param { any } account @returns the transformed account object @memberof LogsHomeService