   @param callback [Function] The callback function
 ###
 exports.initialize = (dataSource, callback) ->
-  console.log 'initialize'
-  dataSource.connector = new ArangoDBConnector datasource
-  datasource.connector.connect callback if callback?
-  console.log 'dataSource'
+  return if not ajs?
+  dataSource.driver = ajs;
+  
+  settings = generateArangoDBObject dataSource.settings
+  
+  dataSource.connector = new ArangoDBConnector settings, dataSource
+  # dataSource.connector.connect callback if callback?
 
 
 ###

url = require 'url'

# ArangoDB Query Builder
qb = require 'aqb'

debug = require('debug') 'loopback:connector:arango'

  
  @author Navid Nikpour
###
class ArangoDBConnector extends Connector
  @extend: (obj) ->
    for key, value of obj when key not in ['extended', 'included']
      @[key] = value
