code: function (options) {
    var result = {
      type: options.actionType
    };
    if (options.channelName) {
      result.channel = options.channelName
    }
    if (options.eventName) {
      result.event = options.eventName
    }
    if (options.data) {
      result.data = options.data
    }
    if (options.additionalParams) {
      result.additionalParams = options.additionalParams
    }
    return result;
  }
docs: create redux action