UNPKG

ringcentral-personal-chatbot

Version:
27 lines (22 loc) 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * auto init database after server running */ const axios = require('axios'); const port = process.env.SERVER_PORT; const url = `http://127.0.0.1:${port}/admin/setup-database`; var _default = () => { console.log('-> init database...'); console.log('->', url); axios.put(url, undefined, { auth: { username: process.env.RINGCENTRAL_CHATBOT_ADMIN_USERNAME, password: process.env.RINGCENTRAL_CHATBOT_ADMIN_PASSWORD } }); }; exports.default = _default;