var MyApp;
(function (MyApp) {
    var Controllers;
    (function (Controllers) {
        var contactController = /** @class */ (function () {
            function contactController(accountService, contactService, $stateParams, $uibModalInstance, contactid, type) {
                if (contactid === void 0) { contactid = 0; }
                if (type === void 0) { type = 0; }
                this.accountService = accountService;
                this.contactService = contactService;
                this.$stateParams = $stateParams;
                this.$uibModalInstance = $uibModalInstance;
                this.contactid = contactid;
                this.type = type;
                accountService.CheckAuthenticationCookieExpired();
                console.log(contactid);
                console.log(type);
                if (type == 1) {
                    this.findType = "super";
                }
                else if (type == 2) {
                    this.findType = "inspector";
                }
                this.getContactInfo();
            }
            contactController.prototype.getContactInfo = function () {
                var _this = this;
                document.body.style.cursor = 'wait';
                this.contactService.getContact(this.findType, this.contactid).$promise.then(function (result) {
                    _this.contact = result[0];
                    document.body.style.cursor = 'auto';
                });
            };
            contactController.prototype.closeModal = function () {
                this.$uibModalInstance.close();
            };
            return contactController;
        }());
        Controllers.contactController = contactController;
    })(Controllers = MyApp.Controllers || (MyApp.Controllers = {}));
})(MyApp || (MyApp = {}));
//# sourceMappingURL=../../ngApp/NgDist/controllers/contactController.js.map