 import moment from 'moment'
 
 API.add 'service/oab/deposit',
-  get: 
-    authOptional: true
-    action: () -> 
+  get:
+    authOptional: true
+    action: () ->
       return API.service.oab.deposit undefined, this.queryParams, API.http.getFiles(this.queryParams.url), this.userId
-  post: 
-    authOptional: true
-    action: () -> 
+  post:
+    authOptional: true
+    action: () ->
       return API.service.oab.deposit undefined, this.bodyParams, this.request.files, this.userId
 
 API.add 'service/oab/deposit/:did',
-  get: 
-    authOptional: true
-    action: () -> 
+  get:
+    authOptional: true
+    action: () ->
       return API.service.oab.deposit this.urlParams.did, this.queryParams
-  post: 
-    authOptional: true
-    action: () -> 
+  post:
+    authOptional: true
+    action: () ->
       return API.service.oab.deposit this.urlParams.did, this.bodyParams, this.request.files
 
 API.add 'service/oab/deposits',

    description = description.trim()
    description += '.' if description.lastIndexOf('.') isnt description.length-1
    description += ' ' if description.length
    description += 'Deposited by shareyourpaper.org and openaccessbutton.org. We\'ve taken reasonable steps to ensure this content doesn\'t violate copyright, however, if you think it does you can request a takedown by emailing help@openaccessbutton.org.'
    meta =
      title: d.metadata.title ? 'Unknown',
      description: description.trim(),

  oab_request.update rid, {hold:'$DELETE',email:'$DELETE',holds:r.holds,refused:r.refused,status:r.status}
  #API.mail.send(); # inform requestee that their request has been refused
  return r
