text: "use strict";
  var __cov_pFhJoCdKHS6A0qrRbOr20Q = (Function('return this'))();
  if (!__cov_pFhJoCdKHS6A0qrRbOr20Q.__coverage__) { __cov_pFhJoCdKHS6A0qrRbOr20Q.__coverage__ = {}; }
  __cov_pFhJoCdKHS6A0qrRbOr20Q = __cov_pFhJoCdKHS6A0qrRbOr20Q.__coverage__;
  if (!(__cov_pFhJoCdKHS6A0qrRbOr20Q['packages/node_modules/ciscospark/src/plugins/team-memberships.js'])) {
     __cov_pFhJoCdKHS6A0qrRbOr20Q['packages/node_modules/ciscospark/src/plugins/team-memberships.js'] = {"path":"packages/node_modules/ciscospark/src/plugins/team-memberships.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"fnMap":{"1":{"name":"create","line":58,"loc":{"start":{"line":29,"column":43},"end":{"line":58,"column":21}}},"2":{"name":"(anonymous_2)","line":63,"loc":{"start":{"line":64,"column":12},"end":{"line":64,"column":12}}},"3":{"name":"get","line":96,"loc":{"start":{"line":29,"column":43},"end":{"line":94,"column":18}}},"4":{"name":"(anonymous_4)","line":100,"loc":{"start":{"line":99,"column":12},"end":{"line":99,"column":12}}},"5":{"name":"list","line":138,"loc":{"start":{"line":29,"column":43},"end":{"line":134,"column":16}}},"6":{"name":"(anonymous_6)","line":144,"loc":{"start":{"line":139,"column":12},"end":{"line":139,"column":12}}},"7":{"name":"remove","line":186,"loc":{"start":{"line":29,"column":43},"end":{"line":178,"column":21}}},"8":{"name":"(anonymous_8)","line":192,"loc":{"start":{"line":185,"column":12},"end":{"line":185,"column":21}}},"9":{"name":"update","line":210,"loc":{"start":{"line":29,"column":43},"end":{"line":202,"column":21}}},"10":{"name":"(anonymous_10)","line":216,"loc":{"start":{"line":209,"column":12},"end":{"line":209,"column":12}}}},"statementMap":{"1":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"2":{"start":{"line":7,"column":0},"end":{"line":7,"column":0}},"3":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true},"4":{"start":{"line":59,"column":4},"end":{"line":59,"column":4}},"5":{"start":{"line":64,"column":12},"end":{"line":64,"column":12}},"6":{"start":{"line":95,"column":4},"end":{"line":95,"column":4}},"7":{"start":{"line":96,"column":4},"end":{"line":96,"column":4}},"8":{"start":{"line":99,"column":12},"end":{"line":99,"column":12}},"9":{"start":{"line":134,"column":16},"end":{"line":134,"column":16}},"10":{"start":{"line":135,"column":4},"end":{"line":135,"column":4}},"11":{"start":{"line":139,"column":12},"end":{"line":139,"column":12}},"12":{"start":{"line":179,"column":4},"end":{"line":179,"column":4}},"13":{"start":{"line":181,"column":4},"end":{"line":181,"column":4}},"14":{"start":{"line":188,"column":8},"end":{"line":190,"column":9}},"15":{"start":{"line":189,"column":10},"end":{"line":189,"column":10}},"16":{"start":{"line":191,"column":8},"end":{"line":191,"column":8}},"17":{"start":{"line":203,"column":4},"end":{"line":203,"column":4}},"18":{"start":{"line":204,"column":4},"end":{"line":204,"column":4}},"19":{"start":{"line":209,"column":12},"end":{"line":209,"column":12}},"20":{"start":{"line":0,"column":0},"end":{"line":0,"column":0},"skip":true}},"branchMap":{"1":{"line":97,"type":"binary-expr","locations":[{"start":{"line":95,"column":15},"end":{"line":95,"column":15}},{"start":{"line":95,"column":32},"end":{"line":95,"column":4}}]},"2":{"line":101,"type":"binary-expr","locations":[{"start":{"line":99,"column":21},"end":{"line":99,"column":21}},{"start":{"line":99,"column":39},"end":{"line":99,"column":12}}]},"3":{"line":187,"type":"binary-expr","locations":[{"start":{"line":179,"column":15},"end":{"line":179,"column":15}},{"start":{"line":179,"column":32},"end":{"line":179,"column":4}}]},"4":{"line":195,"type":"if","locations":[{"start":{"line":188,"column":8},"end":{"line":188,"column":8}},{"start":{"line":188,"column":8},"end":{"line":188,"column":8}}]},"5":{"line":211,"type":"binary-expr","locations":[{"start":{"line":203,"column":15},"end":{"line":203,"column":15}},{"start":{"line":203,"column":32},"end":{"line":203,"column":4}}]}}};
  }
  __cov_pFhJoCdKHS6A0qrRbOr20Q = __cov_pFhJoCdKHS6A0qrRbOr20Q['packages/node_modules/ciscospark/src/plugins/team-memberships.js'];
  __cov_pFhJoCdKHS6A0qrRbOr20Q.s['1']++;Object.defineProperty(exports,'__esModule',{value:true});__cov_pFhJoCdKHS6A0qrRbOr20Q.s['2']++;var _sparkCore=require('@ciscospark/spark-core');__cov_pFhJoCdKHS6A0qrRbOr20Q.s['3']++;var TeamMemberships=_sparkCore.SparkPlugin.extend({create:function create(membership){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['1']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['4']++;return this.request({method:'POST',uri:this.config.hydraServiceUrl+'/team/memberships',body:membership}).then(function(res){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['2']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['5']++;return res.body;});},get:function get(membership){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['3']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['6']++;var id=(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['1'][0]++,membership.id)||(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['1'][1]++,membership);__cov_pFhJoCdKHS6A0qrRbOr20Q.s['7']++;return this.request({uri:this.config.hydraServiceUrl+'/team/memberships/'+id}).then(function(res){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['4']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['8']++;return(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['2'][0]++,res.body.items)||(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['2'][1]++,res.body);});},list:function list(options){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['5']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['9']++;var _this=this;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['10']++;return this.request({uri:this.config.hydraServiceUrl+'/team/memberships',qs:options}).then(function(res){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['6']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['11']++;return new _sparkCore.Page(res,_this.spark);});},remove:function remove(membership){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['7']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['12']++;var id=(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['3'][0]++,membership.id)||(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['3'][1]++,membership);__cov_pFhJoCdKHS6A0qrRbOr20Q.s['13']++;return this.request({method:'DELETE',uri:this.config.hydraServiceUrl+'/team/memberships/'+id}).then(function(res){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['8']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['14']++;if(res.statusCode===204){__cov_pFhJoCdKHS6A0qrRbOr20Q.b['4'][0]++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['15']++;return undefined;}else{__cov_pFhJoCdKHS6A0qrRbOr20Q.b['4'][1]++;}__cov_pFhJoCdKHS6A0qrRbOr20Q.s['16']++;return res.body;});},update:function update(membership){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['9']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['17']++;var id=(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['5'][0]++,membership.id)||(__cov_pFhJoCdKHS6A0qrRbOr20Q.b['5'][1]++,membership);__cov_pFhJoCdKHS6A0qrRbOr20Q.s['18']++;return this.request({method:'PUT',uri:this.config.hydraServiceUrl+'/team/memberships/'+id,body:membership}).then(function(res){__cov_pFhJoCdKHS6A0qrRbOr20Q.f['10']++;__cov_pFhJoCdKHS6A0qrRbOr20Q.s['19']++;return res.body;});}});__cov_pFhJoCdKHS6A0qrRbOr20Q.s['20']++;exports.default=TeamMemberships;
  