Source: models/halo/configuration.js

define('application/models/halo/configuration', [
    'rofl/models/api/abstract'
], function (
    Abstract
) {
    'use strict';

    return Abstract.extend({

        /**
         * This will create an URL to call on API.
         *
         * @param {Object} params - Parameters to determine the endpoint.
         * @returns {string} - The endpoint.
         */
        resolveEndpoint: function (params) { // eslint-disable-line no-unused-vars
            return '';
        },

        /**
         * Check whether we have to use local data for this API model.
         *
         * @param {Object} opts - Options object.
         * @returns {boolean} Whether the model needs to use local data.
         */
        hasLocalData: function (opts) { // eslint-disable-line no-unused-vars
            return true;
        },

        /**
         * Retrieves the local data if there is any.
         *
         * @param {Object} opts - Options object.
         * @returns {*} Local response data.
         */
        getLocalData: function (opts) { // eslint-disable-line no-unused-vars
            return {
                CREDENTIALS: {
                    clientId: '5b53ba89180c39aea0a5850f00bd0686',
                    clientSecret: '36d75b54e0442a4712889dc1356b8222'
                }
            };
        }
    });
});