import common from '../definitions/common.json';
import rawDefinition from '../definitions/vulnerability.json';
import deepmerge from 'deepmerge';

import {Base} from './Base';

class Vulnerability extends Base  {

    constructor() {
        const definition_extension = {
            "img": "vulnerability.png",
            "prefix": "vulnerability--",
            "active": true,
            "relationships": [
                {"type": "created-by", "target": "identity", "x_exclusive": true, "x_embed": "created_by_ref"}
            ]
        }

        let def = deepmerge(definition_extension, rawDefinition);

        super(common, def);
    }
}

const singleton = new Vulnerability();

export default singleton;
