<!doctype html>
<html>
    <head>
        <title>{{applicationName}}</title>
        <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
        <meta content="utf-8" http-equiv="encoding">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <meta name="description" content="EspoCRM is Open Source CRM application. Increase profitability through customer loyalty!">

        <script type="text/javascript" src="{{basePath}}client/lib/jquery-2.1.4.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/underscore-min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/es6-promise.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/backbone-min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/handlebars.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/base64.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/jquery-ui.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/moment.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/moment-timezone-with-data.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/jquery.timepicker.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/jquery.autocomplete.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/bootstrap.min.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/bootstrap-datepicker.js"></script>
        <script type="text/javascript" src="{{basePath}}client/lib/bull.js"></script>

        <script type="text/javascript" src="{{basePath}}client/src/loader.js" data-base-path="{{basePath}}"></script>
        <script type="text/javascript" src="{{basePath}}client/src/utils.js"></script>
        <script type="text/javascript" src="{{basePath}}client/src/exceptions.js"></script>

        <link href="{{basePath}}{{stylesheet}}" rel="stylesheet" id='main-stylesheet'>
        <link rel="icon" href="{{basePath}}client/img/favicon.ico" type="image/x-icon">
        <link rel="shortcut icon" href="{{basePath}}client/img/favicon.ico" type="image/x-icon">

        <script type="text/javascript">
            $(function () {
                Espo.require('app', function (App) {
                    var app = new App({
                        useCache: false,
                        cacheTimestamp: {{cacheTimestamp}},
                        url: 'api/v1',
                        basePath: '{{basePath}}'
                    }, function (app) {
                        {{runScript}}
                    });
                });
            });
        </script>
    </head>
    <body>
        <div class="container content"></div>
        <footer>
            <p class="credit small">&copy; 2016 <a href="http://www.espocrm.com" title="Powered by EspoCRM" alt="Visit official EspoCRM website">EspoCRM</a></p>
        </footer>
    </body>
</html>
