class Constants { static BASE_URL = 'https://dhlottery.co.kr' static API_URL = 'https://ol.dhlottery.co.kr' static DEFAULT_SESSION_URL = `${Constants.BASE_URL}/gameResult.do?method=byWin&wiselog=H_C_1_1` static SYSTEM_CHECK_URL = `${Constants.BASE_URL}/index_check.html` static MAIN_PAGE_URL = `${Constants.BASE_URL}/common.do?method=main` static LOGIN_REQUEST_URL = `${Constants.BASE_URL}/userSsl.do?method=login` static BUY_PAGE_URL = `${Constants.API_URL}/olotto/game/game645.do` static BUY_LOTTO_645_URL = `${Constants.API_URL}/olotto/game/execBuy.do` static BUY_READY_SOCKET_URL = `${Constants.API_URL}/olotto/game/egovUserReadySocket.json` static ROUND_INFO_URL = `${Constants.BASE_URL}/common.do?method=main` static DEFAULT_TIMEOUT = 10 * 1000 static DEFAULT_HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"', 'sec-ch-ua-mobile': '?0"', 'Upgrade-Insecure-Requests': '1', 'Origin': Constants.BASE_URL, 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Referer': Constants.BASE_URL, 'Sec-Fetch-Site': 'same-site', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Accept-Language': 'ko,en-US;q=0.9,en;q=0.8,ko-KR;q=0.7', } static LOTTO_BUY_TYPES = { '1': '수동', '2': '반자동', '3': '자동' } static CONFIG_FILENAME = process.env.LOTTO_AUTOMATION_CONFIG_FILENAME ?? 'Config.json' static CONFIG_PATH = `${process.env.LOTTO_AUTOMATION_CONFIG_DIR ?? '.'}/${Constants.CONFIG_FILENAME}` } module.exports = Constants