diff --git a/src/app/pages/chat/chat.page.ts b/src/app/pages/chat/chat.page.ts index 2586e8519..4fe27b30a 100644 --- a/src/app/pages/chat/chat.page.ts +++ b/src/app/pages/chat/chat.page.ts @@ -130,7 +130,7 @@ export class ChatPage implements OnInit { public RouteService: RouteService, ) { - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; window.onresize = (event) => { if (window.innerWidth > 701) { this.modalController.dismiss(); diff --git a/src/app/services/attachments.service.ts b/src/app/services/attachments.service.ts index 94fc3316f..f44e1390e 100644 --- a/src/app/services/attachments.service.ts +++ b/src/app/services/attachments.service.ts @@ -32,7 +32,7 @@ export class AttachmentsService { setHeader() { this.loggeduser = SessionStore.user - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; this.headers = this.headers.set('Authorization', SessionStore.user.BasicAuthKey); } diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index 77342fa55..6dcd39b90 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -27,7 +27,7 @@ import { CPSession } from '../store/documentManagement'; export class AuthService { userData$ = new BehaviorSubject(''); userId$ = new BehaviorSubject(''); - headers: HttpHeaders = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized }); + headers: HttpHeaders = new HttpHeaders(); public wsValidatedUserChat: any; public isWsAuthenticated: boolean = false; opts: any; diff --git a/src/app/services/chat.service.ts b/src/app/services/chat.service.ts index a409bb498..4ed70b8cd 100644 --- a/src/app/services/chat.service.ts +++ b/src/app/services/chat.service.ts @@ -40,7 +40,7 @@ export class ChatService { } getDocumentDetails(url: string) { - let headersc = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + let headersc = new HttpHeaders();; headersc = headersc.set('X-User-Id', SessionStore.user.ChatData.data.userId); headersc = headersc.set('X-Auth-Token', SessionStore.user.ChatData.data.authToken); headersc = headersc.set('Sec-Fetch-Dest', 'attachment'); @@ -350,7 +350,7 @@ export class ChatService { try { if (this.p.userPermission(this.p.permissionList.Chat.access) && SessionStore.user.ChatData) { - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; if (this.p.userPermission(this.p.permissionList.Chat.access)) { // diff --git a/src/app/services/contacts.service.ts b/src/app/services/contacts.service.ts index d8ac76fb7..41bb3674b 100644 --- a/src/app/services/contacts.service.ts +++ b/src/app/services/contacts.service.ts @@ -36,7 +36,7 @@ export class ContactsService { setHeader() { this.loggeduser = SessionStore.user; - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey); } diff --git a/src/app/services/events.service.ts b/src/app/services/events.service.ts index ebbf480f7..c5417b975 100644 --- a/src/app/services/events.service.ts +++ b/src/app/services/events.service.ts @@ -82,22 +82,22 @@ export class EventsService { async setHeader () { - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; - this.headersMdOficial = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; - this.headersMdPessoal = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; + this.headersMdOficial = new HttpHeaders();; + this.headersMdPessoal = new HttpHeaders();; - this.headersPrOficial = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; - this.headersPrPessoal = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headersPrOficial = new HttpHeaders();; + this.headersPrPessoal = new HttpHeaders();; - this.headersSharedOficial = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; - this.headersSharedPessoal = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headersSharedOficial = new HttpHeaders();; + this.headersSharedPessoal = new HttpHeaders();; - this.headerOwnOficial= new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; - this.headerOwnPessoal= new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headerOwnOficial= new HttpHeaders();; + this.headerOwnPessoal= new HttpHeaders();; - this.headerSharedOficial= new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; - this.headerSharedPessoal= new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headerSharedOficial= new HttpHeaders();; + this.headerSharedPessoal= new HttpHeaders();; this.headers = this.headers.set('Authorization', SessionStore.user.BasicAuthKey); @@ -377,7 +377,7 @@ export class EventsService { } makeHeader(calendar: calendarInterface) { - let header = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + let header = new HttpHeaders();; header = header.set('Authorization', SessionStore.user.BasicAuthKey); header = header.set('CalendarId', calendar.CalendarId); header = header.set('CalendarRoleId', calendar.CalendarRoleId); @@ -615,7 +615,7 @@ export class EventsService { let result = [] for(let agendasCalendar of agendasCalendars) { - var header = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + var header = new HttpHeaders();; header = header.set('Authorization', SessionStore.user.BasicAuthKey); header = header.set('CalendarId', agendasCalendar.CalendarId); header = header.set('CalendarRoleId', agendasCalendar.CalendarRoleId); @@ -648,7 +648,7 @@ export class EventsService { for (let sharedCalendar of SessionStore.user.SharedCalendars) { - var header = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + var header = new HttpHeaders();; header = header.set('Authorization', SessionStore.user.BasicAuthKey); header = header.set('CalendarId', sharedCalendar.CalendarId); header = header.set('CalendarRoleId', sharedCalendar.CalendarRoleId); diff --git a/src/app/services/http.service.ts b/src/app/services/http.service.ts index 6b5859a4c..70da0d27c 100644 --- a/src/app/services/http.service.ts +++ b/src/app/services/http.service.ts @@ -10,7 +10,7 @@ export class HttpService { constructor(private http:HttpClient) { } post(serviceName:string, data:any){ - const headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + const headers = new HttpHeaders();; const options = {header: headers, withCredentials: false}; const url = environment.apiChatUrl+serviceName; const body = {"user": "admin","password": "tabteste@006"}; diff --git a/src/app/services/organic-entity.service.ts b/src/app/services/organic-entity.service.ts index 6a8e8e791..aa51be383 100644 --- a/src/app/services/organic-entity.service.ts +++ b/src/app/services/organic-entity.service.ts @@ -31,7 +31,7 @@ export class OrganicEntityService { setHeader() { this.loggeduser = SessionStore.user; - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey); } diff --git a/src/app/services/processes.service.ts b/src/app/services/processes.service.ts index c812ec70d..d653e51ab 100644 --- a/src/app/services/processes.service.ts +++ b/src/app/services/processes.service.ts @@ -44,11 +44,11 @@ export class ProcessesService { setHeader() { - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey); - this.headers2 = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers2 = new HttpHeaders();; this.headers2 = this.headers2.set('Authorization', "Bearer " + CPSession.AuthorizationJwt); diff --git a/src/app/services/publications.service.ts b/src/app/services/publications.service.ts index 02ac38228..0299dba24 100644 --- a/src/app/services/publications.service.ts +++ b/src/app/services/publications.service.ts @@ -36,7 +36,7 @@ export class PublicationsService { setHeader () { this.loggeduser = SessionStore.user; - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey); } diff --git a/src/app/services/search.service.ts b/src/app/services/search.service.ts index 184aded5d..76ce90440 100644 --- a/src/app/services/search.service.ts +++ b/src/app/services/search.service.ts @@ -37,7 +37,7 @@ export class SearchService { setHeader() { this.loggeduser = SessionStore.user; - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey); } diff --git a/src/assets/images/Gabinete Digital_files/vendor.js.download b/src/assets/images/Gabinete Digital_files/vendor.js.download index 852dcb9df..df46b429e 100644 --- a/src/assets/images/Gabinete Digital_files/vendor.js.download +++ b/src/assets/images/Gabinete Digital_files/vendor.js.download @@ -7137,7 +7137,7 @@ class HttpHeaders { */ clone(update) { /** @type {?} */ - const clone = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + const clone = new HttpHeaders();; clone.lazyInit = (!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this; clone.lazyUpdate = (this.lazyUpdate || []).concat([update]); @@ -7688,7 +7688,7 @@ class HttpRequest { } // If no headers have been passed in, construct a new HttpHeaders instance. if (!this.headers) { - this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = new HttpHeaders();; } // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance. if (!this.params) { @@ -7970,7 +7970,7 @@ class HttpResponseBase { constructor(init, defaultStatus = 200, defaultStatusText = 'OK') { // If the hash has values passed, use them to initialize the response. // Otherwise use the default values. - this.headers = init.headers || new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });; + this.headers = init.headers || new HttpHeaders();; this.status = init.status !== undefined ? init.status : defaultStatus; this.statusText = init.statusText || defaultStatusText; this.url = init.url || null; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index a9256d5a8..726ebb13e 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -4,4 +4,4 @@ import { doneITProd } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = DevDev; +export const environment: Environment = oaprProd; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 16a865ce9..e2d79dff9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,4 +4,4 @@ import { doneITDev } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = DevDev \ No newline at end of file +export const environment: Environment = oaprDev \ No newline at end of file