import { adminAuthLevel, authType } from './types';

export const menuConfig = {
	usermanage: {
		title: '운영자 관리',
		items: {
			adminview: {
				title: '운영자 조회',
				permissions: {
					read: authType.adminSearchRead,
					confirm: authType.adminSearchConfirm,
					update: authType.adminSearchUpdate,
					delete: authType.adminSearchDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			logview: {
				title: '사용 이력 조회',
				permissions: {
					read: authType.adminLogSearchRead
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			authsetting: {
				title: '권한 설정',
				permissions: {
					read: authType.authoritySettingRead,
					update: authType.authoritySettingUpdate,
					delete: authType.authoritySettingDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			caliumrequest: {
				title: '칼리움 요청',
				permissions: {
					read: authType.caliumRequestRead,
					update: authType.caliumRequestUpdate
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			datainit: {
				title: '데이터 초기화',
				permissions: {},
				view: false,
				test: true,
				authLevel: adminAuthLevel.MASTER
			}
		}
	},
	indexmanage: {
		title: '지표 관리',
		items: {
			userindex: {
				title: '유저 지표',
				permissions: {
					read: authType.userIndicatorsRead
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			economicindex: {
				title: '경제 지표',
				permissions: {
					read: authType.economicIndicatorsRead
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			}
		}
	},
	datamanage: {
		title: '운영 정보 관리',
		items: {
			userview: {
				title: '유저 조회',
				permissions: {
					read: authType.userSearchRead,
					update: authType.userSearchUpdate,
					delete: authType.userSearchDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			landview: {
				title: '랜드 정보 조회',
				permissions: {
					read: authType.landRead,
					update: authType.landUpdate,
					delete: authType.landDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			gamelogview: {
				title: '게임 로그 조회',
				permissions: {
					read: authType.gameLogRead
				},
				view: false,
				authLevel: adminAuthLevel.NONE
			},
			// cryptview: {
			// 	title: '크립토 조회',
			// 	permissions: {
			// 		read: authType.cryptoRead
			// 	},
			// 	view: false,
			// 	authLevel: adminAuthLevel.NONE
			// },
			businesslogview: {
				title: '비즈니스 로그 조회',
				permissions: {
					read: authType.businessLogRead
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			}
		}
	},
	servicemanage: {
		title: '운영 서비스 관리',
		items: {
			board: {
				title: '인게임 메시지',
				permissions: {
					read: authType.inGameRead,
					update: authType.inGameUpdate,
					delete: authType.inGameDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			mail: {
				title: '우편',
				permissions: {
					read: authType.mailRead,
					update: authType.mailUpdate,
					delete: authType.mailDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			userblock: {
				title: '이용자 제재',
				permissions: {
					read: authType.blackListRead,
					update: authType.blackListUpdate,
					delete: authType.blackListDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			reportlist: {
				title: '신고내역',
				permissions: {
					read: authType.reportRead,
					update: authType.reportUpdate,
					delete: authType.reportDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			event: {
				title: '보상 이벤트 관리',
				permissions: {
					read: authType.eventRead,
					update: authType.eventUpdate,
					delete: authType.eventDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			landauction: {
				title: '랜드 경매 관리',
				permissions: {
					read: authType.landAuctionRead,
					update: authType.landAuctionUpdate,
					delete: authType.landAuctionDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			battleevent: {
				title: '전투시스템 타입 스케줄러',
				permissions: {
					read: authType.battleEventRead,
					update: authType.battleEventUpdate,
					delete: authType.battleEventDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			items: {
				title: '아이템 관리',
				permissions: {
					read: authType.itemRead,
					update: authType.itemUpdate,
					delete: authType.itemDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
			menubanner: {
				title: '메뉴 배너 관리',
				permissions: {
					read: authType.menuBannerRead,
					update: authType.menuBannerUpdate,
					delete: authType.menuBannerDelete
				},
				view: true,
				authLevel: adminAuthLevel.NONE
			},
		}
	}
};