function buildServicesInternal() {
        if (_.isFunction(subdivision.buildServices)) {
            subdivision.vent.trigger('before:buildServices');
            return subdivision.buildServices().then(function () {
                subdivision.vent.trigger('after:buildServices');
            });
        } else {
            return Promise.resolve();
        }
    }
function buildServicesInternal() {
        if (_.isFunction(subdivision.buildServices)) {
            subdivision.vent.trigger('before:buildServices');
            return subdivision.buildServices().then(function () {
                subdivision.vent.trigger('after:buildServices');
            });
        } else {
            return Promise.resolve();
        }
    }
function buildServicesInternal ( ) { if ( _ . isFunction ( subdivision . buildServices ) ) { subdivision . vent . trigger ( 'before:buildServices' ) ; return subdivision . buildServices ( ) . then ( function ( ) { subdivision . vent . trigger ( 'after:buildServices' ) ; } ) ; } else { return Promise . resolve ( ) ; } }
This will move to service file
This will move to service file