"use strict";

const EnumCodeEn = {
  // 조회 대상 시스템 => /p5g/cm/getTargetSystem
  // 조회 대상 NE => /ne/getTopology
  // 조회 통계 항목 => /p5g/pm/familyEnum

  // 고객 유형
  customerType: [
    {title: '대내', value: 0},
    {title: '대외', value: 1},
    {title: '공공', value: 2}
  ],
  // 시스템 유형
  systemType: [
    {title: 'USM_MACRO', value: 0},
    {title: 'USM_COMPACT', value: 1},
    {title: 'UDC_EMS', value: 2}
  ],
  // NE 유형
  neType: [
    {title: 'AMF', value: 'AMF'},
    {title: 'SMF', value: 'SMF'},
    {title: 'UDC', value: 'UDC'},
    {title: 'MEC', value: 'MEC'},
    {title: 'UPF', value: 'UPF'},
    {title: 'CU', value: 'CU'},
    {title: 'DU', value: 'DU'},
    {title: 'RU', value: 'RU'},
    {title: 'AU', value: 'AU'}
  ],
  // 패밀리아이디
  pmFamily: {
    stat: {
      CU: ["RRC_ESTAB","RRC_REESTAB","SGNB_ADD_EUTRAN_OUT","ERAB_ADD_PER_GNB","SCG_FAIL_OPER","UE_NUM_PER_GNB","CUCPCSL_PER_GNB","INTRA_SN_PSCELL_CHANGE_PER_GNB","INTER_SN_PSCELL_CHANGE_SRC_PER_GNB","HO_OUT","SGNB_INIT_SGNB_MOD_PER_GNB","MENB_INIT_SGNB_MOD_PER_GNB"],
      AMF: ["MS","REGIPLMN","REGSPLMN","REGPOD","REGRAN","REGRANGRP","REGPEI","REGNS","DREGIPLMN","DREGSPLMN","DREGPOD","DREGRAN","DREGRANGRP","DREGPEI","DREGSNSSAI","SRIPLMN","SRSPLMN","SRPOD","SRRAN","SRRANGRP","SRPEI"],
      UPF: ["CALLSP","CALLIP","CALLSNSSAI","CALLSGRP","CALLDNN","PFMCP","PFNMP","PFSMP","PSRTN","PUPIRN","PUD","PUDD","PUDDTL","PUDSIZE"],
      SMF: ["SMDNNSE","SMDNNSM","SMDNNSR","SMDNNUA","SMDNNUD","SMUPFSE","SMUPFSM","SMUPFSR","SMUPFUA","SMUPFUD","SMUPFBA","SMUPFBD","SMUPFBM","SMUPFBP"],
      DU: [""],
      RU: [""],
      AU: [""],
      UDC: [""]
    },
    trend: {
      CU: ["RRC_ESTAB","RRC_REESTAB","UE_NUM_PER_GNB"],
      AMF: ["MS","REGPOD","DREGPOD","SRPOD"],
      UPF: ["CALLSP","PFMCP","PUD"],
      SMF: ["SMUPFSE","SMUPFSR","SMUPFUA","SMUPFUD"],
      DU: [""],
      RU: [""],
      AU: [""],
      UDC: [""]
    }
  },
  familyIds: {
    trend: {
      AMF: ['AMFMS', 'REGPOD', 'DEREGPOD', 'SRAMFPOD'],
      SMF: ['SMUPFSE', 'SMUPFSR', 'SMUPFUA', 'SMUPFUD'],
      UPF: ['CALLSP', 'PFMCP', 'PUD'],
      CU: ['RRC_ESTAB, RRC_REESTAB', 'UE_NUM_PER_GNB']
    }, 
    stat: {
      AMF: [
        'AMFMS','REGIPLMN','REGSPLMN','REGPOD','REGRAN','REGRANGRP','REGREGPEI','DEREGIPLMN',
        'DEREGSPLMN','DEREGPOD','DEREGRAN','DEREGRANGRP','DEREGPEI','SRIPLMN','SRSPLMN','SRPOD',
        'SRRAN','SRRANGRP','SRPEI'
      ],
      SMF: [
        'SMDNNSE','SMDNNSM','SMDNNSR','SMDNNUA','SMDNNUD','SMUPFSE','SMUPFSM','SMUPFSR',
        'SMUPFUA','SMUPFUD','SMUPFBA','SMUPFBD','SMUPFBM','SMUPFBP'
      ],
      UPF: [
        'CALLSP','CALLIP','CALLSNSSAI','CALLSGRP','CALLDNN','PFMCP','PFNMP','PFSMP','PSRTN','PUPIRN','PUD',
        'PUDD','PUDDTL','PUDSIZE'
      ],
      CU: [
        'RRC_ESTAB','RRC_REESTAB','SGNB_ADD_EUTRAN_OUT','ERAB_ADD_PER_GNB','SCG_FAIL_OPER',
        'UE_NUM_PER_GNB','CUCPCSL_PER_GNB','INTRA_SN_PSCELL_CHANGE_PER_GNB',
        'INTER_SN_PSCELL_CHANGE_SRC_PER_GNB','HO_OUT','SGNB_INIT_SGNB_MOD_PER_GNB',
        'MENB_INIT_SGNB_MOD_PER_GNB'
      ]
    }
  },
  // 이벤트 유형
  eventType: [
    {title: 'All', value: -1},
    {title: 'Alarm', value: 1},
    {title: 'Status', value: 2},
    {title: 'Fault', value: 3}
  ],
  // 심각도
  severity: [
    {title: 'All', value: -1},
    {title: 'Critical', value: 1},
    {title: 'Major', value: 2},
    {title: 'Minor', value: 3},
    {title: 'Warning', value: 4},
    {title: 'Normal', value: 5}
  ],
  // 알람 그룹
  alarmGroup: [
    {title: 'All', value: -1},
    {title: 'Communications', value: 1},
    {title: 'ProcessingError', value: 2},
    {title: 'Environmental', value: 3},
    {title: 'QoS', value: 4},
    {title: 'Equipment', value: 5}
  ],
  // 알람 상태값
  alarmState: [
    {title: 'None', value: -1},
    {title: 'Uncleared', value: 0},
    {title: 'Auto Clear', value: 1},
    {title: 'Manual Clear', value: 2},
    {title: 'Audit Clear', value: 3},
    {title: 'Audit', value: 4},
    {title: 'Unack', value: 5},
    {title: 'Ack', value: 6}
  ],
  // 해제 유형
  clearType: [
    {title: 'All', value: -1},
    {title: 'Uncleared', value: 1},
    {title: 'Cleared', value: 5}
  ],
  // Inhibit 여부
  inhibitStatus: [
    {title: '전체', value: -1},
    {title: 'false', value: 0},
    {title: 'true', value: 1}
  ],
  // 계정 LEVEL
  accountLevel: [
    {title: 'superAdmin', value: -1},
    {title: 'adminSds', value: 0},
    {title: 'managerBusiness', value: 1},
    {title: 'operatorBusiness', value: 2}
  ],
  // 동작 유형
  actionType: [
    {title: 'LOGIN', value: 'LOGIN'},
    {title: 'LOGOUT', value: 'LOGOUT'},
    {title: 'LOGIN_FAIL', value: 'LOGIN_FAIL'}
  ],
  // 상태
  status: [
    {title: '단절', value: 0},
    {title: '연결', value: 1},
    {title: '이중화', value: 2}
  ],
  // 시스템연동상태
  systemStatus: [
    {title: '연결', value: 0},
    {title: '미연결', value: 1}
  ],
  // 로그 레벨
  logLevel: [
    {title: 'OFF', value: 0},
    {title: 'DEBUG', value: 1},
    {title: 'INFO', value: 2},
    {title: 'WARN', value: 3},
    {title: 'ERROR', value: 4}
  ],
  // 언어 선택
  langType: [
    {title: '한국어', value: 'kr'},
    {title: '영어', value: 'en'}
  ],
  // 수행 명령
  command: [
    {title: '등록', value: 'ADD'},
    {title: '수정', value: 'UPDATE'},
    {title: '삭제', value: 'DELETE'},
  ],
  // 수행 결과
  result: [
    {title: '성공', value: 'SUCCESS'},
    {title: '실패', value: 'FAIL'},
  ],
  // 명령 함수
  functionSelect: [
    {title: '테넌트관리', value: '테넌트관리'},
    {title: '가입자관리', value: '가입자관리'},
    {title: '수집관리', value: '수집관리'},
    {title: 'NE관리', value: 'NE관리'},
  ],
  // 약관 유형
  termsType: [
    {title: '서비스이용약관', value: 'SERVICE'},
    {title: '개인정보취급방침', value: 'PRIVACY'},
  ],
  // 필수 여부
  reqYn: [
    {title: '필수', value: 'Y'},
    {title: '선택', value: 'N'},
  ],
  // 사용 여부
  useYn: [
    {title: '사용', value: 'Y'},
    {title: '미사용', value: 'N'},
  ],
  // 동의 여부
  termsAgrYn: [
    {title: '동의', value: 'Y'},
    {title: '미동의', value: 'N'},
  ],
  // 계정상태
  accountStatus: [
    {title: '정상', value: 'NORMAL'},
    {title: '잠김', value: 'LOCKED'},
  ],
  alarmYn: [
    {title: '수신', value: 'Y'},
    {title: '미수신', value: 'N'},
  ],
  // 계정 권한
  accountRole: [
    // {title: 'SUPER', value: 'SUPER'},
    {title: 'ADMIN', value: 'ADMIN'},
    {title: 'MANAGER', value: 'MANAGER'},
    {title: 'OPERATOR', value: 'OPERATOR'}
  ],
  // 연결-미연결
  connectType: [
    {title: '미연결', value: 0},
    {title: '연결', value: 1}
  ],
  // 접속 상태
  allowYn: [
    {title: '접속가능', value: 'Y'},
    {title: '접속불가', value: 'N'}
  ],
  // 라이센스 타입
  licenseType: [
    {title: '유상', value: 0},
    {title: '무상', value: 1},
    {title: 'Trial', value: 2},
    {title: 'Development', value: 3}
  ],
  // 시도 코드
  sidoCode: [
    {title: ['전국', '전국'], value: 0, cls: ''},
    {title: ['서울특별시', '서울'], value: 11, cls: 'seoul'},
    {title: ['부산광역시', '부산'], value: 21, cls: 'busan'},
    {title: ['대구광역시', '대구'], value: 22, cls: 'daegu'},
    {title: ['인천광역시', '인천'], value: 23, cls: 'incheon'},
    {title: ['광주광역시', '광주'], value: 24, cls: 'gwangju'},
    {title: ['대전광역시', '대전'], value: 25, cls: 'daejeon'},
    {title: ['울산광역시', '울산'], value: 26, cls: 'ulsan'},
    {title: ['세종특별자치시', '세종'], value: 29, cls: 'sejong'},
    {title: ['경기도', '경기'], value: 31, cls: 'gyeonggi-do'},
    {title: ['강원특별자치도', '강원'], value: 32, cls: 'kangwon'},
    {title: ['충청북도', '충북'], value: 33, cls: 'chungbuk'},
    {title: ['충청남도', '충남'], value: 34, cls: 'chungnam'},
    {title: ['전북특별자치도', '전북'], value: 35, cls: 'jeonbuk'},
    {title: ['전라남도', '전남'], value: 36, cls: 'jeonnam'},
    {title: ['경상북도', '경북'], value: 37, cls: 'gyeongbuk'},
    {title: ['경상남도', '경남'], value: 38, cls: 'gyeongnam'},
    {title: ['제주특별자치도', '제주'], value: 39, cls: 'jeju'},
  ]
};

export default EnumCodeEn;
