module.exports = {
  // predefined emails and their default values
  emails: {
    'projectCommentParentReply': {
      layout: 'default',
      template: 'commentParentReply',
      subject: '<% if (commentUser.name) { %><%= commentUser.name %><% } else { %>Somebody<% } %> replied to your comment on <%= globals.systemName %>',
      templateLocals: { callerComment: '', parentComment: '', projectTitle: '', projectLink: '' },
      layoutLocals: { }
    },
    'projectCommentOwnerReply': {
      layout: 'default',
      template: 'commentOwnerReply',
      subject: '<%= project.title %> <% if (parentComment) { %>has a new comment<% } else { %>has a new discussion<% } %> on <%= globals.systemName %>',
      templateLocals: { callerComment: '', parentComment: '', projectTitle: '', projectLink: '' },
      layoutLocals: { }
    },
    'taskCommentParentReply': {
      layout: 'default',
      template: 'commentParentReply',
      subject: '<% if (commentUser.name) { %><%= commentUser.name %><% } else { %>Somebody<% } %> replied to your comment on <%= globals.systemName %>',
      templateLocals: { callerComment: '', parentComment: '', taskTitle: '', taskLink: '' },
      layoutLocals: { }
    },
    'taskCommentOwnerReply': {
      layout: 'default',
      template: 'commentOwnerReply',
      subject: '<%= task.title %> <% if (parentComment) { %>has a new comment<% } else { %>has a new discussion<% } %> on <%= globals.systemName %>',
      templateLocals: { callerComment: '', parentComment: '', taskTitle: '', taskLink: '' },
      layoutLocals: { }
    },
    'taskVolunteerAddedOwnerReply': {
      layout: 'default',
      template: 'taskVolunteerAddedOwnerReply',
      subject: '<% if (volunteer.name) { %><%= volunteer.name %><% } else { %>Someone<% } %> has volunteered for <%= task.title %> on <%= globals.systemName %>',
      templateLocals: { taskTitle: '', taskLink: '', profileLink: '', profileTitle: '', profileName: '', profileLocation: '', profileAgency: '' },
      layoutLocals: { }
    },
    'userPasswordResetEmail': {
      layout: 'default',
      template: 'userPasswordReset',
      subject: 'Reset your password on <%= globals.systemName %>',
      templateLocals: { },
      layoutLocals: { }
    },
    'contactUserAboutProject': {
      layout: 'default',
      template: 'contactUserAboutProject',
      subject: 'Take A Look At This Project',
      templateLocals: { projectLink: '', projectTitle: '', projectDescription: '' },
      layoutLocals: { }
    },
    'contactUserAboutTask': {
      layout: 'default',
      template: 'contactUserAboutTask',
      subject: 'Take A Look At This Opportunity',
      templateLocals: { opportunityLink: '', opportunityTitle: '', opportunityDescription: '', opportunityMadlibs: '' },
      layoutLocals: { }
    },
    'contactUserAboutProfile': {
      layout: 'default',
      template: 'contactUserAboutProfile',
      subject: 'Take A Look At This Profile',
      templateLocals: { profileLink: '', profileTitle: '', profileName: '', profileLocation: '', profileAgency: '' },
      layoutLocals: { }
    }
  }

};

@@ -3086,24 +3086,213 @@
 Locals: %7B %7D%0A
+    %7D,%0A    'welcomeUser': %7B%0A      layout: 'default',%0A      template: 'welcomeUser',%0A      subject: 'Welcome to %3C%25=globals.systemName %25%3E',%0A      templateLocals: %7B %7D,%0A      layoutLocals: %7B %7D%0A
     %7D%0A  %7D%0A%0A%7D

add new welcome email template