     softDelete      : yes
 
     sharedMethods   :
-      static        : ['one', 'all', 'count', 'createDomain', 'bindVM', 'findByAccount', 'fetchByDomain', 'fetchByUserId', 
-                       'isDomainAvailable','addNewDNSRecord', 'removeDNSRecord', 'registerDomain', 'fetchBlockList', 
+      static        : ['one', 'count', 'createDomain', 'bindVM', 'findByAccount', 'fetchByDomain', 'fetchByUserId',
+                       'isDomainAvailable','addNewDNSRecord', 'removeDNSRecord', 'registerDomain', 'fetchBlockList',
                        'updateWhiteList', 'updateBlockList']
 
     indexes         :

      if err then console.log err
      domainList = ({name:domain.domain, id:domain.getId(), vms:domain.vms} for domain in domains)
      callback? err, domains
 
  @isDomainAvailable = (domainName, tld, callback)->
    domainManager.domainService.isDomainAvailable domainName, tld, (err, isAvailable)->
      callback err, isAvailable
  
  @registerDomain = secure (client, data, callback)->
    #default user info / all domains are under koding account.
    params =

        required    : yes
        set         : (value)-> value.toLowerCase()
      owner         : ObjectId
      regYears      : Number
      orderId       :
        recurly     : String
        resellerClub: String
      createdAt     :
        type        : Date
        default     : -> new Date
