export default (function (_ref) {
  var projectId = _ref.projectId;
  return {
    autoQuery: false,
    paging: false,
    selection: 'multiple',
    transport: {
      read: function read(_ref2) {
        var data = _ref2.data;
        var envId = data.envId,
            appServiceId = data.appServiceId;
        return {
          url: "devops/v1/projects/".concat(projectId, "/app_service/list_by_env?envId=").concat(envId).concat(appServiceId ? "&status=running$app_service_id=".concat(appServiceId) : ''),
          method: 'get'
        };
      }
    }
  };
});