{"size": 895, "ext": "js", "max_stars_repo_path": "lambda/custom/APL/templates/titleMessageBoxTemplate.js", "max_stars_repo_name": "Wuvist/alexa-rocketchat", "max_stars_repo_stars_event_min_datetime": "2019-04-01T06:20:50.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-13T13:09:23.000Z", "max_issues_repo_path": "lambda/custom/APL/templates/titleMessageBoxTemplate.js", "max_issues_repo_name": "Wuvist/alexa-rocketchat", "max_issues_repo_issues_event_min_datetime": "2019-03-31T16:30:31.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T15:11:39.000Z", "max_forks_repo_path": "lambda/custom/APL/templates/titleMessageBoxTemplate.js", "max_forks_repo_name": "Wuvist/alexa-rocketchat", "max_forks_repo_forks_event_min_datetime": "2019-03-31T15:11:54.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-06T05:00:25.000Z"}
{"max_stars_count": 21, "max_issues_count": 92, "max_forks_count": 40, "avg_line_length": 18.2653061224, "max_line_length": 64, "alphanum_fraction": 0.574301676}
const layout = require('../layouts/titleMessageBoxLayout.json');
const APLconfig = require('../APLconfig');

const template = ({ title, message }) => ({
	type: 'Alexa.Presentation.APL.RenderDocument',
	version: '1.0',
	document: layout,
	datasources: {

		PostMessageData: {
			type: 'object',
			objectId: 'rcPostMessage',
			backgroundImage: {
				contentDescription: null,
				smallSourceUrl: null,
				largeSourceUrl: null,
				sources: [
					{
						url: APLconfig.bg1,
						size: 'small',
						widthPixels: 0,
						heightPixels: 0,
					},
					{
						url: APLconfig.bg1,
						size: 'large',
						widthPixels: 0,
						heightPixels: 0,
					},
				],
			},
			textContent: {
				title: {
					type: 'PlainText',
					text: title,
				},
				message: {
					type: 'PlainText',
					text: message,
				},
			},
			logoUrl: APLconfig.logoUrl,
		},

	},
});

module.exports = template;
