bugyo-cloud-client
Version:
HTTP client for Bugyo Cloud
15 lines • 925 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BASE_URL = exports.URL_TEMPLATE = exports.USER_AGENT = void 0;
const formatTag = (strings, ...keys) => (...values) => strings[0] + keys.map((key, i) => values[key] + strings[i + 1]).join("");
exports.USER_AGENT = "Mozilla 5.0 ()";
exports.URL_TEMPLATE = {
LoginPage: formatTag `https://id.obc.jp/${0}`,
CheckAuthenticationMethod: formatTag `https://id.obc.jp/${0}/login/CheckAuthenticationMethod`,
Authenticate: formatTag `https://id.obc.jp/${0}/login/login/?Length=5`,
PunchmarkPage: formatTag `https://hromssp.obc.jp/${0}/${1}/timeclock/punchmark/`,
TimeClock: formatTag `https://hromssp.obc.jp/${0}/${1}/TimeClock/InsertReadDateTime/`,
CallLogout: formatTag `https://hromssp.obc.jp/${0}/${1}/calllogout/logout/?manuallogin=True`,
};
exports.BASE_URL = "https://hromssp.obc.jp/";
//# sourceMappingURL=config.js.map