export default (function (projectId, appServiceId, tagStore) {
  return {
    dataKey: 'list',
    transport: {
      read: {
        url: "/devops/v1/projects/".concat(projectId, "/app_service/").concat(appServiceId, "/git/page_tags_by_options"),
        method: 'post',
        transformResponse: function transformResponse(response) {
          try {
            if (!response) {
              tagStore.setIsEmpty(true);
              return [];
            } else {
              tagStore.setIsEmpty(false);
            }

            var result = JSON.parse(response);
            return result;
          } catch (e) {
            return response;
          }
        }
      }
    }
  };
});