addInput(serviceName, input) {
    return this.InputsApiLexiService
      .create({ serviceName }, this.constructor.transformInputToSave(input))
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data);
      })
      .catch(err => this.LogsHelperService.handleError('logs_inputs_add_error', err, { inputTitle: input.info.title }));
  }
/**
   * add input
   *
   * @param {any} serviceName
   * @param {any} input, input object to be added
   * @returns promise which will resolve with the operation object
   * @memberof LogsInputsService
   */
add input
@param {any} serviceName
@param {any} input, input object to be added
@returns promise which will resolve with the operation object
@memberof LogsInputsService
add input @param { any } serviceName @param { any } input input object to be added @returns promise which will resolve with the operation object @memberof LogsInputsService
addInput(serviceName, input) {
    return this.InputsApiLexiService
      .create({ serviceName }, this.constructor.transformInputToSave(input))
      .$promise
      .then((operation) => {
        this.resetAllCache();
        return this.LogsHelperService.handleOperation(serviceName, operation.data);
      })
      .catch(err => this.LogsHelperService.handleError('logs_inputs_add_error', err, { inputTitle: input.info.title }));
  }
addInput ( serviceName , input ) { return this . InputsApiLexiService . create ( { serviceName } , this . constructor . transformInputToSave ( input ) ) . $promise . then ( ( operation ) => { this . resetAllCache ( ) ; return this . LogsHelperService . handleOperation ( serviceName , operation . data ) ; } ) . catch ( err => this . LogsHelperService . handleError ( 'logs_inputs_add_error' , err , { inputTitle : input . info . title } ) ) ; }
add input
 @param {any} serviceName
 @param {any} input, input object to be added
 @returns promise which will resolve with the operation object
 @memberof LogsInputsService
add input @param { any } serviceName @param { any } input input object to be added @returns promise which will resolve with the operation object @memberof LogsInputsService