package encounter

import (
	plugin "simrs-vx/internal/use-case/simgos-sync-plugin/new/encounter"
)

func init() {
	createPreMw = append(createPreMw,
		createMw{Name: "sync-update-encounter", Func: plugin.Create})

	createSimxLogMw = append(createSimxLogMw,
		createLogMw{Name: "create-sync-log", Func: plugin.CreateLog})

	updatePreMw = append(updatePreMw,
		updateMw{Name: "sync-update-encounter", Func: plugin.Update})

	deletePreMw = append(deletePreMw,
		deleteMw{Name: "sync-delete-encounter", Func: plugin.Delete})

	checkinEncounterMw = checkinMw{Name: "sync-checkin-encounter", Func: plugin.Checkin}
	checkoutEncounter = checkoutMw{Name: "sync-checkout-encounter", Func: plugin.Checkout}

	updatestatusEncounter = append(updatestatusEncounter,
		updateStatusMw{Name: "sync-update-status-encounter", Func: plugin.UpdateStatus})

	requestSwitchEncounter = requestSwitchUnitMw{Name: "sync-request-switch-unit-encounter", Func: plugin.RequestSwitchUnit}
	approveSwitchEncounter = approveSwitchUnitMw{Name: "sync-approve-switch-unit-encounter", Func: plugin.ApproveSwitchUnit}
	cancelSwitchEncounter = cancelSwitchUnitMw{Name: "sync-cancel-switch-unit-encounter", Func: plugin.CancelSwitchUnit}
}
