-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgiftExchangeBasic.js
51 lines (46 loc) · 1.33 KB
/
giftExchangeBasic.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
/*
Copyright 2017 Gregor Moss
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may obtain a copy of the ECL 2.0 License and BSD License at
https://raw.githubusercontent.com/BlueSlug/infusionGiftExchange/master/LICENCE.txt
*/
"use strict";
var fluid = require("infusion");
require("../../src/infusionGiftExchange.js");
fluid.setLogging(fluid.logLevel.IMPORTANT);
fluid.defaults("fluid.giftExchange.example", {
gradeNames: ["fluid.giftExchange"],
giftExchangeOptions: {
hostAddress: "",
hostSecure: true,
hostPort: 465,
hostAuth: {
username: "",
password: ""
},
mailerDebug: true,
mailerLogging: true,
sender: ""
},
participants: [
{
name: "Jack Skelington",
emailAddress: "",
interests: "cats, dogs, snow"
},
{
name: "Chris Cringle",
emailAddress: "",
interests: "cars, bikes, sun"
},
{
name: "Gift Giver",
emailAddress: "",
interests: "crosswords, programming, reading"
}
]
});
var giftExchange = fluid.giftExchange.example();
giftExchange.selectAndNotifyParticipants();