let base = 'http://cso-reinvent-283321983.us-west-2.elb.amazonaws.com/api' ; export const environment = { production : true , login : base + '/authorization' , roles : base + '/roles' , add_member : ( roleId , member ) => { return { body : { id : member . id } , url : base + '/roles/' + roleId + '/members' } ; } , create_role : ( userId , roleName ) => { return { url : base + '/roles' , body : { name : roleName , owners : [ userId ] , administrators : [ userId ] , metadata : '' } } ; } , get_user : ( userId ) => { return { url : base + '/users/' + userId } ; } , users : base + '/users' , create_user : ( name , password , email , manager , metadata ) => { return { url : base + '/users' , body : { name : name , password : password , email : email , manager : manager , metadata : metadata } } ; } , user_proposals : ( userId ) => { return base + '/users/' + userId + '/proposals/open' ; } , get_proposal : ( proposalId ) => { return { url : base + '/proposals/' + proposalId , responseFn : ( response ) => { return response . json ( ) . data ; } } ; } , patch_proposal : ( proposalId , status , reason , metadata ) => { return { url : base + '/proposals/' + proposalId , method : 'patch' , body : { status : status , reason : reason , metadata : metadata } } ; } } ;