var _ = require('lodash');

if (process.env.NODE_ENV === 'production') {
  
  var twilio = require('twilio')(process.env.TWILIO_ACCOUNT_ID, process.env.TWILIO_AUTH_TOKEN);
  var phoneNumber = process.env.TWILIO_PHONE_NUMBER;

  module.exports = {
    send: function (number, message) {
      var messages = [];
      messages.concat(message);
      console.log(messages);
      messages.forEach(function (message) {
        twilio.sms.messages.create({
          body: message,
          to: number,
          from: phoneNumber
        }, function(err, response) {
          if (err) console.log(err);
          console.log('Sent:', response.sid, number, message);
        });
      });
    }
  };
  
} else {
  
  module.exports = {
    send: function (number, message) {
      messages.concat(message);
      messages.forEach(function (message) {
        console.log('Sent:', message);
      };
    }
  };
  
}
var _ = require('lodash');

if (process.env.NODE_ENV === 'production') {
  
  var twilio = require('twilio')(process.env.TWILIO_ACCOUNT_ID, process.env.TWILIO_AUTH_TOKEN);
  var phoneNumber = process.env.TWILIO_PHONE_NUMBER;

  module.exports = {
    send: function (number, message) {
      var messages = [];
      messages.concat(message);
      console.log(messages);
      messages.forEach(function (message) {
        twilio.sms.messages.create({
          body: message,
          to: number,
          from: phoneNumber
        }, function(err, response) {
          if (err) console.log(err);
          console.log('Sent:', response.sid, number, message);
        });
      });
    }
  };
  
} else {
  
  module.exports = {
    send: function (number, message) {
      messages.concat(message);
      messages.forEach(function (message) {
        console.log('Sent:', message);
      });
    }
  };
  
}
Add that nifty closing parenthesis
Add that nifty closing parenthesis
