This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ffmpeg = require('fluent-ffmpeg') | |
const parseUrl = require('url').parse | |
// Polyfill, modifying the global Object | |
require('es6-object-assign').polyfill() | |
global.Promise = require('es6-promise').Promise | |
const aws4 = require('aws4') | |
const axios = require('axios') | |
const CancelToken = axios.CancelToken | |
const fs = require('fs') | |
const PipeViewer = require('pv') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Loading event'); | |
// Twilio Credentials | |
var accountSid = ''; | |
var authToken = ''; | |
var fromNumber = ''; | |
var https = require('https'); | |
var queryString = require('querystring'); |