import { ICustomAction } from "./interfaces" ; import customactions from "./customactions.json" ; const CUSTOMACTIONS = customactions ; const CUSTOMACTIONS_BY_NAME = { } ; const CUSTOMACTIONS_BY_ID = { } ; CUSTOMACTIONS . forEach ( ( customAction ) => { CUSTOMACTIONS_BY_NAME [ customAction . internal_name ] = customAction ; CUSTOMACTIONS_BY_ID [ customAction . id ] = customAction ; } ) ; export { CUSTOMACTIONS , CUSTOMACTIONS_BY_NAME , CUSTOMACTIONS_BY_ID } ;