Repository URL to install this package:
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("web-console-core"),require("@angular/core"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@wa-motif-open-api/e2e-encryption-service",["exports","web-console-core","@angular/core","@angular/common/http"],t):t((e["wa-motif-open-api"]=e["wa-motif-open-api"]||{},e["wa-motif-open-api"]["e2e-encryption-service"]={}),e.WebConsoleCore,e.ng.core,e.ng.common.http)}(this,function(e,t,n,o){"use strict";var i=(r.prototype.selectHeaderContentType=function(e){var t=this;if(0===e.length)return undefined;var n=e.find(function(e){return t.isJsonMime(e)});return n===undefined?e[0]:n},r.prototype.selectHeaderAccept=function(e){var t=this;if(0===e.length)return undefined;var n=e.find(function(e){return t.isJsonMime(e)});return n===undefined?e[0]:n},r.prototype.isJsonMime=function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())},r);function r(e){void 0===e&&(e={}),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials}var a=(s.prototype.canConsumeForm=function(e){var t,n;try{for(var o=function r(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(e),i=o.next();!i.done;i=o.next())if("multipart/form-data"===i.value)return!0}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(t)throw t.error}}return!1},s.prototype.getConversationIdStatus=function(e,t,n){if(void 0===t&&(t="body"),void 0===n&&(n=!1),null===e||e===undefined)throw new Error("Required parameter cid was null or undefined when calling getConversationIdStatus.");var o=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return r!==undefined&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/e2e/convid/"+encodeURIComponent(String(e)),{withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:n})},s.prototype.getPublicKeyCertificate=function(e,t){void 0===e&&(e="body"),void 0===t&&(t=!1);var n=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+o)}var i=this.configuration.selectHeaderAccept(["application/json"]);return i!==undefined&&(n=n.set("Accept",i)),this.httpClient.get(this.configuration.basePath+"/e2e/pkcertificate",{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})},s.prototype.performHandshake=function(e,t,n){void 0===t&&(t="body"),void 0===n&&(n=!1);var o=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);r!==undefined&&(o=o.set("Accept",r));var a=this.configuration.selectHeaderContentType(["application/json"]);return a!==undefined&&(o=o.set("Content-Type",a)),this.httpClient.post(this.configuration.basePath+"/e2e/handshake",e,{withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:n})},s.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],s.ctorParameters=function(){return[{type:o.HttpClient},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[t.WC_API_BASE_PATH]}]},{type:i,decorators:[{type:n.Optional}]}]},s.ngInjectableDef=n.defineInjectable({factory:function(){return new s(n.inject(o.HttpClient),n.inject(t.WC_API_BASE_PATH,8),n.inject(i,8))},token:s,providedIn:"root"}),s);function s(e,t,n){this.httpClient=e,this.basePath="http://localhost:8080/rest/v2",this.defaultHeaders=new o.HttpHeaders,this.configuration=new i,n?(this.configuration=n,this.configuration.basePath=n.basePath||t||this.basePath):this.configuration.basePath=t||this.basePath}var c=[a],u=new n.InjectionToken("basePath"),p=(d.forRoot=function(e){return{ngModule:d,providers:[{provide:i,useFactory:e}]}},d.decorators=[{type:n.NgModule,args:[{imports:[],declarations:[],exports:[],providers:[a]}]}],d.ctorParameters=function(){return[{type:d,decorators:[{type:n.Optional},{type:n.SkipSelf}]},{type:o.HttpClient,decorators:[{type:n.Optional}]}]},d);function d(e,t){if(e)throw new Error("End2EndEncryptionServiceModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}e.APIS=c,e.E2eService=a,e.BASE_PATH=u,e.COLLECTION_FORMATS={csv:",",tsv:" ",ssv:" ",pipes:"|"},e.Configuration=i,e.End2EndEncryptionServiceModule=p,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=wa-motif-open-api-e2e-encryption-service.umd.min.js.map