PageSourceSearch

https://pco-study.com/services/surveyImportService.js

js pco-study.com collected 2026-10-08 22:15:45 UTC 1,128 bytes, 39 lines download raw bytes

1'use strict';
2(function() {
3	var service = function($log, baseService, $rootScope, downloadService) {
4		var instance = baseService.create({
5			base: {},
6			apiAddress: '/surveyImport',
7			methods: {
8				importXML: '/importXML',
9				validateXML: '/validateXML'
10			}
11		});
12
13		instance.importXML = function(idCenter, centerCode, xmlFileName) {
14			var httpPath = this.base.constructUrl(this, this.methods.importXML, {
15				idCenter: idCenter,
16				centerCode: centerCode,
17				xmlFileName: xmlFileName,
18				access_token: $rootScope.auth.token
19			});
20			return downloadService.getFile(httpPath);
21		};
22
23		instance.validateXML = function(idCenter, centerCode, xmlFileName) {
24			var httpPath = this.base.constructUrl(this, this.methods.validateXML, {
25				idCenter: idCenter,
26				centerCode: centerCode,
27				xmlFileName: xmlFileName,
28				access_token: $rootScope.auth.token
29			});
30			return downloadService.getFile(httpPath);
31		};
32
33		return instance;
34	};
35
36	angular
37		.module('app.services')
38		.factory('surveyImportService', [ '$log', 'baseService', '$rootScope', 'downloadService', service ]);
39})();

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.