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