PageSourceSearch

https://business.ie/app/app.js?v=10001

js business.ie collected 2026-10-10 00:25:38 UTC 8,652 bytes, 302 lines download raw bytes

1'use strict';
2var app = angular.module('app',
3    [
4        'ngRoute', 'ngResource', 'ngMessages', 'LocalStorageModule', 'rzModule', 'mgo-angular-wizard', 'ui.bootstrap',
5        'blockUI', 'toggle-switch', 'ngJsTree', 'toaster', 'ngTable', 'ui.bootstrap.modal', 'ngStorage', 'ngMap', 'asideModule',
6        'ngIntlTelInput','vcRecaptcha'
7    ]
8);
9
10
11app.run(['$templateCache', '$http',
12    function ($templateCache, $http) {
13        $http.get('app/Templates/loader.html').then(function (response) {
14            $templateCache.put('loader.html', response.data);
15        });
16}]);
17
18app.config(function ($routeProvider, $locationProvider) {
19
20    //cfpLoadingBarProvider.parentSelector = ".body-content";
21    //cfpLoadingBarProvider.spinnerTemplate = "<div><img src='images/Preloader_2.gif' alt='Loading...' /></div>";
22
23    // this is a test change to GregTest branch
24
25    $routeProvider.caseInsensitiveMatch = true;
26
27    $routeProvider.when("/home", {
28        templateUrl: "/app/views/home.html",
29        onEnter: function () {
30            Webflow.destroy();
31        }
32    });
33
34    $routeProvider.when("/HowItWorks", {
35        templateUrl: "/app/views/howItWorks.html",
36    });
37
38    $routeProvider.when("/pricing", {
39        templateUrl: "/app/views/pricing.html",
40        onEnter: function () {
41            Webflow.destroy();
42        }
43    });
44
45    $routeProvider.when("/about", {
46        templateUrl: "/app/views/about.html",
47    });
48
49    $routeProvider.when("/contact", {
50        templateUrl: "/app/views/Contact.html",
51        onEnter: function () {
52            Webflow.destroy();
53        }
54    });
55
56    $routeProvider.when("/login", {
57        //controller: "loginCtrl",
58        templateUrl: "/app/views/signin.html",
59        onEnter: function () {
60            Webflow.destroy();
61        }
62    });
63
64    $routeProvider.when("/signin", {
65        templateUrl: "/app/views/signin.html",
66        onEnter: function () {
67            Webflow.destroy();
68        }
69    });
70
71    $routeProvider.when("/signup", {
72        templateUrl: "/app/views/signup.html",
73        onEnter: function () {
74            Webflow.destroy();
75        }
76    });
77
78    $routeProvider.when("/success", {
79        templateUrl: "/app/views/success.html"
80    });
81
82    $routeProvider.when("/search", {
83        templateUrl: "/app/views/search/search.html",
84        loginRequired: true,
85        onEnter: function () {
86            Webflow.destroy();
87        }
88    });
89
90    $routeProvider.when("/savedSearches", {
91        templateUrl: "/app/views/search/savedSearches.html",
92        loginRequired: true,
93        onEnter: function () {
94            Webflow.destroy();
95        }
96    });
97
98    $routeProvider.when("/assignSearch", {
99        templateUrl: "/app/views/assignSearch.html",
100        loginRequired: true,
101        onEnter: function () {
102            Webflow.destroy();
103        }
104    });
105
106    $routeProvider.when("/forgotPassword", {
107        templateUrl: "/app/views/forgotPassword.html",
108        onEnter: function () {
109            Webflow.destroy();
110        }
111    });
112
113    $routeProvider.when("/forgotPasswordConfirmation", {
114        templateUrl: "/app/views/forgotPasswordConfirmation.html",
115        onEnter: function () {
116            Webflow.destroy();
117        }
118    });
119
120    $routeProvider.when("/setupPassword", {
121        templateUrl: "/app/views/setupPassword.html",
122        loginRequired: false,
123        onEnter: function () {
124            Webflow.destroy();
125        }
126    });
127
128    $routeProvider.when("/account", {
129        templateUrl: "/app/views/account.html"
130    });
131
132    $routeProvider.when("/payment", {
133        templateUrl: "/app/views/payment.html",
134        loginRequired: true
135    });
136
137    $routeProvider.when("/ConfirmEmail", {
138        templateUrl: "/app/views/confirmEmail.html"
139    });
140
141    $routeProvider.when("/SearchResults", {
142        templateUrl: "/app/views/search/searchResults.html",
143        loginRequired: true,
144        onEnter: function () {
145            Webflow.destroy();
146        }
147    });
148
149    $routeProvider.when("/ReportSummary", {
150        templateUrl: "/app/views/reportSummary.html",
151        loginRequired: true
152    });
153
154    $routeProvider.when("/CheckoutSummary", {
155        templateUrl: "/app/views/checkoutSummary.html",
156        loginRequired: true
157    });
158
159    $routeProvider.when("/Download", {
160        templateUrl: "/app/views/download.html",
161        loginRequired: true
162    });
163
164    $routeProvider.when("/errors/500", {
165        templateUrl: "/app/views/errors/500.html",
166        onEnter: function () {
167            Webflow.destroy();
168        }
169    });
170
171    $routeProvider.when("/errors/multipleLogin", {
172        templateUrl: "/app/views/errors/multipleLogin.html",
173        onEnter: function () {
174            Webflow.destroy();
175        }
176    });
177
178    $routeProvider.when("/resetPassword", {
179        templateUrl: "/app/views/resetPassword.html",
180        onEnter: function () {
181            Webflow.destroy();
182        }
183    });
184
185    $routeProvider.when("/errors/Order", {
186        templateUrl: "/app/views/errors/Order.html",
187        onEnter: function () {
188            Webflow.destroy();
189        }
190    });
191
192    $routeProvider.when("/mapSearch", {
193        templateUrl: "/app/views/search/mapSearch.html"
194    });
195
196    $routeProvider.when("/privacyPolicy", {
197        templateUrl: "/app/views/privacyPolicy.html"
198    });
199
200    $routeProvider.when("/terms", {
201        templateUrl: "/app/views/terms.html"
202    });
203
204    $routeProvider.otherwise({
205        redirectTo: "/home",
206        onEnter: function () {
207            Webflow.destroy();
208        } });
209
210    // use the HTML5 History API
211    $locationProvider.html5Mode(true);
212});
213
214app.config(function ($httpProvider) {
215    $httpProvider.interceptors.push('authInterceptorService');
216    $httpProvider.interceptors.push('httpErrorResponseInterceptor');
217});
218
219//app.config(['$httpProvider',
220//    function ($httpProvider) {
221//        $httpProvider.interceptors.push('httpErrorResponseInterceptor');
222//    }
223//]);
224
225app.config(['blockUIConfig', function (blockUIConfig) {
226
227    // Disable automatically blocking of the user interface
228    blockUIConfig.autoBlock = false;
229
230    // custom gif
231    //blockUIConfig.template = "<div class='loading'></div>"
232
233    // TODO: how to get this working?
234    blockUIConfig.templateUrl = 'app/Templates/loader.html';
235
236    // Change the displayed message based on the http verbs being used.    
237    blockUIConfig.requestFilter = function (config) {
238
239        var message;
240
241        switch (config.method) {
242            case 'POST':
243            case 'PUT':
244                message = 'Submitting ...';
245                break;
246
247            case 'DELETE':
248                message = 'Deleting ...';
249                break;
250        };
251
252        return message;
253
254    };
255
256    blockUIConfig.requestFilter = function (config) {
257        // If the request starts with '/api/quote' ...
258        if (config.url.match(/service\/api\/companies\/ValidateName($|\/|\?).*/)) {
259            return false; // ... don't block it.
260        }
261    };
262}]);
263
264app.config(function ($sceDelegateProvider) {
265    $sceDelegateProvider.resourceUrlWhitelist([
266        // Allow same origin resource loads.
267        'self',
268        // Allow loading from realex
269        ]);
270});
271
272app.run(['authService', '$rootScope', '$location', 'gtmService',
273    function (authService, $rootScope, $location, gtmService) {
274
275        authService.fillAuthData();
276
277
278        var returnRoute;
279        $rootScope.$on('$routeChangeStart', function (event, nextRoute, currentRoute) {
280
281            //if login required and you're logged out, capture the current path
282            if (nextRoute.loginRequired && !authService.authentication.isAuth) {
283                returnRoute = $location.path();
284                $location.path('/signin').replace();
285            } else if (returnRoute && authService.authentication.isAuth) {
286                //once logged in, redirect to the last route and reset it
287                $location.path(returnRoute).replace();
288                returnRoute = null;
289            }
290        });
291
292    }]);
293
294app.config(function (ngIntlTelInputProvider) {
295    ngIntlTelInputProvider.set({initialCountry: 'ie'});
296    ngIntlTelInputProvider.set({customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
297        return "Phone Number e.g. " + selectedCountryPlaceholder;
298    }});
299
300});
301
302app.value('hub', $.connection.paymentsHub);

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.