2020-12-07 09:14:30 +00:00
|
|
|
const asArray = function(arr) {
|
|
|
|
return Array.isArray(arr) ? arr : arr.toArray();
|
|
|
|
};
|
|
|
|
export default {
|
2021-05-04 16:25:57 +00:00
|
|
|
Name: item => item.Name,
|
|
|
|
Node: item => item.Node,
|
|
|
|
Service: item => item.ServiceName,
|
|
|
|
CheckID: item => item.CheckID || '',
|
|
|
|
ID: item => item.Service.ID || '',
|
|
|
|
Notes: item => item.Notes,
|
|
|
|
Output: item => item.Output,
|
2021-05-13 10:36:51 +00:00
|
|
|
ServiceTags: item => asArray(item.ServiceTags),
|
2020-12-07 09:14:30 +00:00
|
|
|
};
|