Commits
1 + | const jq = require('node-jq'); |
2 + | const { env, drgWithAttach } = require('./util'); |
3 + | |
4 + | // BTR Data Access calls BTR Services in DRG and returns specified results |
5 + | |
6 + | async function getNotificationBRS(attach, serialnumber) { |
7 + | const body = { |
8 + | id: 'brs.notificationQuery', |
9 + | role: 'sds.foces', |
10 + | endpoint: env, |
11 + | fields: { |
12 + | SerialNumber: serialnumber, |
13 + | } |
14 + | }; |
15 + | |
16 + | return await drgWithAttach(attach, body); |
17 + | } |
18 + | |
19 + | module.exports = { |
20 + | getNotificationBRS, |
21 + | }; |