Module: repository/email

Methods

emailService(to, subject, text)

This is a function that exposes an email service which will send out the email to the relevant user
Parameters:
Name Type Description
to Array.<String> The array of recepients email addresses
subject String The subject for the email to be sent
text String The body of the email

fetchEmailAddress(location) → {String}

Parameters:
Name Type Description
location String
Returns:
The email address of the cutting user at the location
Type
String

fetchEmailUsersAssociatedWithType(userType) → {Array.<emailUsers>}

Parameters:
Name Type Description
userType String
Returns:
Type
Array.<emailUsers>

Type Definitions

emailUsers

Type:
  • Object
Properties:
Name Type Description
emailUsers.email String The email of users