"use strict";function scExceptionHandler(n){console.error(n)}window.onerror=scExceptionHandler;var requireAuth=["authService",function(n){return n.requireAuth()}];(function(){var n=angular.module("myCallPlus",["ngRoute","ngTouch","ngCookies","angular-jwt","myCallPlusSettingsServices","myCallPlusControllers","myCallPlusDirectives","myCallPlusServices","myCallPlusAnimations","myCallPlusFilters","callplus.api","callplus.payment.controllers","callplus.payment.directives","callplus.payment.services","callplus.invoice.services","callplus.invoice.controllers","callplus.usage.services","callplus.usage.controllers","callplus.billing.services","callplus.common.filters","callplus.common.services","ngSanitize","ngCsv"]);n.config(["$routeProvider","functionEnabledProvider",function(n,t){var i=t.get;n.when("/login",{controller:"LoginController",templateUrl:"Pages/login.html"}).when("/forgotpassword",{controller:"ForgotPasswordController",templateUrl:"Pages/forgotpassword.html"}).when("/resetpassword",{controller:"ResetPasswordController",templateUrl:"Pages/resetpassword.html"}).when("/setpassword",{controller:"SetPasswordController",templateUrl:"Pages/setpassword.html"}).when("/",{controller:"MainController",templateUrl:"Pages/main.html",resolve:{requireAuth:requireAuth}});i("billing.manual_payments")&&(n.when("/pay",{controller:"PayController",templateUrl:"Pages/paynow/pay.html",resolve:{requireAuth:requireAuth}}),n.when("/paynow/done",{controller:"PayController",templateUrl:"Pages/paynow/pay-done.html",resolve:{requireAuth:requireAuth}}),n.when("/paynow/failed",{controller:"PayController",templateUrl:"Pages/paynow/pay-failed.html",resolve:{requireAuth:requireAuth}}),n.when("/paynow/pending",{controller:"PayController",templateUrl:"Pages/paynow/pay-pending.html",resolve:{requireAuth:requireAuth}}));i("billing.auto_payments.view")&&(n.when("/paymentmethod",{controller:"PaymentOverviewController",templateUrl:"Pages/payment/overview.html",resolve:{requireAuth:requireAuth}}),i("billing.auto_payments.remove")&&n.when("/paymentmethod/remove",{controller:"PaymentRemoveController",templateUrl:"Pages/payment/remove-method.html",resolve:{requireAuth:requireAuth}}).when("/paymentmethod/remove/done",{controller:"PaymentChangeDoneController",templateUrl:"Pages/payment/change-done.html",resolve:{requireAuth:requireAuth}}),i("billing.auto_payments.credit_card")&&n.when("/paymentmethod/credit-card",{controller:"PaymentCreditCardController",templateUrl:"Pages/payment/credit-card.html",resolve:{requireAuth:requireAuth}}).when("/paymentmethod/credit-card/done",{controller:"PaymentChangeDoneController",templateUrl:"Pages/payment/change-done.html",resolve:{requireAuth:requireAuth}}).when("/paymentmethod/credit-card/failed",{controller:"PaymentChangeDoneController",templateUrl:"Pages/payment/change-failed.html",resolve:{requireAuth:requireAuth}}).when("/paymentmethod/credit-card/allDone",{controller:"PaymentChangeDoneController",templateUrl:"Pages/payment/all-done.html",resolve:{requireAuth:requireAuth}}).when("/paymentmethod/credit-card/setFailed",{controller:"PaymentChangeDoneController",templateUrl:"Pages/payment/part-done.html",resolve:{requireAuth:requireAuth}}),i("billing.auto_payments.direct_debit")&&n.when("/paymentmethod/direct-debit",{controller:"PaymentDirectDebitController",templateUrl:"Pages/payment/direct-debit.html",resolve:{requireAuth:requireAuth}}).when("/paymentmethod/direct-debit/done",{controller:"PaymentChangeDoneController",templateUrl:"Pages/payment/change-done.html",resolve:{requireAuth:requireAuth}}));i("account.change_password")&&n.when("/changepassword",{controller:"ChangePasswordController",templateUrl:"Pages/changepassword.html",resolve:{requireAuth:requireAuth}});i("billing.history")&&n.when("/billinformation",{controller:"BillController",templateUrl:"Pages/billinformation.html",resolve:{requireAuth:requireAuth}});i("billing.invoice.display")&&n.when("/invoice/latest",{controller:"LatestInvoiceController",templateUrl:"Pages/invoice.html",resolve:{requireAuth:requireAuth}}).when("/invoice/:invoice_number",{controller:"InvoiceController",templateUrl:"Pages/invoice.html",resolve:{requireAuth:requireAuth}});n.otherwise({redirectTo:"/"})}]);n.value("cgBusyDefaults",{backdrop:!0,templateUrl:"Pages/angular-busy.html",delay:200});n.run(["$rootScope","$anchorScroll","$timeout","$window","functionEnabled",function(n,t,i,r,u){function o(){$("sh-page-wrapper").length===0&&$(".local-block").length===1?(i.cancel(e),i.cancel(f),f=e=null):(f||(f=i(function(){f=null},1),f.then(o)),e||(e=i(function(){i.cancel(f);f=null},1e3)))}n._fe=u;var f=null,e=null;n.$on("$viewContentLoaded",function(){o()});n.$on("$includeContentLoaded",function(){o()})}])})()