function exportSubscribers() {
            return models.Subscriber.findAll(options).then((data) => {
                return formatCSV(data.toJSON(options));
            }).catch((err) => {
                return Promise.reject(new common.errors.GhostError({err: err}));
            });
        }
function exportSubscribers() {
            return models.Subscriber.findAll(options).then((data) => {
                return formatCSV(data.toJSON(options));
            }).catch((err) => {
                return Promise.reject(new common.errors.GhostError({err: err}));
            });
        }
function exportSubscribers ( ) { return models . Subscriber . findAll ( options ) . then ( ( data ) => { return formatCSV ( data . toJSON ( options ) ) ; } ) . catch ( ( err ) => { return Promise . reject ( new common . errors . GhostError ( { err : err } ) ) ; } ) ; }
Export data, otherwise send error 500
Export data otherwise send error 500
export all the subscribers