define([
    'underscore',
    'backbone',
    'lib/sync-machine'
], function(
    _,
    Backbone,
    SyncMachine
) {
    'use strict';

    return Backbone.Model.extend({
        initialize : function()
        {
            _.extend(Backbone.Model.prototype, SyncMachine);

            Backbone.Model.prototype.initialize.apply(this, arguments);
        },

        sync : function(method, model, options)
        {
            var authToken = window.authToken;

            options.headers = options.headers || {};

            _.extend(options.headers, {
                Accept         : 'application/json',
                'Content-Type' : 'application/json',
            });

            if (authToken)
            {
                _.extend(options.headers, {
                    Authorization: 'Bearer '+authToken
                });
            }

            return Backbone.Model.prototype.sync.call(this, method, model, options);
        }
    });
});
@@ -429,21 +429,17 @@
     var 
-authT
+t
 oken = w
@@ -444,21 +444,17 @@
  window.
-authT
+t
 oken;%0A%0A 
@@ -799,21 +799,30 @@
 earer '+
-authT
+token.access_t
 oken%0A   

fix token access for api calls