
(function () {
    'use strict';

    function Stationspinner($resource, $http) {
        var service = {};

        /* accounting services */

        service.Capsuler = $resource('/api/accounting/capsuler/');
        service.APIKey = $resource('/api/accounting/apikeys/:id/', {id: '@id'});
        service.MissingTraining = $resource('/api/accounting/missing-training/');

        /* char services */

        service.CharacterSheet = $resource('/api/char/CharacterSheet/:characterID/', {characterID: '@characterID'});
        service.Notifications = $resource('/api/char/Notifications/');
        service.SkillInTraining = $resource('/api/char/SkillInTraining/:characterID/', {characterID: '@characterID'});
        service.DistinctCorporations = $resource('/api/char/DistinctCorporations/');
        service.DistinctAlliances = $resource('/api/char/DistinctAlliances/');

        /* corp services */

        service.CorporationSheet = $resource('/api/corp/CorporationSheet/:corporationID/', {corporationID: '@corporationID'});

        /* evemail services */

        service.Mail = $resource('/api/evemail/Mail/:messageID/', {messageID: '@messageID'});
        service.SearchLanguages = $resource('/api/evemail/Languages/');

        /* economist services */

        service.CharacterWallet = $resource('/api/economist/CharacterWallet/');

        return service;
    }

    angular.
        module('stationspinnerServices', []).
        factory('Stationspinner', ['$resource', '$http', Stationspinner]);
}());

@@ -1,9 +1,8 @@
-%0D
 %0A(functi
@@ -8,17 +8,16 @@
 ion () %7B
-%0D
 %0A    'us
@@ -26,19 +26,17 @@
 strict';
-%0D%0A%0D
+%0A
 %0A    fun
@@ -75,17 +75,16 @@
 $http) %7B
-%0D
 %0A       
@@ -101,19 +101,17 @@
 ce = %7B%7D;
-%0D%0A%0D
+%0A
 %0A       
@@ -128,35 +128,33 @@
 ting services */
-%0D%0A%0D
+%0A
 %0A        service
@@ -200,25 +200,24 @@
 capsuler/');
-%0D
 %0A        ser
@@ -281,25 +281,24 @@
 id: '@id'%7D);
-%0D
 %0A        ser
@@ -363,27 +363,25 @@
 training/');
-%0D%0A%0D
+%0A
 %0A        /* 
@@ -388,35 +388,33 @@
 char services */
-%0D%0A%0D
+%0A
 %0A        service
@@ -506,33 +506,32 @@
 @characterID'%7D);
-%0D
 %0A        service
@@ -575,35 +575,95 @@
 /Notifications/'
+, %7B%7D, %7B%0A            'query': %7Bmethod: 'GET', isArray: false%7D%7D
 );
-%0D
 %0A        service
@@ -761,25 +761,24 @@
 racterID'%7D);
-%0D
 %0A        ser
@@ -850,17 +850,16 @@
 ions/');
-%0D
 %0A       
@@ -925,27 +925,167 @@
 lliances/');
-%0D%0A%0D
+%0A        service.WalletTransactions = $resource('/api/char/WalletTransactions/', %7B%7D, %7B%0A            'query': %7Bmethod: 'GET', isArray: false%7D%7D);%0A
 %0A        /* 
@@ -1092,35 +1092,33 @@
 corp services */
-%0D%0A%0D
+%0A
 %0A        service
@@ -1228,19 +1228,17 @@
 onID'%7D);
-%0D%0A%0D
+%0A
 %0A       
@@ -1252,35 +1252,33 @@
 mail services */
-%0D%0A%0D
+%0A
 %0A        service
@@ -1355,17 +1355,16 @@
 geID'%7D);
-%0D
 %0A       
@@ -1423,27 +1423,25 @@
 anguages/');
-%0D%0A%0D
+%0A
 %0A        /* 
@@ -1461,19 +1461,17 @@
 vices */
-%0D%0A%0D
+%0A
 %0A       
@@ -1542,19 +1542,133 @@
 llet/');
-%0D%0A%0D
+%0A%0A        /* sde services */%0A%0A        service.InvType = $resource('/api/sde/InvType/:typeID/', %7BtypeID: '@typeID'%7D);%0A
 %0A       
@@ -1687,18 +1687,15 @@
 ice;
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A   
@@ -1703,17 +1703,16 @@
 angular.
-%0D
 %0A       
@@ -1749,17 +1749,16 @@
 s', %5B%5D).
-%0D
 %0A       
@@ -1828,13 +1828,11 @@
 r%5D);
-%0D
 %0A%7D());
-%0D
 %0A

Fix formatting. Add WalletTransactions and pagination for notifications