import ApplicationSerializer from 'open-event-frontend/serializers/application';

export default ApplicationSerializer.extend({
  attrs: {
    speakersAccepted  : 'speakers.accepted',
    speakersConfirmed : 'speakers.confirmed',
    speakersPending   : 'speakers.pending',
    speakersRejected  : 'speakers.rejected',
    speakers          : 'speakers.total'
  }
});

@@ -121,16 +121,560 @@
 xtend(%7B%0A
+  normalizeResponse(store, primaryModelClass, payload) %7B%0A    payload.data.attributes.speakersAccepted = payload.data.attributes.speakers.accepted;%0A    payload.data.attributes.speakersConfirmed = payload.data.attributes.speakers.confirmed;%0A    payload.data.attributes.speakersPending = payload.data.attributes.speakers.pending;%0A    payload.data.attributes.speakersRejected = payload.data.attributes.speakers.rejected;%0A    payload.data.attributes.speakersTotal = payload.data.attributes.speakers.total;%0A    return this._super(...arguments);%0A  %7D,%0A
   attrs:
@@ -705,26 +705,25 @@
  : 'speakers
-.a
+A
 ccepted',%0A  
@@ -745,34 +745,33 @@
 rmed : 'speakers
-.c
+C
 onfirmed',%0A    s
@@ -794,26 +794,25 @@
  : 'speakers
-.p
+P
 ending',%0A   
@@ -837,26 +837,25 @@
  : 'speakers
-.r
+R
 ejected',%0A  
@@ -881,26 +881,25 @@
  : 'speakers
-.t
+T
 otal'%0A  %7D%0A%7D)

add attributes in the payload (#2381)