1(function (module) { 2 3 var apiService = function (httpService) { 4 5 var baseHost = apiHost; 6 7 8 function viewUserProfile(userId) { 9 return httpService.post(baseHost, "/InvestaApi/User/ViewUserProfile?userId=" + userId); 10 } 11 12 function viewUserProfileByUsername(username) { 13 return httpService.post(baseHost, "/InvestaApi/User/ViewUserProfileByUsername?username=" + username); 14 } 15 16 function viewUserIdByUsername(username) { 17 return httpService.post(baseHost, "/InvestaApi/User/ViewUserIdByUsername?username=" + username); 18 } 19 20 function viewUserProfileByStockId(stockId) { 21 return httpService.post(baseHost, "/InvestaApi/User/ViewUserProfileByStockId?stockId=" + stockId); 22 } 23 24 function isFollowingUser(toUserId) { 25 return httpService.post(baseHost, "/InvestaApi/User/IsFollowingUser?toUserId=" + toUserId); 26 } 27 28 function updatePushNotificationToken(pushNotificationToken) { 29 return httpService.post(baseHost, "/InvestaApi/User/UpdatePushNotificationToken?pushNotificationToken=" + pushNotificationToken); 30 } 31 32 function registerUser(data) { 33 return httpService.post(baseHost, "/InvestaApi/User/RegisterUser", data); 34 } 35 36 function authenticateUser(data) { 37 return httpService.post(baseHost, "/InvestaApi/User/AuthenticateUser", data); 38 } 39 40 function authenticateUserForApiViaExternalApplication(data) { 41 return httpService.post(baseHost, "/InvestaApi/User/AuthenticateUserForApiViaExternalApplication", data); 42 } 43 44 function signOutUser(data) { 45 return httpService.post(baseHost, "/InvestaApi/User/SignOutUser", data); 46 } 47 48 function signOutDevice(data) { 49 return httpService.post(baseHost, "/InvestaApi/User/SignOutDevice", data); 50 } 51 52 function forgotUserPassword(email) { 53 return httpService.post(baseHost, "/InvestaApi/User/ForgotUserPassword?email=" + email); 54 } 55 56 function recoverPassword(data) { 57 return httpService.post(baseHost, "/InvestaApi/User/RecoverPassword", data); 58 } 59 60 function searchUser(data) { 61 return httpService.post(baseHost, "/InvestaApi/User/SearchUser", data); 62 } 63 64 function searchUserSnippet(data) { 65 return httpService.post(baseHost, "/InvestaApi/User/SearchUserSnippet", data); 66 } 67 68 function getIfUserNeedCurrentPassword() { 69 return httpService.post(baseHost, "/InvestaApi/User/GetIfUserNeedCurrentPassword"); 70 } 71 72 function getAccountSettings() { 73 return httpService.post(baseHost, "/InvestaApi/User/GetAccountSettings"); 74 } 75 76 function getUserEmail() { 77 return httpService.post(baseHost, "/InvestaApi/User/GetUserEmail"); 78 } 79 80 function getPendingNewEmail() { 81 return httpService.post(baseHost, "/InvestaApi/User/GetPendingNewEmail"); 82 } 83 84 function getAuthUserId() { 85 return httpService.post(baseHost, "/InvestaApi/User/GetAuthUserId"); 86 } 87 88 function getUserSessionProfile() { 89 return httpService.post(baseHost, "/InvestaApi/User/GetUserSessionProfile"); 90 } 91 92 function updateUserProfile(data) { 93 return httpService.post(baseHost, "/InvestaApi/User/UpdateUserProfile", data); 94 } 95 96 function updateEmail(data) { 97 return httpService.post(baseHost, "/InvestaApi/User/UpdateEmail", data); 98 } 99 100 function updateMobileNumber(data) { 101 return httpService.post(baseHost, "/InvestaApi/User/UpdateMobileNumber", data); 102 } 103 104 function updateUserDefaultExchange(defaultExchange) { 105 return httpService.post(baseHost, "/InvestaApi/User/UpdateUserDefaultExchange?defaultExchange=" + defaultExchange); 106 } 107 108 function changePassword(data) { 109 return httpService.post(baseHost, "/InvestaApi/User/ChangePassword", data); 110 } 111 112 function isPasswordExpired() { 113 return httpService.post(baseHost, "/InvestaApi/User/IsPasswordExpired"); 114 } 115 116 function getAllUserApiTokenByUser() { 117 return httpService.post(baseHost, "/InvestaApi/User/GetAllUserApiTokenByUser"); 118 } 119 120 function getUserApplicationIntegrationVM(appType) { 121 return httpService.post(baseHost, "/InvestaApi/User/GetUserApplicationIntegrationVM?appType=" + appType); 122 } 123 124 function getUserTwitterIntegration() { 125 return httpService.post(baseHost, "/InvestaApi/User/GetUserTwitterIntegration"); 126 } 127 128 function connectUserApplicationIntegration(data) { 129 return httpService.post(baseHost, "/InvestaApi/User/ConnectUserApplicationIntegration", data); 130 } 131 132 function disconnectUserApplicationIntegration(appType) { 133 return httpService.post(baseHost, "/InvestaApi/User/DisconnectUserApplicationIntegration?appType=" + appType); 134 } 135 136 function updateUserAppIntegrationSettings(data) { 137 return httpService.post(baseHost, "/InvestaApi/User/UpdateUserAppIntegrationSettings", data); 138 } 139 140 function saveRiskToleranceSelectedByUser(valueAtRisk, maxPortAllocation) { 141 return httpService.post(baseHost, "/InvestaApi/User/SaveRiskToleranceSelectedByUser?valueAtRisk=" + valueAtRisk + "&maxPortAllocation=" + maxPortAllocation); 142 } 143 144 function getValueAtRiskByUserId() { 145 return httpService.post(baseHost, "/InvestaApi/User/GetValueAtRiskByUserId"); 146 } 147 148 function updateUserSocialMedialinks(data) { 149 return httpService.post(baseHost, "/InvestaApi/User/UpdateUserSocialMedialinks", data); 150 } 151 152 function getUserSocialMediaLinks() { 153 return httpService.post(baseHost, "/InvestaApi/User/GetUserSocialMediaLinks"); 154 } 155 156 function getUserSocialMediaLinksSettings() { 157 return httpService.post(baseHost, "/InvestaApi/User/GetUserSocialMediaLinksSettings"); 158 } 159 160 function getUserPrivateStats() { 161 return httpService.post(baseHost, "/InvestaApi/User/GetUserPrivateStats"); 162 } 163 164 function setPortfolioV2OnboardingDate() { 165 return httpService.post(baseHost, "/InvestaApi/User/SetPortfolioV2OnboardingDate"); 166 } 167 168 function setPortfolioV2HomeOnboardingDate() { 169 return httpService.post(baseHost, "/InvestaApi/User/SetPortfolioV2HomeOnboardingDate"); 170 } 171 172 function deactivateUserAccount(data) { 173 return httpService.post(baseHost, "/InvestaApi/User/DeactivateUserAccount", data); 174 } 175 176 function deleteUserAccount(data) { 177 return httpService.post(baseHost, "/InvestaApi/User/DeleteUserAccount", data); 178 } 179 180 181 182 183 184 return { 185 viewUserProfile: viewUserProfile, 186 viewUserProfileByUsername: viewUserProfileByUsername, 187 viewUserIdByUsername: viewUserIdByUsername, 188 viewUserProfileByStockId: viewUserProfileByStockId, 189 isFollowingUser: isFollowingUser, 190 updatePushNotificationToken: updatePushNotificationToken, 191 registerUser: registerUser, 192 authenticateUser: authenticateUser, 193 authenticateUserForApiViaExternalApplication: authenticateUserForApiViaExternalApplication, 194 signOutUser: signOutUser, 195 signOutDevice: signOutDevice, 196 forgotUserPassword: forgotUserPassword, 197 recoverPassword: recoverPassword, 198 searchUser: searchUser, 199 searchUserSnippet: searchUserSnippet, 200 getIfUserNeedCurrentPassword: getIfUserNeedCurrentPassword, 201 getAccountSettings: getAccountSettings, 202 getUserEmail: getUserEmail, 203 getPendingNewEmail: getPendingNewEmail, 204 getAuthUserId: getAuthUserId, 205 getUserSessionProfile: getUserSessionProfile, 206 updateUserProfile: updateUserProfile, 207 updateEmail: updateEmail, 208 updateMobileNumber: updateMobileNumber,
209 updateUserDefaultExchange: updateUserDefaultExchange, 210 changePassword: changePassword, 211 isPasswordExpired: isPasswordExpired, 212 getAllUserApiTokenByUser: getAllUserApiTokenByUser, 213 getUserApplicationIntegrationVM: getUserApplicationIntegrationVM, 214 getUserTwitterIntegration: getUserTwitterIntegration, 215 connectUserApplicationIntegration: connectUserApplicationIntegration, 216 disconnectUserApplicationIntegration: disconnectUserApplicationIntegration, 217 updateUserAppIntegrationSettings: updateUserAppIntegrationSettings, 218 saveRiskToleranceSelectedByUser: saveRiskToleranceSelectedByUser, 219 getValueAtRiskByUserId: getValueAtRiskByUserId, 220 updateUserSocialMedialinks: updateUserSocialMedialinks, 221 getUserSocialMediaLinks: getUserSocialMediaLinks, 222 getUserSocialMediaLinksSettings: getUserSocialMediaLinksSettings, 223 getUserPrivateStats: getUserPrivateStats, 224 setPortfolioV2OnboardingDate: setPortfolioV2OnboardingDate, 225 setPortfolioV2HomeOnboardingDate: setPortfolioV2HomeOnboardingDate, 226 deactivateUserAccount: deactivateUserAccount, 227 deleteUserAccount: deleteUserAccount 228 }; 229 }; 230 231 module.factory("userApiService", apiService); 232 233}(angular.module("investagramsAngularApp")));
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.