PageSourceSearch

https://www.ncirl.ie/DesktopModules/Inventise.NCI/spa/services/data.services.js?cdv=121

js ncirl.ie collected 2026-10-01 10:30:54 UTC 1,484 bytes, 60 lines download raw bytes

1(function () {
2    'use strict';
3
4    var serviceId = 'dataservice';
5
6    angular
7        .module('crm.services')
8        .factory(serviceId, dataservice);
9
10    dataservice.$inject = ['$http', '$log', '$q', '$cacheFactory', 'WebApiUrls'];
11
12    function dataservice($http, $log, $q, $cacheFactory, WebApiUrls) {
13
14        var service = {
15            getSearchInfo: getSearchInfo
16        };
17
18        return service;
19
20        function getSearchInfo() {
21
22            var request = {
23                method: 'GET',
24                url: WebApiUrls.GetSearchInfo
25            };
26            return _createPromise(request);
27        }
28
29        function _createPromise(reqData) {
30            var promise = $q.defer();
31
32            reqData.timeout = promise.promise;
33            var response = $http(reqData);
34
35            response
36                .success(_onSuccess)
37                .error(_onError);
38
39            // cancellation of ajax request
40            response.abort = function () {
41                return promise.resolve();
42            }
43
44            return promise.promise;
45
46            //private fn
47            function _onSuccess(data) {
48                if (!data.success) {
49                    return _onError(data);
50                }
51
52                return promise.resolve(data.data);
53            }
54            function _onError(data) {
55                return promise.reject(data);
56            }
57
58        }
59    }
60})();

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.