Summary of the Domain class
The class represents a eLegere Domain. A Domain is the sandbox in which eLegere applications run.
The domain class does not currently offer methods other than the getApplication method, and thus is used only as an intermediary class for the Application class. It exist mostly for forward compatibility reasons; in order to create a Domain object, use the organization.getDomain method.
The class requires the initialization through the elegere object.
getApplication fetches the application id by using the application's name. Afterwards, it yields a new Application using the previous identified application as reference.
string The parameter
applicationName stands for the Application name.
Returns the Promise of an Application object.