mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
18 KiB
JSON
1 line
18 KiB
JSON
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./inactivity.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./inactivity.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { AuthService } from 'src/app/services/auth.service';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { environment } from 'src/environments/environment';\nimport { AlertController } from '@ionic/angular';\nimport { NotificationsService } from 'src/app/services/notifications.service';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { PermissionService } from 'src/app/services/permission.service';\nlet InactivityPage = class InactivityPage {\n constructor(notificatinsservice, router, authService, toastService, alertController, ThemeService, p) {\n this.notificatinsservice = notificatinsservice;\n this.router = router;\n this.authService = authService;\n this.toastService = toastService;\n this.alertController = alertController;\n this.ThemeService = ThemeService;\n this.p = p;\n this.username = environment.defaultuser;\n this.password = environment.defaultuserpwd;\n this.code = [];\n this.setPin = false;\n this.SessionStore = SessionStore;\n this.enterWithPassword = false;\n this.loop = false;\n }\n ngOnInit() {}\n runloop() {}\n presentAlert(message) {\n var _this = this;\n return _asyncToGenerator(function* () {\n const alert = yield _this.alertController.create({\n cssClass: 'my-custom-class',\n header: 'Mensagem do sistema',\n message: message,\n buttons: ['OK']\n });\n yield alert.present();\n })();\n }\n //Function to validade the login inputs\n validateUsername() {\n return this.username.trim().length > 0;\n }\n validatePassword() {\n return this.password.trim().length > 0;\n }\n Login() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n if (_this2.validateUsername()) {\n if (_this2.validatePassword()) {\n _this2.userattempt = {\n username: _this2.username,\n password: _this2.password,\n domainName: environment.domain,\n BasicAuthKey: \"\"\n };\n let attempt = yield _this2.authService.login(_this2.userattempt, {\n saveSession: false\n });\n if (attempt) {\n // if current attemp is equal to the current user\n if (attempt.UserId == SessionStore.user.UserId) {\n yield _this2.authService.SetSession(attempt, _this2.userattempt);\n if (_this2.p.userPermission(_this2.p.permissionList.Chat.access)) {\n // this.authService.loginChat();\n }\n _this2.getToken();\n SessionStore.setInativity(true);\n _this2.goback();\n } else {\n SessionStore.delete();\n window.localStorage.clear();\n SessionStore.setInativity(true);\n yield _this2.authService.SetSession(attempt, _this2.userattempt);\n }\n _this2.enterWithPassword = false;\n }\n } else {\n _this2.toastService._badRequest('Por favor, insira a sua palavra-passe');\n }\n } else {\n _this2.toastService._badRequest('Por favor, insira o seu nome de utilizador');\n }\n })();\n }\n getToken() {\n this.notificatinsservice.requestPermissions();\n this.notificatinsservice.registrationError();\n this.notificatinsservice.getAndpostToken(this.username);\n }\n setCode(code) {\n if (this.code.length < 4) {\n this.code.push(code);\n }\n if (this.code.length == 4) {\n if (!SessionStore.hasPin) {\n // \n this.storePin();\n this.pinLogin();\n } else {\n this.pinLogin();\n }\n }\n }\n clearCode() {\n this.code = [];\n }\n pinLogin() {\n const code = this.code.join('');\n if (SessionStore.validatePin(code)) {\n SessionStore.setInativity(true);\n this.goback();\n setTimeout(() => {\n this.clearCode();\n }, 3000);\n } else {\n this.toastService._badRequest('Pin incorreto');\n this.code = [];\n }\n }\n goback() {\n const pathName = this.SessionStore.user.UrlBeforeInactivity;\n if (pathName) {\n this.router.navigate([pathName], {\n replaceUrl: true\n });\n } else {\n setTimeout(() => {\n if (this.p.userPermission(this.p.permissionList.Agenda.access) || this.p.userPermission(this.p.permissionList.Gabinete.access)) {\n //When user has got access to Agenda but does not have their own calendar, goes to Agenda\n if (this.p.userPermission(this.p.permissionList.Agenda.access) && SessionStore.user.OwnerCalendars.length == 0) {\n this.router.navigate(['/home/agenda']);\n } else {\n this.router.navigate(['/home/events']);\n }\n }\n //If user has access permission to both Chat and Action, goes to Chat by default.\n else if (this.p.userPermission(this.p.permissionList.Chat.access) && this.p.userPermission(this.p.permissionList.Actions.access) || this.p.userPermission(this.p.permissionList.Chat.access)) {\n this.router.navigate(['/home/chat']);\n } else if (this.p.userPermission(this.p.permissionList.Actions.access)) {\n this.router.navigate(['/home/publications']);\n }\n }, 100);\n }\n }\n storePin() {\n const code = this.code.join('');\n SessionStore.setPin(code);\n }\n enterWithPasswordButton() {\n this.enterWithPassword = true;\n SessionStore.forceToLoginWithForceToLogInWithPassword = true;\n this.router.navigate(['/']);\n }\n};\nInactivityPage.ctorParameters = () => [{\n type: NotificationsService\n}, {\n type: Router\n}, {\n type: AuthService\n}, {\n type: ToastService\n}, {\n type: AlertController\n}, {\n type: ThemeService\n}, {\n type: PermissionService\n}];\nInactivityPage = __decorate([Component({\n selector: 'app-inactivity',\n template: __NG_CLI_RESOURCE__0,\n styles: [__NG_CLI_RESOURCE__1]\n})], InactivityPage);\nexport { InactivityPage };","map":{"version":3,"mappings":";;;;AAAA,SAASA,SAAS,QAAgB,eAAe;AACjD,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,WAAW,QAAQ,+BAA+B;AAE3D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,eAAe,QAAQ,gBAAgB;AAChD,SAASC,oBAAoB,QAAQ,wCAAwC;AAC7E,SAASC,YAAY,QAAQ,+BAA+B;AAC5D,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,iBAAiB,QAAQ,qCAAqC;AAOhE,IAAMC,cAAc,GAApB,MAAMA,cAAc;EAUzBC,YACUC,mBAAyC,EACzCC,MAAc,EACdC,WAAwB,EACxBC,YAA0B,EAC3BC,eAAgC,EAChCR,YAA0B,EAC1BS,CAAoB;IANnB,wBAAmB,GAAnBL,mBAAmB;IACnB,WAAM,GAANC,MAAM;IACN,gBAAW,GAAXC,WAAW;IACX,iBAAY,GA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AACxE,MAAM,CAACgE,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC;EAC7B;;;;;;;;;;;;;;;;;AAjMWnE,cAAc,eAL1BV,SAAS,CAAC;EACTsF,QAAQ,EAAE,gBAAgB;EAC1BC,8BAAqC;;CAEtC,CAAC,GACW7E,cAAc;SAAdA,cAAc","names":["Component","Router","AuthService","ToastService","environment","AlertController","NotificationsService","SessionStore","ThemeService","PermissionService","InactivityPage","constructor","notificatinsservice","router","authService","toastService","alertController","p","defaultuser","defaultuserpwd","ngOnInit","runloop","presentAlert","message","alert","_this","create","cssClass","header","buttons","present","validateUsername","username","trim","length","validatePassword","password","Login","_this2","userattempt","domainName","domain","BasicAuthKey","attempt","login","saveSession","UserId","user","SetSession","userPermission","permissionList","Chat","access","getToken","setInativity","goback","delete","window","localStorage","clear","enterWithPassword","_badRequest","requestPermissions","registrationError","getAndpostToken","setCode","code","push","hasPin","storePin","pinLogin","clearCode","join","validatePin","setTimeout","pathName","UrlBeforeInactivity","navigate","replaceUrl","Agenda","Gabinete","OwnerCalendars","Actions","setPin","enterWithPasswordButton","forceToLoginWithForceToLogInWithPassword","selector","template"],"sourceRoot":"","sources":["C:\\Users\\eudes.inacio\\GabineteDigital\\gabinete-digital-fo\\src\\app\\pages\\inactivity\\inactivity.page.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { AuthService } from 'src/app/services/auth.service';\r\nimport { UserForm } from 'src/app/models/user.model';\r\nimport { ToastService } from 'src/app/services/toast.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { AlertController } from '@ionic/angular';\r\nimport { NotificationsService } from 'src/app/services/notifications.service';\r\nimport { SessionStore } from 'src/app/store/session.service';\r\nimport { ThemeService } from 'src/app/services/theme.service';\r\nimport { PermissionService } from 'src/app/services/permission.service';\r\n\r\n@Component({\r\n selector: 'app-inactivity',\r\n templateUrl: './inactivity.page.html',\r\n styleUrls: ['./inactivity.page.scss'],\r\n})\r\nexport class InactivityPage implements OnInit {\r\n\r\n username: string = environment.defaultuser;\r\n password: string = environment.defaultuserpwd;\r\n userattempt: UserForm;\r\n code = []\r\n setPin = false\r\n SessionStore = SessionStore\r\n enterWithPassword = false\r\n\r\n constructor(\r\n private notificatinsservice: NotificationsService,\r\n private router: Router,\r\n private authService: AuthService,\r\n private toastService: ToastService,\r\n public alertController: AlertController,\r\n public ThemeService: ThemeService,\r\n public p: PermissionService,\r\n ) {}\r\n\r\n loop = false\r\n\r\n ngOnInit() {}\r\n\r\n runloop() {\r\n\r\n }\r\n\r\n async presentAlert(message: string) {\r\n const alert = await this.alertController.create({\r\n cssClass: 'my-custom-class',\r\n header: 'Mensagem do sistema',\r\n message: message,\r\n buttons: ['OK']\r\n });\r\n\r\n await alert.present();\r\n }\r\n\r\n\r\n //Function to validade the login inputs\r\n validateUsername() {\r\n return (\r\n this.username.trim().length > 0\r\n );\r\n }\r\n\r\n validatePassword() {\r\n return (\r\n this.password.trim().length > 0\r\n );\r\n }\r\n\r\n async Login() {\r\n\r\n if (this.validateUsername()) {\r\n if(this.validatePassword()) {\r\n\r\n this.userattempt = {\r\n username: this.username,\r\n password: this.password,\r\n domainName: environment.domain,\r\n BasicAuthKey: \"\"\r\n }\r\n let attempt = await this.authService.login(this.userattempt, {saveSession: false})\r\n\r\n if (attempt) {\r\n\r\n\r\n // if current attemp is equal to the current user\r\n if (attempt.UserId == SessionStore.user.UserId) {\r\n await this.authService.SetSession(attempt, this.userattempt);\r\n\r\n if(this.p.userPermission(this.p.permissionList.Chat.access)){\r\n // this.authService.loginChat();\r\n }\r\n\r\n this.getToken();\r\n SessionStore.setInativity(true)\r\n\r\n this.goback()\r\n } else {\r\n SessionStore.delete()\r\n window.localStorage.clear();\r\n\r\n SessionStore.setInativity(true)\r\n await this.authService.SetSession(attempt, this.userattempt);\r\n }\r\n\r\n this.enterWithPassword = false\r\n }\r\n }\r\n else {\r\n this.toastService._badRequest('Por favor, insira a sua palavra-passe');\r\n }\r\n }\r\n else {\r\n this.toastService._badRequest('Por favor, insira o seu nome de utilizador');\r\n }\r\n }\r\n\r\n getToken() {\r\n this.notificatinsservice.requestPermissions();\r\n this.notificatinsservice.registrationError();\r\n this.notificatinsservice.getAndpostToken(this.username);\r\n }\r\n\r\n setCode(code: string) {\r\n\r\n if(this.code.length < 4) {\r\n this.code.push(code)\r\n }\r\n\r\n if(this.code.length == 4) {\r\n\r\n if(!SessionStore.hasPin) {\r\n // \r\n this.storePin()\r\n this.pinLogin()\r\n } else {\r\n this.pinLogin()\r\n }\r\n }\r\n }\r\n\r\n clearCode() {\r\n this.code =[]\r\n }\r\n\r\n pinLogin() {\r\n\r\n const code = this.code.join('')\r\n\r\n if( SessionStore.validatePin(code)) {\r\n\r\n SessionStore.setInativity(true)\r\n this.goback()\r\n\r\n setTimeout(() => {\r\n this.clearCode()\r\n }, 3000)\r\n\r\n } else {\r\n this.toastService._badRequest('Pin incorreto')\r\n this.code = []\r\n }\r\n\r\n }\r\n\r\n goback() {\r\n const pathName = this.SessionStore.user.UrlBeforeInactivity\r\n if(pathName) {\r\n this.router.navigate([pathName],{replaceUrl: true});\r\n } else {\r\n\r\n setTimeout(() => {\r\n\r\n if(this.p.userPermission(this.p.permissionList.Agenda.access) || this.p.userPermission(this.p.permissionList.Gabinete.access)){\r\n //When user has got access to Agenda but does not have their own calendar, goes to Agenda\r\n if(this.p.userPermission(this.p.permissionList.Agenda.access) && SessionStore.user.OwnerCalendars.length == 0){\r\n this.router.navigate(['/home/agenda']);\r\n }\r\n else{\r\n this.router.navigate(['/home/events']);\r\n }\r\n }\r\n //If user has access permission to both Chat and Action, goes to Chat by default.\r\n else if((this.p.userPermission(this.p.permissionList.Chat.access) && this.p.userPermission(this.p.permissionList.Actions.access)) || this.p.userPermission(this.p.permissionList.Chat.access)){\r\n this.router.navigate(['/home/chat']);\r\n }\r\n else if(this.p.userPermission(this.p.permissionList.Actions.access)){\r\n this.router.navigate(['/home/publications']);\r\n }\r\n\r\n\r\n }, 100)\r\n\r\n }\r\n\r\n }\r\n\r\n storePin() {\r\n\r\n const code = this.code.join('');\r\n SessionStore.setPin(code);\r\n\r\n }\r\n\r\n enterWithPasswordButton() {\r\n this.enterWithPassword = true\r\n SessionStore.forceToLoginWithForceToLogInWithPassword = true\r\n\r\n this.router.navigate(['/']);\r\n }\r\n\r\n}\r\n"]},"metadata":{},"sourceType":"module"} |