PageSourceSearch

https://www.golfdater.com/themes/js/app/common/models/updates-model.js?t=1791275615

js golfdater.com collected 2026-10-07 13:32:54 UTC 1,242 bytes, 47 lines download raw bytes

1angular
2	.module('dating.models.updates', [])
3	.service('UpdatesModel', function ($http, ApiPrefixService, globalParamsService) {
4		var GLOBALS = globalParamsService.GLOBALS;
5		var model = this,
6			URLS = {
7				POST_GET_UPDATES: GLOBALS.backendUrl + '/userUpdate/moreDashboardUpdates?siteName=' + GLOBALS.siteName,
8				POST_UPDATE: '/userUpdate/add',
9				POST_DELETE_UPDATE: '/userUpdate/delete'
10			};
11
12		if (GLOBALS.isHeadless) {
13			for (var key in URLS) {
14				if (Object.prototype.hasOwnProperty.call(URLS, key)) {
15					URLS[key] = ApiPrefixService.prefixUrl(URLS[key]);
16				}
17			}
18		}
19
20		function extractUpdates(result) {
21			return result.data;
22		}
23
24		model.getUpdates = function (page, targetId, count) {
25			var data = {
26				page: page,
27				targetId: targetId,
28				count: count,
29				uuid: GLOBALS.userInfo.uuid
30			};
31			return $http
32				.post(URLS.POST_GET_UPDATES, data, {
33					headers: { 'X-Auth-Token': GLOBALS.authToken }
34				})
35				.then(function (response) {
36					return extractUpdates(response);
37				});
38		};
39
40		model.sendUpdate = function (update) {
41			return $http.post(URLS.POST_UPDATE, update);
42		};
43
44		model.deleteUpdate = function (updateId) {
45			return $http.post(URLS.POST_DELETE_UPDATE, { updateId: updateId });
46		};
47	});

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.