-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
37 lines (31 loc) · 1.08 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
/**
* # nodegame-mturk
* Copyright(c) 2016 Stefano Balietti
* MIT Licensed
*
* Handles standard operations with Amazon Mechanical Turk Server
*
* http://nodegame.org
*/
module.exports = function(program, logger) {
var stuff;
program = program || {};
stuff = {};
// Core.
stuff.logger = require('./lib/core/logger')(program);
stuff.config = require('./lib/core/config')(program);
stuff.codes = require('./lib/core/codes');
stuff.api = require('./lib/core/api');
//stuff.logger = require('./lib/core/program');
//stuff.logger = require('./lib/core/vorpal');
// Modules.
stuff.modules = {};
stuff.modules.manageHIT = require('./lib/modules/manageHIT');
stuff.modules.balance = require('./lib/modules/balance');
stuff.modules.get = require('./lib/modules/get');
stuff.modules.bonus = require('./lib/modules/bonus');
stuff.modules.qualification = require('./lib/modules/qualification');
stuff.modules.result = require('./lib/modules/result');
stuff.modules.show = require('./lib/modules/show');
return stuff;
};