Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let CWRCWriterStorageDialogs = require('cwrc-git-dialogs');
// only continue loading the cwrcWriter if the user has authenticated with github
if (CWRCWriterStorageDialogs.authenticate()) {
let viaf = require('viaf-entity-lookup')
let dbpedia = require('dbpedia-entity-lookup');
let wikidata = require('wikidata-entity-lookup');
let getty = require('getty-entity-lookup');
let geonames = require('geonames-entity-lookup');
let CWRCWriterDialogs = require('cwrc-public-entity-dialogs');
CWRCWriterDialogs.registerEntitySources({
people: (new Map()).set('viaf', viaf).set('wikidata', wikidata).set('getty', getty).set('dbpedia', dbpedia),
places: (new Map()).set('geonames', geonames).set('viaf', viaf).set('dbpedia', dbpedia).set('wikidata', wikidata),
organizations: (new Map()).set('viaf', viaf).set('wikidata', wikidata).set('dbpedia', dbpedia),
titles: (new Map()).set('viaf', viaf).set('wikidata', wikidata).set('dbpedia', dbpedia)
})
//window.CWRCWriterStorageDialogs = require('./storage-dialogs.js');
let config = require('./config.js');