added svcapi ui and camunda code
[it/otf.git] / otf-frontend / server / src / feathers / services / messages / messages.hooks.js
1 /*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 #                                                                              #\r
3 #   Licensed under the Apache License, Version 2.0 (the "License");            #\r
4 #   you may not use this file except in compliance with the License.           #\r
5 #   You may obtain a copy of the License at                                    #\r
6 #                                                                              #\r
7 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 #                                                                              #\r
9 #   Unless required by applicable law or agreed to in writing, software        #\r
10 #   distributed under the License is distributed on an "AS IS" BASIS,          #\r
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
12 #   See the License for the specific language governing permissions and        #\r
13 #   limitations under the License.                                             #\r
14 ##############################################################################*/\r
15 \r
16 \r
17 const { authenticate } = require('@feathersjs/authentication').hooks;\r
18 const logger = require('../../../lib/logger');\r
19 const request = require('request-promise');\r
20 const agendaJobPopulate = require('../../hooks/agendaJobPopulate');\r
21 const utils = require('../../../lib/otf-util');\r
22 const axios = require('axios');\r
23 const util = require('../../../lib/otf-util');\r
24 \r
25 module.exports = {\r
26         before: {\r
27                 all: [],\r
28                 find: [],\r
29                 get: [],\r
30                 create: [\r
31                         \r
32                 ],\r
33                 update: [],\r
34                 patch: [],\r
35                 remove: []\r
36         },\r
37 \r
38         after: {\r
39                 all: [],\r
40                 find: [],\r
41                 get: [],\r
42                 create: [],\r
43                 update: [],\r
44                 patch: [],\r
45                 remove: []\r
46         },\r
47 \r
48         error: {\r
49                 all: [],\r
50                 find: [],\r
51                 get: [],\r
52                 create: [],\r
53                 update: [],\r
54                 patch: [],\r
55                 remove: []\r
56         }\r
57 };\r