diff --git a/app/backend/database/index.js b/app/backend/database/index.js index cf72de3e3..85a57fa7d 100644 --- a/app/backend/database/index.js +++ b/app/backend/database/index.js @@ -374,60 +374,3 @@ module.exports.environment = environment; module.exports.request = request; module.exports.requestGroup = requestGroup; module.exports.response = response; - - -// ~~~~~~~~~~~~~~~ // -// MODEL FUNCTIONS // -// ~~~~~~~~~~~~~~~ // - -module.exports.requestCreateAndActivate = request.createAndActivate; -module.exports.requestDuplicateAndActivate = request.duplicateAndActivate; -module.exports.requestCreate = request.create; -module.exports.requestGetById = request.getById; -module.exports.requestFindByParentId = request.findByParentId; -module.exports.requestUpdate = request.update; -module.exports.requestUpdateContentType = request.updateContentType; -module.exports.requestDuplicate = request.duplicate; -module.exports.requestRemove = request.remove; -module.exports.requestAll = request.all; -module.exports.requestGetAncestors = request.getAncestors; - -module.exports.requestGroupCreate = requestGroup.create; -module.exports.requestGroupUpdate = requestGroup.update; -module.exports.requestGroupGetById = requestGroup.getById; -module.exports.requestGroupFindByParentId = requestGroup.findByParentId; -module.exports.requestGroupRemove = requestGroup.remove; -module.exports.requestGroupAll = requestGroup.all; -module.exports.requestGroupDuplicate = requestGroup.duplicate; - -module.exports.responseCreate = response.create; -module.exports.responseGetLatestByParentId = response.getLatestByParentId; - -module.exports.cookieJarCreate = cookieJar.create; -module.exports.cookieJarGetOrCreateForWorkspace = cookieJar.getOrCreateForWorkspace; -module.exports.cookieJarAll = cookieJar.all; -module.exports.cookieJarGetById = cookieJar.getById; -module.exports.cookieJarUpdate = cookieJar.update; - -module.exports.workspaceGetById = workspace.getById; -module.exports.workspaceCreate = workspace.create; -module.exports.workspaceAll = workspace.all; -module.exports.workspaceCount = workspace.count; -module.exports.workspaceUpdate = workspace.update; -module.exports.workspaceRemove = workspace.remove; - -module.exports.environmentCreate = environment.create; -module.exports.environmentUpdate = environment.update; -module.exports.environmentFindByParentId = environment.findByParentId; -module.exports.environmentGetOrCreateForWorkspace = environment.getOrCreateForWorkspace; -module.exports.environmentGetById = environment.getById; -module.exports.environmentRemove = environment.remove; -module.exports.environmentAll = environment.all; - -module.exports.settingsCreate = settings.create; -module.exports.settingsUpdate = settings.update; -module.exports.settingsGetOrCreate = settings.getOrCreate; - -module.exports.statsCreate = stats.create; -module.exports.statsUpdate = stats.update; -module.exports.statsGet = stats.get;