(function () {
  "use strict";
  const APP_ENV = env["園児別出欠簿入力"];

  addApproveFlowAction();

  kintone.events.on("app.record.index.show", (event) => {
    const headerSpace = getHeaderSpace('single-label-line');

    if (event.viewId === APP_ENV.view.linkFor0to1) {
      Link1Handler.getInstance(headerSpace);
      return event;
    }

    if (event.viewId === APP_ENV.view.linkForOthers) {
      Link2Handler.getInstance(headerSpace);
      return event;
    }

    BatchCreateHandler.getInstance(headerSpace);
    ExtractHandler.getInstance(headerSpace);
  });

})();