-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
49 lines (39 loc) · 1.29 KB
/
index.js
File metadata and controls
49 lines (39 loc) · 1.29 KB
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
const authentication = require('./authentication');
const { befores = [], afters = [] } = require('./middleware');
// Triggers
const newEmail = require('./triggers/new_email');
// Creates (Actions)
const sendEmail = require('./creates/send_email');
const replyEmail = require('./creates/reply_email');
const decideEmail = require('./creates/decide_email');
const tagEmail = require('./creates/tag_email');
// Searches
const readEmail = require('./searches/read_email');
const checkInbox = require('./searches/check_inbox');
const listPending = require('./searches/list_pending');
const getThread = require('./searches/get_thread');
const searchContacts = require('./searches/search_contacts');
module.exports = {
version: require('./package.json').version,
platformVersion: require('zapier-platform-core').version,
authentication,
beforeRequest: [...befores],
afterResponse: [...afters],
triggers: {
[newEmail.key]: newEmail,
},
searches: {
[readEmail.key]: readEmail,
[checkInbox.key]: checkInbox,
[listPending.key]: listPending,
[getThread.key]: getThread,
[searchContacts.key]: searchContacts,
},
creates: {
[sendEmail.key]: sendEmail,
[replyEmail.key]: replyEmail,
[decideEmail.key]: decideEmail,
[tagEmail.key]: tagEmail,
},
resources: {},
};