import ReportsApis from "../../apis";
export default (function (_ref) {
  var projectId = _ref.projectId;
  return {
    paging: false,
    autoQuery: false,
    transport: {
      read: function read(_ref2) {
        var data = _ref2.data;

        var _ref3 = data || {},
            pipelineIds = _ref3.pipelineIds,
            startTime = _ref3.startTime,
            endTime = _ref3.endTime;

        return {
          url: ReportsApis.getPipelineDurationChart(projectId, startTime, endTime),
          method: 'post',
          data: pipelineIds || []
        };
      }
    }
  };
});