1var phocusApp = angular.module('phocusApp', [ 2 'ngRoute', 3 'phocusControllers', 4 'phocusServices', 5 'phocusDirectives', 6 'phocusFilters', 7 'angular-loading-bar', 8 'angular.css.injector', 9 'ui.date', 10 'ngStorage', 11 'ngDialog', 12 'phocusConstants', 13 'ngSanitize', 14 '720kb.tooltips' 15]); 16if(__env.KEEP_CACHE==1){ 17 var randomh=""; 18}else{ 19 var randomh=Math.random(); 20 21} 22phocusApp.constant('ApiUrl', __env.apiUrl); 23phocusApp.constant('STRIPE_KEY', __env.STRIPE_KEY); 24 25phocusApp.value('headerClass', 'hero-contact'); 26 27phocusApp.run(['$rootScope','$location', '$routeParams', function($rootScope, $location, $routeParams) { 28 $rootScope.$on('$routeChangeSuccess', function(e, current, pre) { 29 var currentRoute=$location.path() 30 console.log('Current route name: ' + $location.path()); 31 // Get all URL parameter 32 console.log($routeParams); 33 if(currentRoute!='/packages'){ 34 localStorage.removeItem('redirect'); 35 } 36 }); 37}]); 38phocusApp.run(['$rootScope', '$route', function($rootScope, $route) { 39 $rootScope.$on('$routeChangeSuccess', function() { 40 //document.title = $route.current.title; 41 if ($route.current.title=='how_it_works') { 42 document.title='Phocus.io How Phocus.io Work'; 43 }else if ($route.current.title=='packages') { 44 document.title='Phocus.io - Photography Packages'; 45 }else{ 46 document.title='Phocus.io Book a photoshoot with a professional photographer'; 47 } 48 }); 49}]); 50phocusApp.config(['$routeProvider','$locationProvider' ,'$httpProvider', '$windowProvider', 'ApiUrl', 51 function ($routeProvider, $locationProvider,$httpProvider, $windowProvider, ApiUrl) { 52 $httpProvider.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest"; 53 $httpProvider.interceptors.push(function ($q, $rootScope, $location) { 54 return { 55 'responseError': function (rejection) { 56 var status = rejection.status; 57 var config = rejection.config; 58 var method = config.method; 59 var url = config.url; 60 61 if (status == 401) { 62 console.log('here'); 63 // var $window = $windowProvider.$get(); 64 // $window.location.href = ApiUrl ; 65 $location.path('/401'); 66 } else { 67 $rootScope.error = method + " on " + url + " failed with status " + status; 68 } 69 70 return $q.reject(rejection); 71 } 72 }; 73 }); 74 75 76 $routeProvider. 77 /******************** 78 * Routes of Dashboard 79 *******************/ 80 when('/packages', { 81 title : 'packages', 82 cache : false, 83 templateUrl: './resources/views/frontend/packages.html?x='+randomh, 84 controller: 'PackageController' 85 }) 86 .when('/packages/:cdn', { 87 title : 'packages', 88 templateUrl: './resources/views/frontend/packages.html?x='+randomh, 89 controller: 'PackageController' 90 }) 91 .when('/yext', { 92 templateUrl: './resources/views/frontend/yext_landing_page.html?x='+randomh, 93 controller: 'YextController' 94 }) 95 .when('/privacy_policy', { 96 templateUrl: './resources/views/frontend/privacy_policy.html', 97 controller: 'PrivacyPolicyController' 98 }) 99 .when('/checkout', { 100 templateUrl: './resources/views/frontend/checkout.html', 101 controller: 'CheckoutController' 102 }) 103 .when('/mydashboard/profile', { 104 templateUrl: './resources/views/frontend/profile.html', 105 controller: 'ProfileController' 106 }) 107 .when('/mydashboard/admin/profile', { 108 templateUrl: './resources/views/Admin/profile.html', 109 controller: 'AdminController' 110 }) 111 .when('/', { 112 cache:false, 113 templateUrl: './resources/views/frontend/index.html?x='+randomh, 114 controller: 'IndexController' 115 }) 116 .when('/login', { 117 118 templateUrl: './resources/views/frontend/index.html?x='+randomh, 119 controller: 'IndexController' 120 }). 121 when('/contact', { 122 templateUrl: './resources/views/frontend/contact.html', 123 controller: 'ContactController' 124 }). 125 when('/about', { 126 templateUrl: './resources/views/frontend/about.html', 127 controller: 'AboutController' 128 }). 129 when('/how_it_works', {
130 title : 'how_it_works', 131 templateUrl: './resources/views/frontend/how.html', 132 controller: 'HowController' 133 }). 134 when('/dashboard', { 135 templateUrl: './resources/views/frontend/dashboard.html', 136 controller: 'DashboardController' 137 }). 138 when('/terms', { 139 templateUrl: './resources/views/frontend/terms.html', 140 controller: 'PrivacyPolicyController' 141 }). 142 when('/ica', { 143 templateUrl: './resources/views/frontend/ica.html', 144 controller: 'TermsController' 145 }) 146 /******************** 147 * Routes of Orders 148 *******************/ 149 .when('/mydashboard/orders', { 150 templateUrl: 'resources/views/Order/orders.html?x='+randomh, 151 controller: 'OrderController' 152 }) 153 .when('/mydashboard/order_report', { 154 templateUrl: './resources/views/Order/order_report.html?x='+randomh, 155 controller: 'OrderController' 156 }) 157 .when('/mydashboard/orders/ready_for_admin_pp/:orderId', { 158 templateUrl: './resources/views/Order/ready_for_admin_pp.html', 159 controller: 'OrderController' 160 }) 161 .when('/mydashboard/orders/pp', { 162 templateUrl: './resources/views/Order/pp_orders.html', 163 controller: 'OrderController' 164 }) 165 .when('/mydashboard/orders/:status', { 166 templateUrl: './resources/views/Order/orders.html?x='+randomh, 167 controller: 'OrderController' 168 }) 169 .when('/mydashboard/suborders', { 170 templateUrl: './resources/views/Order/sub_orders.html', 171 controller: 'OrderController' 172 }) 173 .when('/mydashboard/suborders/:status', { 174 templateUrl: './resources/views/Order/sub_orders.html', 175 controller: 'OrderController' 176 }) 177 .when('/mydashboard/order/details/:orderId', { 178 templateUrl: './resources/views/Order/order_details.html?x='+randomh, 179 controller: 'OrderController' 180 }) 181 .when('/mydashboard/order/new_details/:orderId', { 182 templateUrl: './resources/views/Order/order_details.html?x='+randomh, 183 controller: 'OrderController' 184 }) 185 .when('/mydashboard/cancelled_order/details/:orderId', { 186 templateUrl: './resources/views/Order/cancelled_order_details.html', 187 controller: 'OrderController' 188 }) 189 .when('/mydashboard/order/details/:orderId/:is_suborder', { 190 templateUrl: './resources/views/Order/order_details.html', 191 controller: 'OrderController' 192 }) 193 .when('/mydashboard/order/details/pro/:orderId/:is_suborder', { 194 templateUrl: './resources/views/Order/sub_orders_detail.html', 195 controller: 'OrderController' 196 }) 197 .when('/mydashboard/provider_order/:orderId', { 198 templateUrl: './resources/views/Order/provider_order.html', 199 controller: 'OrderController' 200 }) 201 .when('/mydashboard/order/pp_order/:orderId', { 202 templateUrl: './resources/views/Order/pp_order_client.html', 203 controller: 'OrderController' 204 }) 205 .when('/mydashboard/order/pp_order_provider/:orderId', { 206 templateUrl: './resources/views/Order/pp_order_provider.html', 207 controller: 'OrderController' 208 }) 209 .when('/mydashboard/order/pending_order/:orderId', { 210 templateUrl: './resources/views/Order/pending_order.html', 211 controller: 'OrderController' 212 }) 213 .when('/mydashboard/order/completed_order/:orderId', { 214 templateUrl: './resources/views/Order/completed_order.html', 215 controller: 'OrderController' 216 }) 217 .when('/mydashboard/order/invite_providers/:orderId', { 218 templateUrl: './resources/views/Order/invite_providers.html', 219 controller: 'OrderController' 220 }) 221 .when('/mydashboard/order/assign_provider/:orderId', { 222 templateUrl: './resources/views/Order/associated_providers.html', 223 controller: 'OrderController' 224 }) 225 .when('/mydashboard/order/assign_pp_provider/:orderId', { 226 templateUrl: './resources/views/Order/associated_pp_providers.html', 227 controller: 'OrderController' 228 }) 229 .when('/mydashboard/provider/available_work', { 230 templateUrl: './resources/views/Provider/available_work.html', 231 controller: 'OrderController' 232 }) 233 .when('/mydashboard/provider/setting', { 234 templateUrl: './resources/views/Provider/provider_setting.html', 235 controller: 'ProviderController' 236 }) 237 .when('/mydashboard/provider/bid_order/:orderId', { 238 templateUrl: './resources/views/Provider/bid_order.html', 239 controller: 'OrderController' 240 }) 241 .when('/404', { 242 templateUrl: './resources/views/errors/404.html', 243 controller: 'ErrorController' 244 }) 245 .when('/co_1', { 246 templateUrl: './resources/views/mcheckout/first_step.html', 247 controller: 'MobileCheckoutController' 248 }) 249 .when('/co_2', { 250 templateUrl: './resources/views/mcheckout/second_step.html', 251 controller: 'MobileCheckoutController' 252 }) 253 .when('/co_3', { 254 templateUrl: './resources/views/mcheckout/third_step.html', 255 controller: 'MobileCheckoutController' 256 }) 257 .when('/co_4', { 258 templateUrl: './resources/views/mcheckout/fourth_step.html', 259 controller: 'MobileCheckoutController' 260 }) 261 .when('/mydashboard/order/history/:orderId', { 262 templateUrl: './resources/views/Order/history.html', 263 controller: 'OrderController' 264 }) 265 .when('/401', { 266 templateUrl: './resources/views/errors/401.html', 267 controller: 'ErrorController' 268 }) 269 .when('/mydashboard/vieworder/:token', { 270 templateUrl: './resources/views/Order/authcheck.html', 271 controller: 'BidPageController' 272 }) 273 .when('/mydashboard/accept_assignment/:token', { 274 templateUrl: './resources/views/Order/authcheck_accept_assignment.html', 275 controller: 'BidPageController' 276 }) 277 .when('/real_estate', { 278 templateUrl: './resources/views/frontend/real_state.html', 279 controller: 'RealEstateController' 280 }) 281 .when('/logout', { 282 controller: 'logoutController' 283 }) 284 .otherwise({ 285 redirectTo: '/404' 286 }); 287 $locationProvider.html5Mode({ 288 enabled: true, 289 requireBase: false 290 }); 291 }]); 292
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.