<gh_stars>1-10
/*
* Module's dependencies
*/
var Util    = require('./lib/util.js');
var Message = require('./lib/message.js');

var Dynamics = function (settings) {
    "use strict";

    // creates an instance of class that handles all requests
    var util = new Util(settings);
    var message = new Message(util);

    // this.authenticate = function (options, cb) {
    //     util.Authenticate(options, cb);
    // };

    // // Compatibiliy backwards
    // this.Authenticate = function (options, cb) {
    //     util.Authenticate(options, cb);
    // };
    
    this.Create = function (options) {
        return message.Create(options);
    };

    this.Update = function (options) {
        return message.Update(options);
    };

    this.Retrieve = function (options) {
        return message.Retrieve(options);
    };

    this.RetrieveMultiple = function (options) {
        return message.RetrieveMultiple(options);
    };

    this.Associate = function (options) {
        return message.Associate(options);
    };

    this.Disassociate = function (options) {
        return message.Disassociate(options);
    };

    this.Execute = function (options) {
        return message.Execute(options);
    };

    this.Delete = function (options) {
        return message.Delete(options);
    };
};

module.exports = Dynamics;
