angular.module("clientApp").controller('educationCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('employmentCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('credentialCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('referenceCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('piiCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('drivingRecordCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('instructionsCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('drugCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('dataCollectionCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { $scope.collection = { data: null, types: [{ text: "Employer", value: "Employer" }, { text: "School", value: "School" }], addNew: function ($event, x) { cancelEvent($event); var defaultItem = { Type: null, Address: "", City: "", State: "", Zip: "" }; var existing = undefined; if (x != undefined) { existing = Object.fromEntries( Object.keys(defaultItem).map(key => [key, x[key] !== undefined ? x[key] : defaultItem[key]]) ); } $scope.applicant.request.data.Information.DataCollection[$scope.collection.index].Items.push(existing || defaultItem); }, delete: function ($event, $index) { cancelEvent($event); $scope.applicant.request.data.Information.DataCollection[$scope.collection.index].Items.splice($index, 1); if ($scope.applicant.request.data.Information.DataCollection[$scope.collection.index].Items.length == 0) $scope.collection.addNew(); }, currentStep: function () { var currentStepName = $scope.$parent.currentStep; return $scope.$parent.applicant.request.data?.Steps?.Active?.find(function (x) { return x.data == currentStepName; }); }, index: undefined, }; this.$onInit = function () { if ($scope.applicant.request.data.Information.DataCollection == undefined) $scope.applicant.request.data.Information.DataCollection = []; $scope.collection.index = $scope.applicant.request.data.Information.DataCollection.findIndex(function (x) { return x.CollectionType == "Address" }); if ($scope.collection.index < 0) { $scope.applicant.request.data.Information.DataCollection.push({}); $scope.collection.index = 0; } if ($scope.applicant.request.data.Information.DataCollection[$scope.collection.index].CollectionType == undefined) $scope.applicant.request.data.Information.DataCollection[$scope.collection.index].CollectionType = "Address"; if ($scope.applicant.request.data.Information.DataCollection[$scope.collection.index].Items == undefined) $scope.applicant.request.data.Information.DataCollection[$scope.collection.index].Items = []; if ($scope.applicant.request.data.Information.DataCollection[$scope.collection.index].Items.length == 0) $scope.collection.addNew(); }; }); angular.module("clientApp").controller('caDisclosureCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('investigativeCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('authorizationCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('genericCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('californiaCreditCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('nycCreditCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('vermontCreditCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('mvrCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('locationsCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('disclosureCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('referenceCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('employmentCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('nyAuthCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('educationCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('nycConditionalCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('intCrimCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('paymentCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('informationCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('consentCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('instructionsCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('uploadCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { }); angular.module("clientApp").controller('genericCtrl', function ($scope, $rootScope, $timeout, $http, $sce, $timeout) { });