/* The MIT License (MIT)
 *
 * Copyright (c) 2016 Cyril Schumacher.fr
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/// <reference path="../../typings/tsd.d.ts" />

require.config({
    paths: {
        /* Vendor */
        "angular": "vendor/angular",
        "angular-google-analytics": "vendor/angular-google-analytics",
        "angular-route": "vendor/angular-route",
        "angular-resource": "vendor/angular-resource",
        "angular-sanitize": "vendor/angular-sanitize",
        "angular-scroll": "vendor/angular-scroll",
        "angular-translate": "vendor/angular-translate",
        "angularjs-viewhead": "vendor/angularjs-viewhead",
        "autosize": "vendor/autosize",
        "canvasRenderer": "vendor/CanvasRenderer",
        "i18next": "vendor/i18next",
        "jquery": "vendor/jquery",
        "ng-i18next": "vendor/ng-i18next",
        "projector": "vendor/Projector",
        "tmhDynamicLocale": "vendor/tmhDynamicLocale",
        "snap.js": "vendor/snap",
        "three": "vendor/three",

        /* Project */
        "loader": "loader",

        /* Online */
        "reCaptcha": "https://www.google.com/recaptcha/api"
    },
    shim: {
        "angular": {
            exports: "angular"
        },
        "angular-google-analytics": ["angular"],
        "angular-route": ["angular"],
        "angular-resource": ["angular"],
        "angular-sanitize": ["angular"],
        "angular-scroll": ["angular"],
        "angular-translate": ["angular"],
        "angularjs-viewhead": ["angular"],
        "tmhDynamicLocale": ["angular", "angular-translate"],
        "autosize": ["jquery"],
            "jquery"
        ],
        "ng-i18next": ["angular", "i18next"],
        "projector": ["three"]
    }
});

// Start the application.
require(["loader"]);
        "canvasRenderer": ["three"],
        "i18next": [