(Assistant)
| 51 | } |
| 52 | |
| 53 | const sanitizeAssistant = (Assistant) => { |
| 54 | try { |
| 55 | return Assistant.map((assistant) => { |
| 56 | return { |
| 57 | id: assistant.id, |
| 58 | details: assistant.details, |
| 59 | credential: assistant.credential, |
| 60 | iconSrc: assistant.iconSrc, |
| 61 | type: assistant.type |
| 62 | } |
| 63 | }) |
| 64 | } catch (error) { |
| 65 | throw new Error(`exportImport.sanitizeAssistant ${getErrorMessage(error)}`) |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | const sanitizeCustomTemplate = (CustomTemplate) => { |
| 70 | try { |
no test coverage detected