PageSourceSearch

https://fxboss.firstcitizens.com/app/components/oneTimePin/oneTimePin_service.js?v=31082026-1758

js firstcitizens.com collected 2026-09-24 21:51:06 UTC 2,849 bytes, 76 lines download raw bytes

1var boss_common_module = angular.module('bossApp');
2
3boss_common_module.factory('PinService', ['$http','$q','CacheFactory','$rootScope', function($http,$q,CacheFactory,$rootScope) {
4	var _user = angular.copy($rootScope.currentUser);
5    return {
6        requestPin: function(_deliveryMethod) {
7            var deferred = $q.defer();
8            req = {
9                    method: 'POST',
10                    url: $rootScope.api_Path + 'twoFactorAuthentication/requestOneTimePin',
11					params: {
12						deliveryMethod : _deliveryMethod
13                    }
14                }
15                $http(req).then(function(response) {
16					deferred.resolve(response.data);
17                });
18           return deferred.promise;
19		},
20		validatePaymentPin: function (_pin, _payment, _action, _paymentId, _paymentIds) {
21            var deferred = $q.defer();
22            req = {
23                method: 'POST',
24                url: $rootScope.api_Path + 'twoFactorAuthentication/payment-verify-ooba-with-callback',
25                data: _payment,
26                params: {
27                    pin: _pin,
28                    action: _action,
29                    paymentId: _paymentId,
30                    paymentIds: _paymentIds,
31                }
32            }
33            $http(req).then(function (response) {
34                deferred.resolve(response.data);
35            });
36            return deferred.promise;
37        },
38        validateUserPin: function (_pin, _action,_user,_updatedUserId,_currentPassword,_password,_rePassword) {
39            var deferred = $q.defer();
40            req = {
41                method: 'POST',
42                url: $rootScope.api_Path + 'twoFactorAuthentication/user-verify-ooba-with-callback',
43                data: _user,
44                params: {
45                    pin: _pin,
46                    action: _action,
47                    updatedUserId:_updatedUserId,
48                    currentPassword:_currentPassword,
49                    password:_password,
50                    rePassword:_rePassword
51                }
52            }
53            $http(req).then(function (response) {
54                deferred.resolve(response.data);
55            });
56            return deferred.promise;
57        },
58        validateBenePin: function (_pin, _action,_payee,_payeeId) {
59            var deferred = $q.defer();
60            req = {
61                method: 'POST',
62                url: $rootScope.api_Path + 'twoFactorAuthentication/bene-verify-ooba-with-callback',
63                data: _payee,
64                params: {
65                    pin: _pin,
66                    action: _action,
67                    payeeId:_payeeId
68                }
69            }
70            $http(req).then(function (response) {
71                deferred.resolve(response.data);
72            });
73            return deferred.promise;
74        }
75    }
76}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.