'use strict';

/**
 * Requirements
 * @ignore
 */
const CmExporter = require('../export/CmExporter.js').CmExporter;
const ExportTask = require('entoj-system').task.ExportTask;
const GlobalRepository = require('entoj-system').model.GlobalRepository;
const CliLogger = require('entoj-system').cli.CliLogger;
const BuildConfiguration = require('entoj-system').model.configuration.BuildConfiguration;


/**
 * @memberOf task
 */
class CmExportTask extends ExportTask
{
    /**
     * @param {cli.CliLogger} cliLogger
     * @param {model.GlobalRepository} globalRepository
     */
    constructor(cliLogger, globalRepository, buildConfiguration, CmExporter)
    {
        super(cliLogger, globalRepository, CmExporter);
    }


    /**
     * @inheritDocs
     */
    static get injections()
    {
        return { 'parameters': [CliLogger, GlobalRepository, BuildConfiguration, CmExporter] };
    }


    /**
     * @inheritDocs
     */
    static get className()
    {
        return 'task/CmExportTask';
    }


    /**
     * @inheritDocs
     */
    get sectionName()
    {
        return 'Exporting CoreMedia files';
    }


    /**
     * @inheritDocs
     */
    get exportName()
    {
        return 'cm';
    }
}


/**
 * Exports
 * @ignore
 */
module.exports.CmExportTask = CmExportTask;

@@ -169,16 +169,100 @@
 rtTask;%0A
+const EntitiesRepository = require('entoj-system').model.entity.EntitiesRepository;%0A
 const Gl
@@ -387,425 +387,75 @@
 er;%0A
-const BuildConfiguration = require('entoj-system').model.configuration.BuildConfiguration;%0A%0A%0A/**%0A * @memberOf task%0A */%0Aclass CmExportTask extends ExportTask%0A%7B%0A    /**%0A     * @param %7Bcli.CliLogger%7D cliLogger%0A     * @param %7Bmodel.GlobalRepository%7D globalRepository%0A     */%0A    constructor(cliLogger, globalRepository, buildConfiguration, CmExporter)%0A    %7B%0A        super(cliLogger, globalRepository, CmExporter);%0A    %7D%0A%0A
+%0A%0A/**%0A * @memberOf task%0A */%0Aclass CmExportTask extends ExportTask%0A%7B
 %0A   
@@ -469,33 +469,32 @@
    * @inheritDoc
-s
 %0A     */%0A    sta
@@ -563,22 +563,24 @@
 Logger, 
-Global
+Entities
 Reposito
@@ -587,26 +587,24 @@
 ry, 
-BuildConfiguration
+GlobalRepository
 , Cm
@@ -642,33 +642,32 @@
    * @inheritDoc
-s
 %0A     */%0A    sta
@@ -754,33 +754,32 @@
    * @inheritDoc
-s
 %0A     */%0A    get
@@ -877,17 +877,16 @@
 heritDoc
-s
 %0A     */

add EntitiesRepository dep