     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         :

jraphical = require 'jraphical'
DomainManager = require 'domainer'
{secure, ObjectId}  = require 'bongo'

module.exports = class JDomain extends jraphical.Module

  domainManager = new DomainManager
  JAccount  = require './account'

      username      : client.context.user
      domainName : data.domainName
      mode          : "vm"

    # not working should talk with farslan
    domainManager.dnsManager.removeDNSRecordFromProxy record, callback

  @bindVM = secure ({connection:{delegate}}, params, callback)->
    record =
      mode          : "vm"
      username      : delegate.profile.nickname
      domainName    : params.domainName
