   # `accountId` Filter opportunities by account  
   # `callback` Callback function (err, data)
   @opportunities: (accountId, callback) ->
+    LoggrUtil.log "get opportunities"
     soql = "SELECT Id, Name
             FROM Opportunity
             WHERE IsClosed=false AND AccountId='#{accountId}' ORDER BY LastActivityDate"

  # `accountId` Id of the account to count the related contacts on  
  # `callback` Callback function (err, data)
  @getRelatedCount: (relatedObject, accountId, callback) ->
    soql = "SELECT COUNT() FROM #{relatedObject} WHERE Account.Id = '#{accountId}'"
    SFDC.query soql, callback


  # `accountIds` Array of account IDs  
  # `callback` Callback function (err, result)
  @getAccountNames: (accountIds, callback) ->
    LoggrUtil.log "getAccountNames"
    soql = SFDC.getAccountNameQuery accountIds
    SFDC.query soql, callback

