Varnish
tcp/80
.DS_Store” is an abbreviation for “Desktop Services Store”. These files are created automatically by Apples “Finder” software (which is part of their OS).
They store information about the files within a folder, including display options of folders, such as icon positions and view settings.
It may happen that .DS_Store files inadvertently leak filenames such as database backups or private administration panels.
Severity: low
Fingerprint: 5f32cf5d6962f09c1a5d9b0f1a5d9b0fd02d66875fa3a76fcab9a4bbcab9a4bb
Found 3 files trough .DS_Store spidering: /css /js /templates
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-26 23:16
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Thu, 26 Sep 2024 23:16:51 GMT X-Served-By: cache-pdk-kfty2130054-PDK X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1727392611.450602,VS0,VE2 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-25 03:49
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Wed, 25 Sep 2024 03:49:53 GMT X-Served-By: cache-fra-eddf8230138-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1727236193.171399,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 2620:0:890::100:80 · aggendo.com.br
2024-09-16 06:27
HTTP/1.1 301 Moved Permanently Connection: close Content-Length: 0 Server: Varnish Retry-After: 0 Location: https://aggendo.com.br/ Accept-Ranges: bytes Date: Mon, 16 Sep 2024 06:27:51 GMT X-Served-By: cache-ams21068-AMS X-Cache: HIT X-Cache-Hits: 0 X-Timer: S1726468071.382899,VS0,VE0 alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
Open service 2620:0:890::100:443 · aggendo.com.br
2024-09-16 06:27
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Mon, 16 Sep 2024 06:27:51 GMT X-Served-By: cache-fra-eddf8230154-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726468071.468554,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-16 06:27
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Mon, 16 Sep 2024 06:27:51 GMT X-Served-By: cache-fra-eddf8230144-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726468072.863132,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:80 · aggendo.com.br
2024-09-16 06:27
HTTP/1.1 301 Moved Permanently Connection: close Content-Length: 0 Server: Varnish Retry-After: 0 Location: https://aggendo.com.br/ Accept-Ranges: bytes Date: Mon, 16 Sep 2024 06:27:51 GMT X-Served-By: cache-fra-eddf8230044-FRA X-Cache: HIT X-Cache-Hits: 0 X-Timer: S1726468071.272893,VS0,VE0 alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-14 19:07
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Sat, 14 Sep 2024 19:07:04 GMT X-Served-By: cache-lga21975-LGA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726340824.166946,VS0,VE2 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-12 23:36
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Thu, 12 Sep 2024 23:36:59 GMT X-Served-By: cache-ams21034-AMS X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726184220.728517,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:80 · www.aggendo.com.br
2024-09-11 14:27
HTTP/1.1 301 Moved Permanently Connection: close Content-Length: 0 Server: Varnish Retry-After: 0 Location: https://www.aggendo.com.br/ Accept-Ranges: bytes Date: Wed, 11 Sep 2024 14:27:58 GMT X-Served-By: cache-lcy-eglc8600085-LCY X-Cache: HIT X-Cache-Hits: 0 X-Timer: S1726064878.186809,VS0,VE0 alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
Open service 2620:0:890::100:80 · www.aggendo.com.br
2024-09-11 14:27
HTTP/1.1 301 Moved Permanently Connection: close Content-Length: 0 Server: Varnish Retry-After: 0 Location: https://www.aggendo.com.br/ Accept-Ranges: bytes Date: Wed, 11 Sep 2024 14:27:58 GMT X-Served-By: cache-fra-eddf8230116-FRA X-Cache: HIT X-Cache-Hits: 0 X-Timer: S1726064878.071726,VS0,VE0 alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
Open service 2620:0:890::100:443 · www.aggendo.com.br
2024-09-11 14:27
HTTP/1.1 301 Moved Permanently Connection: close Content-Length: 38 Location: https://aggendo.com.br/ Content-Type: text/plain; charset=utf-8 Accept-Ranges: bytes Date: Wed, 11 Sep 2024 14:27:58 GMT X-Served-By: cache-fra-eddf8230102-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726064878.253692,VS0,VE2 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 Redirecting to https://aggendo.com.br/
Open service 199.36.158.100:443 · www.aggendo.com.br
2024-09-11 14:27
HTTP/1.1 301 Moved Permanently Connection: close Content-Length: 38 Location: https://aggendo.com.br/ Content-Type: text/plain; charset=utf-8 Accept-Ranges: bytes Date: Wed, 11 Sep 2024 14:27:57 GMT X-Served-By: cache-fra-eddf8230149-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726064878.954051,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 Redirecting to https://aggendo.com.br/
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-10 21:55
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Tue, 10 Sep 2024 21:55:24 GMT X-Served-By: cache-fra-eddf8230142-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1726005325.648458,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-08 19:47
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Sun, 08 Sep 2024 19:47:44 GMT X-Served-By: cache-fra-eddf8230029-FRA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1725824865.652636,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:443 · aggendo.com.br
2024-09-06 16:51
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Fri, 06 Sep 2024 16:51:24 GMT X-Served-By: cache-ams2100121-AMS X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1725641484.205725,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()
Open service 199.36.158.100:443 · aggendo.com.br
2024-08-18 06:18
HTTP/1.1 200 OK Connection: close Content-Length: 19833 Cache-Control: max-age=3600 Content-Type: text/html; charset=utf-8 Etag: "4e4a4a01e15a4574bd74609308a49d6c7a6af9b12795255b525c266b7cf6bf46" Strict-Transport-Security: max-age=31556926 Accept-Ranges: bytes Date: Sun, 18 Aug 2024 06:18:00 GMT X-Served-By: cache-lga21987-LGA X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1723961880.352069,VS0,VE1 Vary: x-fh-requested-host, accept-encoding alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 <!DOCTYPE html> <html> <head> <!-- LIB --> <!-- Bootstrap --> <link href="lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Font Awesome --> <link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <style> .navbar { border-radius:0; background-color: #23282e; border: 0; padding-bottom: 20px; } </style> <!-- JS --> <!-- Angular --> <script src="lib/angular/angular.min.js"></script> <!-- Firebase --> <script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script> <!-- jQuery --> <script src="lib/jquery/dist/jquery.min.js"></script> <!-- Bootstrap --> <script src="lib/bootstrap/dist/js/bootstrap.min.js"></script> <!-- Init --> <script type="text/javascript"> // Initialize Firebase // var config = { // apiKey: "AIzaSyDt94Ggek-8dEEazq3bz0Nh9lY3WWWleOU", // authDomain: "aggendo.firebaseapp.com", // databaseURL: "https://aggendo.firebaseio.com", // storageBucket: "aggendo.appspot.com", // messagingSenderId: "381582529920" // }; var config = { apiKey: "AIzaSyA5a7LGn7yMRuFvnVQGRbsuSdxaQ_RbSzU", authDomain: "site-aggendo.firebaseapp.com", databaseURL: "https://site-aggendo.firebaseio.com", storageBucket: "site-aggendo.appspot.com", messagingSenderId: "125897006576" }; firebase.initializeApp(config); var app = angular.module("app", ["firebase"]); app.controller("completeDataCtrl", function($scope, $firebaseAuth, $firebaseObject, $firebaseArray, $filter, $timeout, $http) { console.log('Start Run'); $scope.setupStep = 1; $scope.setEntity = function(idEntity){ console.log('Set Entity: '+idEntity); var ref = firebase.database().ref('/entity/'+idEntity); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.entityData = $firebaseObject(ref); $scope.entityData.$bindTo($scope, "entityData"); if(dataSnapshot.val().typeEntity){ $scope.setStep(3); }else{ $scope.setStep(2); } }, 0); }); } $scope.setStep = function (step){ $timeout(function() { $scope.setupStep = step; console.log('Set Step: '+step); }, 0); } $scope.setEntityType = function(typeEntity){ $timeout(function() { $scope.entityData['typeEntity'] = typeEntity; console.log('Set Entity Type: '+ $scope.entityData); $scope.setStep(3); }, 0); } $scope.verifUserStatus = function(){ console.log('Verifying User Status...'); if (!firebase.auth().currentUser) { $scope.setStep(1); console.log('Status 1'); } else { var ref = firebase.database().ref('/users/'+firebase.auth().currentUser.uid); ref.once('value', function(dataSnapshot) { $timeout(function() { $scope.userData = $firebaseObject(ref); $scope.userData.$bindTo($scope, "userData"); console.log('Status: exists currentUser: ' + firebase.auth().currentUser.uid + ' , setting first entity: ' + Object.keys(dataSnapshot.val().entity)[0]); $scope.setEntity(Object.keys(dataSnapshot.val().entity)[0]); }); }); } } firebase.auth().onAuthStateChanged(function(user) { console.log('Status: AuthStateChanged: User:'); console.info(user); $scope.verifUserStatus(); }); // ref.remove(); $scope.doAtendimentoData = function(atendimento){ console.log(atendimento); } $scope.selectedDays = {}; $scope.weekdays = [ { day: '0', name: 'Domingo', checked: true}, { day: '1', name: 'Segunda-feira'}, { day: '2', name: 'Terça-feira'}, { day: '3', name: 'Quarta-feira'}, { day: '4', name: 'Quinta-feira'}, { day: '5', name: 'Sexta-feira'}, { day: '6', name: 'Sábado', checked: true} ]; $scope.getSelectedDays = function ()