{"size": 1037, "ext": "js", "max_stars_repo_path": "start/index.js", "max_stars_repo_name": "ludoo0d0a/slides-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "start/index.js", "max_issues_repo_name": "ludoo0d0a/slides-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "start/index.js", "max_forks_repo_name": "ludoo0d0a/slides-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.1162790698, "max_line_length": 55, "alphanum_fraction": 0.6489874638}

require('dotenv').config();
const auth = require('./auth');
const slides = require('./slides');
const collabs = require('./collabs');

function generateSlide(){
  console.log('-- Start generating slides. --')
  auth.getClientSecrets()
    .then(auth.authorize)
    .then(collabs.getCollabsData)
    .then(slides.createSlides)
    .then(slides.listSlides)
    .then(slides.createLists)
    .then(slides.replaceImages)
    //.then(slides.replaceTextSlides)
    //.then(slides.debugInfo)
    //.then(slides.catchPromise)
    .then(slides.openSlidesInBrowser)
    .then(() => {
      console.log('-- Finished generating slides. --');
    });
}


function readSlide(){
  console.log('-- Start reading slides. --')
  auth.getClientSecrets()
    .then(auth.authorize)
    .then(slides.selectFile)
    .then(slides.listSlides)
    //.then(slides.debugInfo)
    //.then(slides.catchPromise)
   // .then(slides.openSlidesInBrowser)
    .then(() => {
      console.log('-- Finished reading slides. --');
    });
}


generateSlide()

//readSlide();