loadScheduledResources = async function () {
    const api = require('../../../api').endpoints;
    const SCHEDULED_RESOURCES = ['post', 'page'];

    // Fetches all scheduled resources(posts/pages) with default API
    const results = await sequence(SCHEDULED_RESOURCES.map(resourceType => async () => {
        const result = await api.schedules.getScheduled.query({
            options: {
                resource: resourceType
            }
        });

        return result[resourceType] || [];
    }));

    return SCHEDULED_RESOURCES.reduce(function (obj, entry, index) {
        return Object.assign(obj, {
            [entry]: results[index]
        });
    }, {});
}
@description Load all scheduled posts/pages from database.
@return {Promise}