-
Notifications
You must be signed in to change notification settings - Fork 0
/
ews.html
82 lines (78 loc) · 2.16 KB
/
ews.html
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
76
77
78
79
80
81
82
<script type="text/javascript">
RED.nodes.registerType('nodeRedEWS-access', {
category: 'config',
defaults: {
name: {
value: '',
required: true
}
},
paletteName: 'nodeRedEWS-access',
credentials: {
email: {
type: 'text',
required: true
},
password: {
type: 'password',
required: true
},
ewsUri: {
type: 'text',
required: true
}
},
label: function () {
return this.name || 'nodeRedEWS';
}
});
</script>
<script type="text/x-red" data-template-name="nodeRedEWS-access">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-bookmark"></i>Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-email">Email (login)</label>
<input type="text" id="node-config-input-email">
</div>
<div class="form-row">
<label for="node-config-input-email">Password</label>
<input type="password" id="node-config-input-password">
</div>
<div class="form-row">
<label for="node-config-input-ewsUri">EWS URL</label>
<input type="text" id="node-config-input-ewsUri">
</div>
</script>
<script type="text/x-red" data-help-name="nodeRedEWS-access"><p>Insert here the access token for <strong>Dialogflow.ai</strong>.</p>
<p>To get the token, click on the small cog in the left column and get them in the <em>Api Section</em></p>
</script>
<script type="text/javascript">
RED.nodes.registerType('nodeRedEWS', {
category: 'function',
color: '#FFCC66',
defaults: {
ews: {
value: '',
type: 'nodeRedEWS-access',
required: true
}
},
inputs: 1,
outputs: 1,
paletteLabel: 'EWS',
icon: 'chatbot-ai.png',
label: function() {
return this.name || 'nodeRedEWS';
}
});
</script>
<script type="text/x-red" data-template-name="nodeRedEWS">
<div class="form-row">
<label for="node-input-ews">EWS</label>
<input type="text" id="node-input-ews" placeholder="EWS access">
</div>
</script>
<script type="text/x-red" data-help-name="nodeRedEWS">HELP
</script>