Skip to content

Instantly share code, notes, and snippets.

View uphotelagency's full-sized avatar

uphotelagency

View GitHub Profile
const result = polly().handle(error => error.status === 429)
.waitAndRetry(retryTimes).executeForPromise(async () => {
const response = await axios.get(`${apiUrl}/booking/v1/offer-index`, requestConfig);
if (response.data) {
return response.data;
}
return Promise.reject();
}
)
const path = require('path');
const restify = require('restify');
const eventSource = require('./transformers/eventSource');
const transformer = require('./transformers/transformer');
const utility = require('./botUtility');
// Import required bot services. See https://aka.ms/bot-services to learn more about the different parts of a bot.
const { BotFrameworkAdapter } = require('botbuilder');
// This bot's main dialog.
{
"id": 165840,
"name": "Flexible - Breakfast Inclusive",
"description": "Breakfast Included Room",
"currency_code": "EUR",
"charge_code": "100",
"end_date": "",
"source": "IBE Public",
"market_segment": "HBARWEB - Website Rooms",
"deposit_policy": {