define(function (require) {

    var Backbone = require('backbone'),
        _ = require('underscore'),
        globals = require('globals'),
        Instance = require('models/Instance'),
        VolumeState = require('./VolumeState');

    return Backbone.Model.extend({
      urlRoot: globals.API_V2_ROOT + "/volumes",

      parse: function (attributes) {
        attributes.start_date = new Date(attributes.start_date);
        attributes.state = new VolumeState({status_raw: attributes.status});
        attributes.status = attributes.status || "Unknown";

        if (attributes.attach_data && attributes.attach_data.instance_alias) {
          attributes.attach_data = {
            device: attributes.attach_data.device,
            instance_id: attributes.attach_data.instance_alias
          };
        }else{
          attributes.attach_data = {
            device: null,
            instance_id: null
          };
        }

        return attributes;
      },

      isAttached: function () {
        return this.get('status') == 'in-use' || this.get('status') == 'detaching';
      }

    });

  });

@@ -22,18 +22,16 @@
 ire) %7B%0A%0A
-  
   var Ba
@@ -70,124 +70,38 @@
     
-  _ = require('underscore'),%0A        globals = require('globals'),%0A        Instance = require('models/Instance'),%0A  
+globals = require('globals'),%0A
     
@@ -143,18 +143,16 @@
 ate');%0A%0A
-  
   return
@@ -180,18 +180,16 @@
 d(%7B%0A    
-  
 urlRoot:
@@ -224,18 +224,16 @@
 umes%22,%0A%0A
-  
     pars
@@ -261,26 +261,24 @@
 es) %7B%0A      
-  
 attributes.s
@@ -322,18 +322,16 @@
 _date);%0A
-  
       at
@@ -399,26 +399,24 @@
 us%7D);%0A      
-  
 attributes.s
@@ -456,18 +456,16 @@
 nown%22;%0A%0A
-  
       if
@@ -533,34 +533,32 @@
 lias) %7B%0A        
-  
 attributes.attac
@@ -560,34 +560,32 @@
 attach_data = %7B%0A
-  
           device
@@ -619,34 +619,32 @@
 vice,%0A          
- 
- 
 instance_id: att
@@ -678,34 +678,32 @@
 e_alias%0A        
-  
 %7D;%0A        %7Delse
@@ -699,19 +699,15 @@
     
- 
- 
 %7Delse%7B%0A
-  
     
@@ -739,34 +739,32 @@
 a = %7B%0A          
- 
- 
 device: null,%0A  
@@ -761,18 +761,16 @@
 : null,%0A
-  
         
@@ -793,31 +793,27 @@
 ull%0A        
- 
- 
 %7D;%0A
-  
       %7D%0A%0A   
@@ -809,18 +809,16 @@
      %7D%0A%0A
-  
       re
@@ -842,16 +842,12 @@
     
-  
 %7D,%0A%0A
-  
     
@@ -874,26 +874,24 @@
  () %7B%0A      
-  
 return this.
@@ -962,24 +962,18 @@
     
-  
 %7D%0A%0A  
- 
- 
 %7D);%0A%0A
-  
 %7D);%0A

switch to commonJS format