View index.js
var app = require('../app');
var express = require('express');
var url = require('url');
var router = express.Router();
var intercom_settings = {
"APP_ID": process.env.INTERCOM_APP_ID,
"API_KEY": process.env.INTERCOM_API_KEY
}
var intercom = require('node-intercom').app(intercom_settings);