forked from gongfuPanada/node-dynamicscrm-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
75 lines (57 loc) · 1.67 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* Module's dependencies
*/
require('simple-errors');
var Util = require('./lib/util.js');
var DynamicsError = require('./lib/error.js');
var Dynamics = function (settings) {
"use strict";
// creates an instance of class that handles all requests
var util = new Util(settings);
this.authenticate = function (options, cb) {
util.Authenticate(options, cb);
};
// Compatibiliy backwards
this.Authenticate = function (options, cb) {
util.Authenticate(options, cb);
};
//
this.Create = function (options, cb) {
util.Create(options, cb);
};
this.Update = function (options, cb) {
util.Update(options, cb);
};
this.Retrieve = function (options, cb) {
util.Retrieve(options, cb);
};
this.RetrieveMultiple = function (options, cb) {
util.RetrieveMultiple(options, cb);
};
this.Associate = function (options, cb) {
util.Associate(options, cb);
};
this.Disassociate = function (options, cb) {
util.Disassociate(options, cb);
};
this.Execute = function (options, cb) {
util.Execute(options, cb);
};
this.RetrieveEntity = function (options, cb) {
util.RetrieveEntity(options, cb);
};
this.RetrieveAttribute = function (options, cb) {
util.RetrieveAttribute(options, cb);
};
this.Delete = function (options, cb) {
util.Delete(options, cb);
};
this.Assign = function (options, cb) {
util.Assign(options, cb);
};
this.AddToList = function (options, cb) {
util.AddToList(options, cb);
};
};
Dynamics.ApiError = DynamicsError;
module.exports = Dynamics;