"use strict";angular.module("abs.Common.Currency",["ngResource","ngSanitize","satellizer","ngAnimate","ui.router"]);angular.module('abs').requires.push('abs.Common.Currency');"use strict";angular.module("abs.Common.Pages",["ui.router","ngResource","angulartics","angulartics.google.analytics","angulartics.facebook.pixel"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("pages",{url:"/page/{slug}",templateUrl:"scripts/plugins/Common/Pages/views/default/pages.html",controller:"PagesController",resolve:getToken})}]),angular.module("abs.Common.Pages").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/Pages/views/default/page_links.html",""),$templateCache.put("scripts/plugins/Common/Pages/views/default/pages.html",'

{{page.title}}

')}]);angular.module('abs').requires.push('abs.Common.Pages');"use strict";angular.module("abs.Common.Translations",["ngResource","pascalprecht.translate","tmh.dynamicLocale","ngSanitize","ngCookies"]);angular.module('abs').requires.push('abs.Common.Translations');"use strict";angular.module("abs.Common.UserFavorites",["ui.router","ngResource","oitozero.ngSweetAlert"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){}]),angular.module("abs.Common.UserFavorites").directive("userFavorite",["$timeout",function($timeout){return{restrict:"E",scope:{favorite:"@favorite",provideruser:"@provideruser",clinicuser:"@clinicuser",favoritetype:"@favoritetype"},controller:"UserFavoriteController",templateUrl:"scripts/plugins/Common/UserFavorites/views/default/favorite.html"}}]).controller("UserFavoriteController",["$scope","$http","$filter","$state","$rootScope","$location","$timeout","flash","SweetAlert","UserFavorites","FavoriteDelete","MyUsers",function($scope,$http,$filter,$state,$rootScope,$location,$timeout,flash,SweetAlert,UserFavorites,FavoriteDelete,MyUsers){$scope.index=function(){$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("My Doctors")},$scope.isFavorite=$scope.favorite,$scope.favorite_type=$scope.favoritetype,$scope.clinic_user_id=$scope.clinicuser,$scope.provider_user_id=parseInt($scope.provideruser),$scope.add_favorite=function(id,clinic_user_id,favorite_type){var data={};data.foreign_id=id,"branchFav"===favorite_type?(data.class="Branch",data.branch_id=id,data.clinic_user_id=clinic_user_id):data.class="User",UserFavorites.post(data).$promise.then(function(response){0===response.error.code?($state.go("my_favorites"),flash.set($filter("translate")("Favorite added successfully"),"success",!1)):flash.set($filter("translate")("Favorite added failed"),"error",!1)})},$scope.index()}]),angular.module("abs").factory("MyUsers",["$resource",function($resource){return $resource("/api/v1/users",{},{get:{method:"GET"}})}]).factory("UserFavorites",["$resource",function($resource){return $resource("/api/v1/user_favorites",{},{get:{method:"GET"},post:{method:"POST"}})}]).factory("GetUserFavorite",["$resource",function($resource){return $resource("/api/v1/user_favorites",{id:"@id"},{get:{method:"GET"}})}]),angular.module("abs.Common.UserFavorites").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/UserFavorites/views/default/favorite.html",'
'),$templateCache.put("scripts/plugins/Common/UserFavorites/views/default/favorite_add.html",' {{\'Add My Doctor\'| translate}} '),$templateCache.put("scripts/plugins/Common/UserFavorites/views/default/user_favorites.html",'

{{\'My Doctors\'| translate}}

{{doctor.user.user_profile.dr_title}} {{doctor.user.user_profile.first_name}} {{doctor.user.user_profile.last_name}}

{{doctor.user.user_profile.practice_name}}

{{doctor.user.user_profile.phone}}

{{\'No Favorite Added\' | translate}}

')}]);angular.module('abs').requires.push('abs.Common.UserFavorites');"use strict";angular.module("abs.Common.Withdrawal",["ui.router","ngResource","angulartics","angulartics.google.analytics","angulartics.facebook.pixel"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("user_cash_withdrawals",{url:"/users/cash_withdrawals",templateUrl:"scripts/plugins/Common/Withdrawal/views/default/cash_withdrawals.html",resolve:getToken})}]),angular.module("abs.Common.Withdrawal").controller("CashWithdrawalsController",["$rootScope","$scope","cashWithdrawals","moneyTransferAccount","flash","$filter","$state","UserMeFactory","$location","myUserFactory",function($rootScope,$scope,cashWithdrawals,moneyTransferAccount,flash,$filter,$state,UserMeFactory,$location,myUserFactory){$rootScope.url_split=$location.path().split("/")[2],$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Cash Withdrawals"),$scope.minimum_withdraw_amount=$rootScope.settings.USER_MINIMUM_WITHDRAW_AMOUNT,$scope.maximum_withdraw_amount=$rootScope.settings.USER_MAXIMUM_WITHDRAW_AMOUNT,$scope.user_available_balance=$rootScope.user.available_wallet_amount,$scope.withDrawAmount=200,$scope.mul=$scope.withDrawAmount*$rootScope.settings.WITHDRAW_REQUEST_FEE,$scope.ExampleAmount=$scope.withDrawAmount-$rootScope.settings.WITHDRAW_REQUEST_FEE,$scope.total=$scope.mul/100,$scope.account_error=!1;var params={},cashparams={};params.user_id=$rootScope.user.id,cashparams.user_id=$rootScope.user.id,$scope.index=function(){$scope.loader=!0,UserMeFactory.get({},function(response){$scope.user_available_balance=response.data.available_wallet_amount,$scope.getMyuser(),0===parseInt($scope.user_available_balance)?$scope.is_show_wallet_paybtn=!1:$scope.is_show_wallet_paybtn=!0}),cashparams.filter='{"include":{"0":"money_transfer_account","1":"withdrawal_status"}}',cashWithdrawals.get(cashparams,function(response){angular.isDefined(response._metadata)&&($scope.currentPage=response._metadata.current_page,$scope.totalItems=response._metadata.total,$scope.itemsPerPage=response._metadata.per_page,$scope.noOfPages=response._metadata.last_page),angular.isDefined(response.data)&&($scope.cashWithdrawalsList=response.data),$scope.loader=!1}),moneyTransferAccount.get(params,function(response){angular.isDefined(response.data)&&($scope.moneyTransferList=response.data)})},$scope.selectedAcc=function(id){$scope.account_id=id,$scope.account_error=!1},$scope.getMyuser=function(){$rootScope.isAuth&&myUserFactory.get(function(response){$scope.my_user=response.data})},$scope.userCashWithdrawSubmit=function($valid){void 0===$scope.account_id?$scope.account_error=!0:$scope.account_error=!1,$valid&&!1===$scope.account_error&&($scope.amount=parseFloat($("#amount").val()),parseFloat($scope.user_available_balance)>$scope.amount?(params.amount=$scope.amount,params.money_transfer_account_id=$scope.account_id,params.remark="",cashWithdrawals.save(params,function(response){0===response.error.code&&($scope.my_user.available_wallet_amount=$scope.my_user.available_wallet_amount-parseInt($scope.amount),flash.set($filter("translate")("Your request submitted successfully."),"success",!0),$state.reload())},function(){flash.set($filter("translate")("Withdraw request could not be added"),"error",!1)})):flash.set("You Dont have sufficient amount in your wallet.","error",!1))},$scope.paginate=function(currentpg){$scope.currentPage=parseInt(currentpg),$scope.index()},$scope.index()}]),angular.module("abs.Common.Withdrawal").factory("cashWithdrawals",["$resource",function($resource){return $resource("/api/v1/users/:user_id/user_cash_withdrawals",{},{get:{method:"GET",params:{user_id:"@user_id"}},save:{method:"POST",params:{user_id:"@user_id"}}})}]),angular.module("abs.Common.Withdrawal").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/Withdrawal/views/default/cash_withdrawals.html",'
')}]);angular.module('abs').requires.push('abs.Common.Withdrawal');"use strict";angular.module("abs.Common.Wallet",["ui.router","ngResource","angulartics","angulartics.google.analytics","angulartics.facebook.pixel"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("wallets",{url:"/wallets",templateUrl:"scripts/plugins/Common/Wallet/views/default/wallet.html",resolve:getToken})}]),angular.module("abs.Common.Wallet").controller("WalletController",["$rootScope","$scope","$window","Country","wallet","flash","$location","$filter","$state","paymentGateways","ConstPaymentGateways","UserMeFactory",function($rootScope,$scope,$window,Country,wallet,flash,$location,$filter,$state,paymentGateways,ConstPaymentGateways,UserMeFactory){$rootScope.url_split=$location.path().split("/")[1],$rootScope.header=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Add to wallet"),$scope.minimum_wallet_amount=$rootScope.settings.WALLET_MIN_WALLET_AMOUNT,$scope.maximum_wallet_amount=$rootScope.settings.WALLET_MAX_WALLET_AMOUNT,$scope.buyer={},$scope.paynow_is_disabled=!1,$scope.payment_note_enabled=!1,$scope.payer_form_enabled=!0,$scope.is_wallet_page=!0,$scope.existing_new_address=1,$scope.user_address_id="",$scope.user_address_add={},$scope.save_btn=!1,$scope.first_gateway_id="",$scope.gatewayError="",$scope.index=function(){UserMeFactory.get({},function(response){$scope.user_available_balance=response.data.available_wallet_amount||0,0===parseInt($scope.user_available_balance)?$scope.is_show_wallet_paybtn=!1:$scope.is_show_wallet_paybtn=!0});var payment_gateways=[];paymentGateways.get({},function(payment_response){if(payment_response.PayPalREST){payment_response.PayPalREST.paypalrest_enabled&&($scope.paypal_enabled=!0)}$scope.group_gateway_id="",0===payment_response.error.code&&void 0!==payment_response.zazpay&&(angular.forEach(payment_response.zazpay.gateways,function(gateway_group_value,gateway_group_key){0===gateway_group_key&&($scope.group_gateway_id=gateway_group_value.id,$scope.first_gateway_id=gateway_group_value.id),angular.forEach(gateway_group_value.gateways,function(payment_geteway_value,payment_geteway_key){var payment_gateway={},suffix="sp_";0===gateway_group_key&&($scope.sel_payment_gateway="sp_"+payment_geteway_value.id),suffix+=payment_geteway_value.id,payment_gateway.id=payment_geteway_value.id,payment_gateway.payment_id=suffix,payment_gateway.group_id=gateway_group_value.id,payment_gateway.display_name=payment_geteway_value.display_name,payment_gateway.thumb_url=payment_geteway_value.thumb_url,payment_gateway.suffix=payment_geteway_value._form_fields._extends_tpl.join(),payment_gateway.form_fields=payment_geteway_value._form_fields._extends_tpl.join(),payment_gateway.instruction_for_manual=payment_geteway_value.instruction_for_manual,payment_gateways.push(payment_gateway)})}),$scope.gateway_groups=payment_response.zazpay.gateways,$scope.payment_gateways=payment_gateways,$scope.form_fields_tpls=payment_response.zazpay._form_fields_tpls,$scope.show_form=[],$scope.form_fields=[],angular.forEach($scope.form_fields_tpls,function(key,value){"buyer"===value&&($scope.form_fields[value]="scripts/plugins/Wallet/views/default/buyer.html"),"credit_card"===value&&($scope.form_fields[value]="scripts/plugins/Wallet/views/default/credit_card.html"),"manual"===value&&($scope.form_fields[value]="scripts/plugins/Wallet/views/default/manual.html"),$scope.show_form[value]=!0}),$scope.gateway_id=ConstPaymentGateways.ZazPay)})},$scope.paneChanged=function(pane){"Manual / Offline"===pane&&($scope.payment_note_enabled=!0),"paypal"===pane&&($scope.gateway_id=ConstPaymentGateways.PayPal),$scope.defaultselect(pane);var keepGoing=!0;$scope.buyer={},$scope.PaymentForm.$setPristine(),$scope.PaymentForm.$setUntouched(),angular.forEach($scope.form_fields_tpls,function(key,value){$scope.show_form[value]=!1}),$scope.gateway_id=ConstPaymentGateways.ZazPay,angular.forEach($scope.gateway_groups,function(res){if(res.display_name===pane&&"Wallet"!==pane){var selPayment="";angular.forEach($scope.payment_gateways,function(response){keepGoing&&response.group_id===res.id&&(selPayment=response,keepGoing=!1,$scope.rdoclick(selPayment.id,selPayment.form_fields))}),$scope.sel_payment_gateway="sp_"+selPayment.id,$scope.group_gateway_id=selPayment.group_id}})},$scope.defaultselect=function(pane){var selectedTab,selectedPayment;$scope.gateways=[];var keepGoing=!0;angular.forEach($scope.gateway_groups,function(res){keepGoing&&res.display_name==pane&&(selectedTab=res,$scope.selectedTab=res,keepGoing=!1)}),keepGoing=!0,angular.forEach($scope.payment_gateways,function(res){keepGoing&&res.group_id==selectedTab.id&&(selectedPayment=res,keepGoing=!1,$scope.rdoclick(selectedPayment.id,selectedPayment.form_fields))}),$scope.gateways="sp_"+selectedPayment.id},$scope.rdoclick=function(res,res1){$scope.paynow_is_disabled=!1,$scope.sel_payment_gateway="sp_"+res,$scope.array=res1.split(","),angular.forEach($scope.array,function(value){$scope.show_form[value]=!0})},$scope.WalletFormSubmit=function(form){var payment_id="";if($scope.sel_payment_gateway&&$scope.gateway_id===ConstPaymentGateways.ZazPay&&(payment_id=$scope.sel_payment_gateway.split("_")[1]),$scope.buyer.user_id=$rootScope.user.id,$scope.buyer.amount=$scope.amount,$scope.buyer.payment_gateway_id=$scope.gateway_id,$scope.buyer.gateway_id=payment_id,angular.isDefined($scope.buyer.credit_card_expired)&&($scope.buyer.credit_card_expired.month||$scope.buyer.credit_card_expired.year)&&($scope.buyer.credit_card_expired.month>0&&$scope.buyer.credit_card_expired.month<10&&($scope.buyer.credit_card_expired.month="0"+$scope.buyer.credit_card_expired.month),$scope.buyer.credit_card_expire=$scope.buyer.credit_card_expired.month+"/"+$scope.buyer.credit_card_expired.year),form){$scope.paynow_is_disabled=!0;var flashMessage;wallet.create($scope.buyer,function(response){0===response.error.code?void 0!==response.redirect_url?$window.location.href=response.redirect_url:void 0!==response.payment_response.gateway_callback_url?$window.location.href=response.payment_response.gateway_callback_url:"Pending"===response.payment_response.status?(flashMessage=$filter("translate")("Your request is in pending."),flash.set(flashMessage,"error",!1),$state.reload()):"Captured"===response.payment_response.status?(flashMessage=$filter("translate")("Amount added successfully."),flash.set(flashMessage,"success",!1),$state.reload()):0===response.payment_response.error.code?(flashMessage=$filter("translate")("Payment successfully completed."),flash.set(flashMessage,"success",!1),$state.reload()):512===response.payment_response.error.code&&(flashMessage=$filter("translate")("Process Failed. Please, try again."),flash.set(flashMessage,"error",!1)):($scope.gatewayError=$filter("translate")(response.payment_response.error.message),flashMessage=$filter("translate")("Payment could not be completed.Please try again..."),flash.set(flashMessage,"error",!1)),$scope.paynow_is_disabled=!1},function(error){(angular.isDefined(error.payment_response.error.message)||null!==error.data.error.message)&&flash.set($filter("translate")(error.payment_response.error.message),"error",!1),$scope.paynow_is_disabled=!1})}},$scope.site_url=$location.absUrl().split("?")[1];var flashMessage;"error_code=0"===$scope.site_url&&(flashMessage=$filter("translate")("Payment successfully completed."),flash.set(flashMessage,"success",!1)),$scope.payNowPayPalClick=function(){var flashMessage;angular.isDefined($scope.amount)?($scope.buyer.user_id=$rootScope.user.id,$scope.buyer.amount=$scope.amount,$scope.buyer.payment_gateway_id=ConstPaymentGateways.PayPal,$scope.buyer.gateway_id=$scope.buyer.payment_gateway_id,$scope.paynow_is_disabled=!0,wallet.create($scope.buyer,function(response){0===response.error.code?void 0!==response.redirect_url?$window.location.href=response.redirect_url:void 0!==response.payment_response.gateway_callback_url?$window.location.href=response.payment_response.gateway_callback_url:"Pending"===response.payment_response.status?(flashMessage=$filter("translate")("Your request is in pending."),flash.set(flashMessage,"error",!1),$state.reload()):"Captured"===response.payment_response.status?(flashMessage=$filter("translate")("Amount added successfully."),flash.set(flashMessage,"success",!1),$state.reload()):0===response.payment_response.error.code?(flashMessage=$filter("translate")("Payment successfully completed."),flash.set(flashMessage,"success",!1),$state.reload()):512===response.payment_response.error.code&&(flashMessage=$filter("translate")("Process Failed. Please, try again."),flash.set(flashMessage,"error",!1)):($scope.gatewayError=$filter("translate")(response.payment_response.error.message),flashMessage=$filter("translate")("Payment could not be completed.Please try again..."),flash.set(flashMessage,"error",!1)),$scope.paynow_is_disabled=!1},function(error){(angular.isDefined(error.payment_response.error.message)||null!==error.data.error.message)&&flash.set($filter("translate")(error.payment_response.error.message),"error",!1),$scope.paynow_is_disabled=!1})):(flashMessage=$filter("translate")("please enter the valid amount."),flash.set(flashMessage,"error",!1))},Country.get({limit:"all"},function(response){angular.isDefined(response.data)&&($scope.countries=response.data)}),$scope.index()}]).directive("amountDisplay",function(){return{templateUrl:"views/dynamic_currency.html",restrict:"EA",replace:"true",scope:"true",link:function(scope,element,attr){scope.amount=attr.amount}}}),angular.module("abs.Common.Wallet").factory("wallet",["$resource",function($resource){return $resource("/api/v1/wallets",{},{create:{method:"POST"}})}]).factory("UserMeFactory",["$resource",function($resource){return $resource("/api/v1/me",{},{get:{method:"GET"}})}]).factory("paymentGateways",["$resource",function($resource){return $resource("/api/v1/payment_gateways/list",{},{get:{method:"GET"}})}]),angular.module("abs.Common.Wallet").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/Wallet/views/default/buyer.html",'
{{\'Required\'|translate}}
{{\'Enter Valid Email\'|translate}}
{{\'Required\'|translate}}
{{\'Required\'|translate}}
{{\'Required\'|translate}}
{{\'Required\'|translate}}
{{\'Required\'|translate}}
{{\'Required\'|translate}}
'),$templateCache.put("scripts/plugins/Common/Wallet/views/default/credit_card.html",'
{{\'Required\'|translate}}
{{\'Required\'|translate}}
{{\'Please enter a future date\'|translate}}
{{\'Required\'|translate}}
{{\'Required\'|translate}}
'),$templateCache.put("scripts/plugins/Common/Wallet/views/default/gateway.html",'
{{gatewayError}}
  • {{\'Please enter your credit card details below\'|translate}}.

'),$templateCache.put("scripts/plugins/Common/Wallet/views/default/manual.html",'
{{\'Required\'|translate}}
'),$templateCache.put("scripts/plugins/Common/Wallet/views/default/wallet.html",'
')}]);angular.module('abs').requires.push('abs.Common.Wallet');"use strict";angular.module("abs.Common.Contacts",["ui.router","ngResource","angulartics","angulartics.google.analytics","angulartics.facebook.pixel"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("contact",{url:"/contactus",templateUrl:"scripts/plugins/Common/Contacts/views/default/contacts.html",controller:"ContactUsController",resolve:getToken})}]),angular.module("abs").directive("contactLinks",function(){return{restrict:"A",replace:!0,templateUrl:"scripts/plugins/Common/Contacts/views/default/contact_links.html",link:function(scope,element,attrs){},controller:"ContactUsController",bindToController:!0}}).controller("ContactUsController",["$scope","$rootScope","ContactsFactory","$filter","flash","$state","$location","vcRecaptchaService",function($scope,$rootScope,ContactsFactory,$filter,flash,$state,$location,vcRecaptchaService){$scope.init=function(){$rootScope.pageTitle=$rootScope.settings["site.name"]+" | "+$filter("translate")("Contact Us"),$scope.captchaKey=$rootScope.settings.CAPTCHA_SITE_KEY},$scope.init(),$scope.contactFormSubmit=function(){$scope.emailErr="",$scope.captchaErr="",""===vcRecaptchaService.getResponse()?$scope.captchaErr=$filter("translate")("Please resolve the captcha and submit"):($scope.contactForm.recaptcha_response=vcRecaptchaService.getResponse(),ContactsFactory.post($scope.contactForm).$promise.then(function(response){flash.set($filter("translate")("Thank you for contacting us."),"success",!0),$scope.contactForm={},$scope.contactFormAdd.$setPristine(),$scope.contactFormAdd.$setUntouched()},function(error){var errMsg=error.data.errors;errMsg.email&&($scope.emailErr=$filter("translate")(errMsg.email[0])),flash.set($filter("translate")("Please try again later"),"error",!1)}))}}]),angular.module("abs").factory("ContactsFactory",["$resource",function($resource){return $resource("/api/v1/contacts",{},{post:{method:"POST"}})}]),angular.module("abs.Common.Contacts").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/Contacts/views/default/contact_links.html","
  • {{'Contact Us' | translate}}
  • "),$templateCache.put("scripts/plugins/Common/Contacts/views/default/contacts.html",'
    '),$templateCache.put("scripts/plugins/Common/Contacts/views/default/old-contacts.html",'
    ')}]);angular.module('abs').requires.push('abs.Common.Contacts');"use strict";angular.module("abs.Common.Payment",["ngResource","ngSanitize","satellizer","ngAnimate","ui.router"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("AppointmentPayment",{url:"/appointments/order/:id",templateUrl:"scripts/plugins/Common/Payment/views/appointment_payment.html",controller:"AppointmentPaymentController",resolve:getToken}).state("ProductPayment",{url:"/order_payment/:id",templateUrl:"scripts/plugins/Common/Payment/views/product_payment.html",controller:"ProductPaymentController",resolve:getToken})}]),angular.module("abs").controller("AppointmentPaymentController",["$scope","$state","$filter","$rootScope","$location","AppointmentView","flash","ConstUserType","ConstAppointmentStatus","Slug","PaymentGatewayList","RaveSuccessCheckoutFactory",function($scope,$state,$filter,$rootScope,$location,AppointmentView,flash,ConstUserType,ConstAppointmentStatus,Slug,PaymentGatewayList,RaveSuccessCheckoutFactory){$scope.maxSize=5,$scope.user={},$scope.paynow_is_disabled=!1,$scope.index=function(){$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Pay Appointment Fee");var params={};params.filter='{"include":{"0":"user.user_profile","1":"provider_user.user_profile.city","2":"provider_user.user_profile.state","3":"clinic_user","4":"book_by_user.user_profile","5":"branch.city"}}',params.id=$state.params.id,AppointmentView.get(params).$promise.then(function(response){$scope.appointment=response.data});var params={};params.filter='{"limit":"all", "skip":0}',PaymentGatewayList.get(params,function(payment_response){new Array;if($scope.gateway_count=0,payment_response.wallet&&($scope.wallet_enabled=!0,0===parseInt($scope.user_available_balance)?$scope.is_show_wallet_paybtn=!1:$scope.is_show_wallet_paybtn=!0,$scope.gateway_count=$scope.gateway_count+1),payment_response.PayPalREST){var response=payment_response.PayPalREST;response.paypalrest_enabled&&($scope.paypal_plugin_enabled=!0),$scope.gateway_count=$scope.gateway_count+1}if(payment_response.RaveByFlutterwave){var response=payment_response.RaveByFlutterwave;response.rave_enabled&&($scope.rave_plugin_enabled=!0,$scope.is_test_mode=response.is_test_mode,$scope.public_key=response.public_key),$scope.gateway_count=$scope.gateway_count+1}})},$scope.payWithRave=function(){$scope.paynow_is_disabled=!0;var x=getpaidSetup({PBFPubKey:$scope.public_key,customer_email:$rootScope.auth.email,amount:$scope.appointment.consultation_fee,customer_phone:$rootScope.auth.mobile,currency:$rootScope.settings.SITE_CURRENCY_CODE,country:"GH",txref:"appointment_id-"+$state.params.id,payment_options:"card,mobilemoneyghana",onclose:function(){$scope.paynow_is_disabled=!1},callback:function(response){response.tx.txRef;"00"==response.tx.chargeResponseCode||"0"==response.tx.chargeResponseCode?$scope.paySuccess(response):$scope.payFailed(response),x.close()}});$scope.paynow_is_disabled=!1},$scope.paySuccess=function(payment_response){$scope.rave_data={},$scope.rave_data.id=$state.params.id,$scope.rave_data.txRef=payment_response.tx.txRef,$scope.rave_data.flwRef=payment_response.tx.flwRef,$scope.rave_data.response=JSON.stringify(payment_response);var flashMessage;RaveSuccessCheckoutFactory.put($scope.rave_data,function(response){$scope.paynow_is_disabled=!1,0===response.error.code?(flash.set($filter("translate")("Your payment has been completed successfully."),"success",!0,8e3),angular.isDefined(response.data.id)&&$location.path("/appointment/"+response.data.id+"/"+response.data.appointment_token)):512===response.error.code?flash.set($filter("translate")("Payment Failed. Please, try again."),"error",!1):(flashMessage=$filter("translate")("We are unable to place your order. Please try again."),""!==response.error.message&&(flashMessage=flashMessage+" Error: "+response.error.message),flash.set(flashMessage,"error",!1))},function(error){$scope.paynow_is_disabled=!1,flash.set($filter("translate")("We are unable to place your order. Please try again."),"error",!1)})},$scope.payFailed=function(payment_response){$scope.paynow_is_disabled=!1,flash.set($filter("translate")("Payment Failed. Please, try again."),"error",!1)},$scope.index()}]),angular.module("abs").controller("ProductPaymentController",["$scope","$state","$filter","$rootScope","$location","OrderView","flash","ConstUserType","ConstOrderStatus","Slug","PaymentGatewayList","RaveSuccessCheckoutFactoryForOrder","Cart","PaymentStripeSessionCreate","StripeCheckout",function($scope,$state,$filter,$rootScope,$location,OrderView,flash,ConstUserType,ConstOrderStatus,Slug,PaymentGatewayList,RaveSuccessCheckoutFactoryForOrder,Cart,PaymentStripeSessionCreate,StripeCheckout){$scope.maxSize=5,$scope.user={},$scope.paynow_is_disabled=!1,$scope.Math=window.Math,$scope.index=function(){$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Pay Order Fee");var params={};params.filter='{"include":{"0":"user.user_profile"}}',params.id=$state.params.id,OrderView.get(params).$promise.then(function(response){$scope.order=response.data}),$scope.cartData=Cart.getProducts(),$scope.totalCart=function(){for(var total=0,i=0;i<$scope.cartData.length;i++)total+=$scope.cartData[i].price*(1+$scope.cartData[i].tax/100)*$scope.cartData[i].count;return Math.ceil(total)};var params={};params.filter='{"limit":"all", "skip":0}',PaymentGatewayList.get(params,function(payment_response){new Array;if($scope.rave_plugin_enabled=!1,$scope.paypal_plugin_enabled=!1,$scope.wallet_enabled=!1,stripe_plugin_enabled=!1,$scope.gateway_count=0,console.log("Gateway count: before",$scope.gateway_count),console.log("Rave Plugin T or F: before",$scope.rave_plugin_enabled),console.log("Payment response :",payment_response),payment_response.wallet&&($scope.wallet_enabled=!0,0===parseInt($scope.user_available_balance)?$scope.is_show_wallet_paybtn=!1:$scope.is_show_wallet_paybtn=!0,$scope.gateway_count=$scope.gateway_count+1),payment_response.PayPalREST){var response=payment_response.PayPalREST;response.paypalrest_enabled&&($scope.paypal_plugin_enabled=!0),$scope.gateway_count=$scope.gateway_count+1}if(payment_response.RaveByFlutterwave){var response=payment_response.RaveByFlutterwave;response.rave_enabled&&($scope.rave_plugin_enabled=!0,$scope.is_test_mode=response.is_test_mode,$scope.public_key=response.public_key),$scope.gateway_count=$scope.gateway_count+1}if(payment_response.Stripe){var response=payment_response.Stripe;response.stripe_enabled&&($scope.stripe_plugin_enabled=!0,$scope.is_test_mode=response.is_test_mode,$scope.stripe_public_key=response.public_key,$rootScope.myStripe=Stripe($scope.stripe_public_key)),$scope.gateway_count=$scope.gateway_count+1,console.log("Gateway count:",$scope.gateway_count),console.log("Stripe Plugin T or F:",$scope.stripe_plugin_enabled),console.log("Stripe PK:",$scope.stripe_public_key),console.log("Rave Plugin T or F:",$scope.rave_plugin_enabled)}})},$scope.onToken_Stripe=function(token){console.log(token)},$scope.payWithStripe=function(){$scope.paynow_is_disabled=!0;var params={customer_email:$rootScope.auth.email,amount:$scope.totalCart(),name:"Exadoctor product",description:"Medical device",quantity:"1",orderId_metadata:"order_id-"+$state.params.id};PaymentStripeSessionCreate.post(params,function(response){$scope.sesId=response.data,console.log("response session create:"+$scope.sesId);var testsessID1=$scope.sesId;console.log("testsessID1:"+testsessID1),StripeCheckout.set($scope.sesId);var testsessID=StripeCheckout.get();StripeCheckout.affich(testsessID),console.log("testsessID:"+testsessID),console.log("txref: order_id-"+$state.params.id),StripeCheckout.redirect(testsessID)}),$scope.paynow_is_disabled=!1},$scope.payWithRave=function(){$scope.paynow_is_disabled=!0;var x=getpaidSetup({PBFPubKey:$scope.public_key,customer_email:$rootScope.auth.email,amount:$scope.order.totalOrder,customer_phone:$rootScope.auth.mobile,currency:$rootScope.settings.SITE_CURRENCY_CODE,country:"GH",txref:"order_id-"+$state.params.id,payment_options:"card,mobilemoneyghana",onclose:function(){$scope.paynow_is_disabled=!1},callback:function(response){response.tx.txRef;"00"==response.tx.chargeResponseCode||"0"==response.tx.chargeResponseCode?$scope.paySuccess(response):$scope.payFailed(response),x.close()}});$scope.paynow_is_disabled=!1},$scope.paySuccess=function(payment_response){$scope.rave_data={},$scope.rave_data.id=$state.params.id,$scope.rave_data.txRef=payment_response.tx.txRef,$scope.rave_data.flwRef=payment_response.tx.flwRef,$scope.rave_data.response=JSON.stringify(payment_response),console.log("Rave Data:",$scope.rave_data);var flashMessage;RaveSuccessCheckoutFactoryForOrder.put($scope.rave_data,function(response){$scope.paynow_is_disabled=!1,0===response.error.code?(flash.set($filter("translate")("Your payment has been completed successfully."),"success",!0,8e3),console.log("RaveSuccesCheckoutFactoryForOrder response.data.id",response.data.id),angular.isDefined(response.data.id)&&$location.path("/orders/today")):512===response.error.code?flash.set($filter("translate")("Payment Failed. Please, try again."),"error",!1):(flashMessage=$filter("translate")("We are unable to place your order. Please try again."),""!==response.error.message&&(flashMessage=flashMessage+" Error: "+response.error.message),flash.set(flashMessage,"error",!1))},function(error){$scope.paynow_is_disabled=!1,flash.set($filter("translate")("We are unable to place your order. Please try again."),"error",!1)})},$scope.payFailed=function(payment_response){$scope.paynow_is_disabled=!1,flash.set($filter("translate")("Payment Failed. Please, try again."),"error",!1)},$scope.index()}]),angular.module("abs").factory("PaymentGatewaySingle",["$resource",function($resource){return $resource("/api/v1/payment_gateway_settings/:id",{id:"@id"},{get:{method:"GET"}})}]).factory("PaymentGatewayList",["$resource",function($resource){return $resource("/api/v1/payment_gateways/list",{},{get:{method:"GET"}})}]).factory("PaymentOrder",["$resource",function($resource){return $resource("/api/v1/order",{},{post:{method:"POST"}})}]),angular.module("abs.Common.Payment").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/Payment/views/appointment_payment.html",'

    {{\'Pay Appointment Fee\' | translate}}

    {{\'Appointment Requested On\' | translate}} {{appointment.appointment_date | dateFormat}} {{appointment.appointment_time}}
    {{\'Doctor Name\' | translate}} {{appointment.provider_user.user_profile.first_name}} {{appointment.provider_user.user_profile.last_name}}
    {{\'Where\' | translate}} {{appointment.clinic_user.user_profile.display_name}}, {{appointment.branch.name}}, {{appointment.branch.city.name}} {{appointment.provider_user.user_profile.address}}, {{appointment.provider_user.user_profile.city.name}}, {{appointment.provider_user.user_profile.state.name}}
    {{\'Consultation Fee\' | translate}} {{$root.settings.CURRENCY_SYMBOL}}{{appointment.consultation_fee}}
    '),$templateCache.put("scripts/plugins/Common/Payment/views/product_payment.html",'

    {{\'Product Order\' | translate}}

    {{\'Order Requested On\' | translate}} {{order.order_date | dateFormat}}
    {{\'Total Order\' | translate}} {{$root.settings.CURRENCY_SYMBOL}} {{totalCart() | number:0}}
    ')}]);angular.module('abs').requires.push('abs.Common.Payment');"use strict";angular.module("abs.Clinic.Review",["ngResource","ngSanitize","satellizer","ngAnimate","ui.router"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("WriteReview",{url:"/reviews/{apt_id}/{provider_user_id}/{branch_id}/{clinic_user_id}/add/{type}",templateUrl:"scripts/plugins/Clinic/Review/views/default/review_booking.html",controller:"ReviewsController",resolve:getToken}).state("DoctorReview",{url:"/reviews/{apt_id}/{provider_user_id}/add/{type}",templateUrl:"scripts/plugins/Clinic/Review/views/default/review_booking.html",controller:"ReviewsController",resolve:getToken}).state("Reviews",{url:"/reviews",templateUrl:"scripts/plugins/Clinic/Clinic/views/default/branches.html",controller:"BranchesController",resolve:getToken})}]),angular.module("abs").controller("ReviewsController",["$state","$scope","$rootScope","$filter","$location","flash","ReviewPost","ReviewsFactory",function($state,$scope,$rootScope,$filter,$location,flash,ReviewPost,ReviewsFactory){function getDoctorReview(to_user_id){var params={};params.filter='{"where":{"user_id":'+$rootScope.auth.id+',"to_user_id":'+to_user_id+', "foreign_type":"Appointment"}}',ReviewsFactory.get(params).$promise.then(function(response){$scope.review=response.data[0],$scope.isAlreadyReviewed=response.data.length>0})}function getBranchReview(clinic_user_id){var params={};params.filter='{"where":{"user_id":'+$rootScope.auth.id+', "clinic_user_id":'+clinic_user_id+', "foreign_type":"Branch"}}',ReviewsFactory.get(params).$promise.then(function(response){$scope.branch_review=response.data[0],response.data.length>0&&($scope.branch_bedside_rate=$scope.branch_review.bedside_rate,$scope.branch_waittime_rate=$scope.branch_review.waittime_rate,$scope.branch_message=$scope.branch_review.message),$scope.isBranchReviewed=response.data.length>0})}$scope.branch_review={},$scope.init=function(){$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Review & Rating"),"branch"===$state.params.type?(getDoctorReview($state.params.provider_user_id),getBranchReview($state.params.clinic_user_id)):"doctor"===$state.params.type&&getDoctorReview($state.params.provider_user_id),$scope.review_type=$state.params.type},$scope.init(),$scope.postDoctorReviewRating=function($valid,form){if($valid){$scope.disableButton=!0;var reviewData={};reviewData.foreign_id=$state.params.apt_id,reviewData.user_id=$rootScope.auth.id,reviewData.to_user_id=$state.params.provider_user_id,reviewData.branch_id=$state.params.branch_id,reviewData.clinic_user_id=$state.params.clinic_user_id,reviewData.foreign_type="Appointment",reviewData.bedside_rate=form.bedside_rate.$modelValue,reviewData.waittime_rate=form.waittime_rate.$modelValue,reviewData.message=form.message.$modelValue,ReviewPost.post(reviewData).$promise.then(function(response){0===response.error.code?(flash.set($filter("translate")("Doctor rate & review added successfully."),"success",!0),$scope.disableButton=!1,$state.go("MyAppointments")):(flash.set($filter("translate")(response.error.message),"error",!1),$scope.disableButton=!1)})}},$scope.postBranchReviewRating=function($valid,form,review_type){if($valid){$scope.disableButton=!0;var reviewData={};reviewData.foreign_id=$state.params.branch_id,reviewData.user_id=$rootScope.auth.id,reviewData.branch_id=$state.params.branch_id,reviewData.clinic_user_id=$state.params.clinic_user_id,reviewData.to_user_id="diagnostic"===review_type?$state.params.clinic_user_id:$state.params.provider_user_id,reviewData.foreign_type="Branch",reviewData.bedside_rate=form.branch_bedside_rate.$modelValue,reviewData.waittime_rate=form.branch_waittime_rate.$modelValue,reviewData.message=form.branch_message.$modelValue,ReviewPost.post(reviewData).$promise.then(function(response){0===response.error.code?(flash.set($filter("translate")("Branch rate & review added successfully."),"success",!0),$scope.disableButton=!1,$state.go("MyAppointments")):(flash.set($filter("translate")(response.error.message),"error",!1),$scope.disableButton=!1)})}}}]),angular.module("abs").directive("reviewPost",["$filter",function($filter){return{restrict:"E",templateUrl:"scripts/plugins/Clinic/Review/views/default/review_booking.html",scope:!0,controller:"ReviewsController"}}]).directive("reviewShow",["$filter",function($filter){return{restrict:"E",templateUrl:"scripts/plugins/Clinic/Review/views/default/reviews.html",scope:{showreview:"@"},controller:function($scope,$rootScope,UserViewProfileFactory,UserReviews,$state,$window,$timeout,$location,ConstUserType){$scope.reviews=[],$scope.ConstUserType=ConstUserType;var params={};params.id=$state.params.id,params.filter='{"include": {"0":"user_profile"}}',UserViewProfileFactory.get(params).$promise.then(function(response){$scope.doctor=response.data,$scope.name=$scope.doctor.role_id===$scope.ConstUserType.Doctor?$filter("translate")("Dr")+". "+$scope.doctor.user_profile.first_name+" "+$scope.doctor.user_profile.last_name:$scope.doctor.user_profile.display_name}),$scope.skip=0,$scope.getReviews=function(){$scope.loader=!0,$scope.limit=4,params={};var api_filter={},Where=[];Where.push({where:{},include:{}}),api_filter="doctor"===$scope.showreview?{to_user_id:$state.params.id,foreign_type:"Appointment"}:{branch_id:$state.params.id,foreign_type:"Branch"},Where[0].include[0]="user",Where[0].include[1]="user.attachment",Where[0].include[2]="user.user_profile",Where[0].include[3]="to_user.user_profile",Where[0].where=api_filter,Where[0].limit=$scope.limit,Where[0].skip=$scope.skip,params.filter=JSON.stringify(Where[0]),UserReviews.get(params).$promise.then(function(response){angular.isDefined(response._metadata)&&($scope.lastpage=response._metadata.last_page,$scope.currentpage=response._metadata.current_page),$scope.dataLength=response.data.length>0,$timeout(function(){angular.isDefined(response.data)&&(angular.forEach(response.data,function(review){$scope.reviews.push(review)}),$scope.loader=!1)},500)})},$scope.index=function(){$scope.getReviews()},$scope.loadMore=function(){$scope.skip+=4,$scope.getReviews()},$scope.index()}}}]),angular.module("abs").factory("UserReviewsFactory",["$resource",function($resource){return $resource("/api/v1/reviews/:id",{id:"@id"},{get:{method:"GET"}})}]).factory("ReviewsFactory",["$resource",function($resource){return $resource("/api/v1/reviews",{},{get:{method:"GET"}})}]).factory("ReviewPost",["$resource",function($resource){return $resource("/api/v1/reviews",{},{post:{method:"POST"}})}]),angular.module("abs.Clinic.Review").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Clinic/Review/views/default/rating_stars.html",'
    {{\'Please Enter Your Review\'| translate}}.
    '),$templateCache.put("scripts/plugins/Clinic/Review/views/default/review_booking.html",'

    {{"Rating & Reviews" | translate }}

    {{"For Doctors" | translate }}

    {{\'Required\' | translate }}
    {{\'Required\' | translate }}
    {{\'Required\'| translate }}

    {{"Doctor" | translate }}

    {{review.rating}}

    {{review.message}}

    {{"Branch" | translate }}

    {{branch_review.rating}}

    {{branch_review.message}}

    {{"For Branch" | translate }}

    {{\'Required\' | translate }}
    {{\'Required\' | translate }}
    {{\'Required\'| translate }}
    '),$templateCache.put("scripts/plugins/Clinic/Review/views/default/reviews.html",'
    {{\'Patient Reviews For\'| translate}} {{name}}

    {{review.created_at | dateFormat}}

    {{\'by\' | translate}} {{review.user.user_profile.first_name}} {{review.user.user_profile.last_name}} ({{\'Verified Patient\' | translate}})

    {{\'Overall Rating\' | translate}}

    {{\'Bedside Manner\' | translate}}

    {{\'Wait Time\' | translate}}

    {{review.message}}


    {{\'No reviews added yet\'|translate}}

    ')}]);angular.module('abs').requires.push('abs.Clinic.Review');"use strict";angular.module("abs.Clinic.Pharmacy",["ngResource","ngSanitize","satellizer","ngAnimate","ui.bootstrap","ui.router","angular-growl","google.places","ngCookies","angular-md5","ui.select","angulartics","pascalprecht.translate","angulartics.google.analytics","tmh.dynamicLocale","ngMap","chieffancypants.loadingBar","angularMoment","ngFileUpload","slugifier","ngTagsInput"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("prescriptions",{url:"/prescriptions",templateUrl:"scripts/plugins/Clinic/Clinic/views/default/clinic_profile.html",controller:"ClinicController",resolve:getToken}).state("pharmacy_view",{url:"/pharmacy/:id/:slug",templateUrl:"scripts/plugins/Clinic/Pharmacy/views/default/pharmacy_profile.html",resolve:getToken})}]),angular.module("abs").controller("PharmacyController",["$state","$rootScope","$scope","$filter","$location","$timeout","flash","SweetAlert","BranchesFactory","BranchesEdit","MyDoctorsFactory",function($state,$rootScope,$scope,$filter,$location,$timeout,flash,SweetAlert,BranchesFactory,BranchesEdit,MyDoctorsFactory){$scope.maxSize=5,$scope.lastPage=1,$scope.itemsPerPage=20,$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Branches"),$scope.currentPage=angular.isDefined($state.params.page)?parseInt($state.params.page):1,$scope.skipvalue=void 0!==$scope.itemsPerPage?($scope.currentPage-1)*$scope.itemsPerPage:0,$scope.itemsPerPage=void 0!==$scope.itemsPerPage?$scope.itemsPerPage:0,$scope.myBranches=function(){if("my_branches"===$state.current.name){var params={};params.filter='{"where":{"user_id":'+$rootScope.auth.id+'},"limit":'+$scope.itemsPerPage+',"skip":'+$scope.skipvalue+',"include":{"0":"branch.city","1":"branch.country","2":"clinic_user.user_profile"}}',$scope.loader=!0,void 0===$state.params.page?params.page=1:params.page=$state.params.page,MyDoctorsFactory.get(params,function(response){angular.isDefined(response._metadata)&&($scope.currentPage=response._metadata.current_page,$scope.lastPage=response._metadata.last_page,$scope.itemsPerPage=20,$scope.totalRecords=response._metadata.total,$scope.Perpage=response._metadata.per_page),angular.isDefined(response.data)&&($scope.branches=response.data,$scope.dataLength=response.data.length>0),$scope.loader=!1})}},"my_branches"===$state.current.name&&$scope.myBranches(),$scope.loader=!0,$scope.mybranch=function(){var params={};params.filter='{"where":{"clinic_user_id":'+$rootScope.auth.id+'},"limit":'+$scope.itemsPerPage+',"skip":'+$scope.skipvalue+',"include":{"0":"city","1":"country"},"order":"id desc"}',void 0===$state.params.page?params.page=1:params.page=$state.params.page,BranchesFactory.get(params,function(response){angular.isDefined(response._metadata)&&($scope.currentPage=response._metadata.current_page,$scope.lastPage=response._metadata.last_page,$scope.itemsPerPage=20,$scope.totalRecords=response._metadata.total,$scope.Perpage=response._metadata.per_page),angular.isDefined(response.data)&&($scope.branches=response.data,$scope.dataLength=response.data.length>0),$scope.loader=!1})},"my_branches"!==$state.current.name&&$scope.mybranch(),$scope.paginate_search=function(element,currentPage){$scope.currentPage=currentPage,$location.search("page",currentPage),$("html, body").stop().animate({scrollTop:0},1e3,"swing",!1),$timeout(function(){"my_branches"!==$state.current.name&&$scope.mybranch(),"my_branches"===$state.current.name&&$scope.myBranches()},1e3)},$scope.changeStatus=function(branch_id,status){var branchData={};branchData.id=branch_id,branchData.is_active=status,SweetAlert.swal({title:$filter("translate")("Are you sure you want to change the status?"),text:"",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:$filter("translate")("OK"),cancelButtonText:$filter("translate")("Cancel!"),closeOnConfirm:!0,animation:!1},function(isConfirm){!0===isConfirm&&BranchesEdit.put(branchData,function(response){0===response.error.code?(flash.set($filter("translate")("Your doctor has been deleted successfully."),"success",!1),$state.reload()):(flash.set($filter("translate")("Your doctor couldn't deleted. Please try again."),"error",!1),$state.reload())})})}}]),angular.module("abs").factory("BranchesFactory",["$resource",function($resource){return $resource("/api/v1/branches",{},{get:{method:"GET"},post:{method:"POST"}})}]).factory("BranchesEdit",["$resource",function($resource){return $resource("/api/v1/branches/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"}})}]).factory("BranchesTimeSlot",["$resource",function($resource){return $resource("/api/v1/branches/:id/timeslot",{id:"@id"},{get:{method:"GET"}})}]).factory("DoctorsFactory",["$resource",function($resource){return $resource("/api/v1/branch_doctors",{},{get:{method:"GET"},post:{method:"POST"}})}]).factory("DoctorsEdit",["$resource",function($resource){return $resource("/api/v1/branch_doctors/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"}})}]).factory("RemoveDoctor",["$resource",function($resource){return $resource("/api/v1/branch_doctors/:id",{id:"@id"},{delete:{method:"DELETE"}})}]).factory("MyDoctorsFactory",["$resource",function($resource){return $resource("/api/v1/branch_doctors",{},{get:{method:"GET"}})}]).factory("SearchDoctors",["$resource",function($resource){return $resource("/api/v1/users",{},{get:{method:"GET"}})}]).factory("SearchUsers",["$resource",function($resource){return $resource("/api/v1/users",{},{get:{method:"GET"}})}]).factory("SearchPatients",["$resource",function($resource){return $resource("/api/v1/users",{},{get:{method:"GET"}})}]).factory("UsersFactory",["$resource",function($resource){return $resource("/api/v1/branch_users",{},{get:{method:"GET"},post:{method:"POST"}})}]).factory("UsersEdit",["$resource",function($resource){return $resource("/api/v1/branch_users/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"}})}]).factory("RemoveUser",["$resource",function($resource){return $resource("/api/v1/branch_users/:id",{id:"@id"},{delete:{method:"DELETE"}})}]).factory("UserById",["$resource",function($resource){return $resource("/api/v1/users/:id",{id:"@id"},{get:{method:"GET"}})}]).factory("AppoinmentSettingsService",["$resource",function($resource){return $resource("/api/v1/appointment_settings/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"}})}]).factory("AppoinmentModificationService",["$resource",function($resource){return $resource("/api/v1/appointment_modifications",{},{get:{method:"GET"},post:{method:"POST"}})}]).factory("AppoinmentModifications",["$resource",function($resource){return $resource("/api/v1/appointment_modifications/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"},getbyid:{method:"GET"},delete:{method:"DELETE"}})}]).factory("ClinicAppointmentFactory",["$resource",function($resource){return $resource("/api/v1/appointments",{},{get:{method:"GET"}})}]).factory("ClinicAppointmentBookingAdd",["$resource",function($resource){return $resource("/api/v1/appointments",{},{post:{method:"POST"}})}]).factory("AppointmentView",["$resource",function($resource){return $resource("/api/v1/appointments/:id",{id:"@id"},{get:{method:"GET"}})}]).factory("OrderView",["$resource",function($resource){return $resource("/api/v1/orders/:id",{id:"@id"},{get:{method:"GET"}})}]).factory("PermissionsFactory",["$resource",function($resource){return $resource("/api/v1/permissions",{},{get:{method:"GET"}})}]).factory("LocationsFactory",["$resource",function($resource){return $resource("/api/v1/locations",{},{get:{method:"GET"}})}]).factory("SpecialtiesFactory",["$resource",function($resource){return $resource("/api/v1/specialties",{},{get:{method:"GET"}})}]).factory("InsurancesFactory",["$resource",function($resource){return $resource("/api/v1/insurances",{},{get:{method:"GET"}})}]).factory("LanguagesFactory",["$resource",function($resource){return $resource("/api/v1/languages",{},{get:{method:"GET"}})}]).factory("CountriesFactory",["$resource",function($resource){return $resource("/api/v1/countries",{},{get:{method:"GET"}})}]).factory("NewsFeedsFactory",["$resource",function($resource){return $resource("/api/v1/news_feeds",{},{get:{method:"GET"},post:{method:"POST"}})}]).factory("NewsFeedsActionsFactory",["$resource",function($resource){return $resource("/api/v1/news_feeds/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"},delete:{method:"DELETE"}})}]).factory("AttachementDelete",["$resource",function($resource){return $resource("/api/v1/attachments/:attachmentId",{attachmentId:"@attachmentId"},{delete:{method:"DELETE"}})}]),angular.module("abs.Clinic.Pharmacy").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Clinic/Pharmacy/views/default/branches.html",'

    {{\'My Branches\'|translate}} {{\'Add Branch\'|translate}}

    {{\'Branch\'|translate}} {{\'Address\'|translate}} {{\'Phone\'|translate}} {{\'Country\'|translate}} {{\'City\'|translate}} {{\'Status\'|translate}} {{\'Action\'|translate}}
    {{branch.name |translate}} {{branch.address |translate}} {{branch.phone_number |translate}} {{branch.country.name |translate}} {{branch.city.name |translate}} {{\'Edit\' | translate}} {{\'Manage Doctors\' | translate}} {{\'Manage Users\' | translate}}

    {{\'No Records Found\'|translate}}

    '),$templateCache.put("scripts/plugins/Clinic/Pharmacy/views/default/pharmacy_profile.html",'

    {{pharmacyMapPositions.name}}

    {{pharmacyMapPositions.address1}}

    {{user.username}}

    {{user.user_profile.display_name}}

    {{user.user_profile.first_name}} {{user.user_profile.last_name}}

    {{pharmacyMapPositions.address1}}

    +{{user.mobile_code}} {{user.mobile}} (Personal)

    {{user.user_profile.primary_telephone_number}} (Tel. Number)

    {{user.user_profile.primary_fax_number}} (Fax Number)

    {{user.user_profile.website}}

    ')}]);angular.module('abs').requires.push('abs.Clinic.Pharmacy');"use strict";angular.module("abs.Clinic.SMS",["ngResource","ngSanitize","satellizer","ngAnimate","ui.router"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){var getToken={TokenServiceData:function(TokenService,$q){return $q.all({AuthServiceData:TokenService.promise,SettingServiceData:TokenService.promiseSettings})}};$urlRouterProvider.otherwise("/"),$stateProvider.state("SendSMS",{url:"/sms_nofication/{branch_id}/{clinic_user_id}/send",templateUrl:"scripts/plugins/Clinic/SMS/views/default/sms_notifications.html",controller:"SmsController",resolve:getToken})}]),angular.module("abs").directive("smsNotifications",function(){return{restrict:"E",scope:!0,templateUrl:"scripts/plugins/Clinic/SMS/views/default/sms_notifications_link.html",controller:function($window,$rootScope,$state,$location,$scope,$timeout,$uibModal,$uibModalStack,flash){$rootScope.sendSms=function(branch_id,clinic_user_id){$rootScope.branch_id=branch_id,$rootScope.clinic_user_id=clinic_user_id,$scope.modalInstance=$uibModal.open({templateUrl:"scripts/plugins/Clinic/SMS/views/default/sms_notifications.html",animation:!0,controller:function($scope,$rootScope,$window,$stateParams,$filter,$state,$timeout,$uibModal,$uibModalStack,$cookies,flash,SendSMS,ConstUserType){$rootScope.closemodel=function(){$uibModalStack.dismissAll()},$scope.data={},$scope.sendSms=function(){if($scope.data){var smsData={};smsData.post_user_id=$rootScope.auth.id,smsData.branch_id=$rootScope.branch_id,smsData.clinic_user_id=$rootScope.clinic_user_id,smsData.message=$scope.data.message,SendSMS.post(smsData,function(response){0===parseInt(response.error.code)?(flash.set($filter("translate")("SMS send successfully"),"success",!1),$uibModalStack.dismissAll(),ConstUserType.SubAccount===$rootScope.auth.role_id?$location.path("/appointments/"+response.branch_id+"/"+response.clinic_user_id+"/manage/all"):$state.go("branches")):($scope.save_btn=!1,flash.set($filter("translate")("SMS send failed."),"error",!1))},function(error){console.log("SMS send Error",error)})}}},size:"lg"})}}}}),angular.module("abs").factory("SendSMS",["$resource",function($resource){return $resource("/api/v1/sms_notifications",{},{get:{method:"GET"},post:{method:"POST"}})}]),angular.module("abs.Clinic.SMS").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Clinic/SMS/views/default/sms_notifications.html",'
    '),$templateCache.put("scripts/plugins/Clinic/SMS/views/default/sms_notifications_link.html",' {{\'SMS Notifications\' | translate}}')}]);angular.module('abs').requires.push('abs.Clinic.SMS');"use strict";angular.module("abs.Common.Subscriptions",["ngResource"]).config(["$stateProvider","$urlRouterProvider",function($stateProvider,$urlRouterProvider){$urlRouterProvider.otherwise("/"),$stateProvider.state("SubscribePlans",{url:"/subscribe/plans?error_code",controller:"SubscribePlansController",templateUrl:"scripts/plugins/Common/Subscriptions/views/default/subscribe_plans.html"}).state("subscribe_vsee",{url:"/subscribe/plans/vsee?error_code",controller:"SubscribePlansController",templateUrl:"scripts/plugins/Common/Subscriptions/views/default/subscribe_plans.html"}).state("subscribe_abs",{url:"/subscribe/plans/abs?error_code",controller:"SubscribePlansController",templateUrl:"scripts/plugins/Common/Subscriptions/views/default/subscribe_plans.html"}).state("SubscribePlansHorilla",{url:"/subscribe/plans/horilla?error_code",controller:"SubscribePlansController",templateUrl:"scripts/plugins/Common/Subscriptions/views/default/subscribe_plans.html"}).state("subscribe_tidepool",{url:"/subscribe/plans/tidepool?error_code",controller:"SubscribePlansController",templateUrl:"scripts/plugins/Common/Subscriptions/views/default/subscribe_plans.html"})}]),angular.module("abs").controller("SubscribePlansController",["$scope","$state","$rootScope","$location","$filter",function($scope,$state,$rootScope,$location,$filter){$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Plans")}]).controller("subscriptionsPlanController",["$state","SubscriptionsPlans","$scope","$rootScope","$location","flash","$filter","GetSubscriptionDetail","paymentGateways","PaymentGatewayList","RaveSubscriptionCheckoutFactory","UserSubscriptionFactory","ConstSubscriptionStatuses","ConstPlan","MyUserSubscription","SweetAlert","UpdateUserSubscription","PaymentStripeSessionSubscriptionCreate","$cookies",function($state,SubscriptionsPlans,$scope,$rootScope,$location,flash,$filter,GetSubscriptionDetail,paymentGateways,PaymentGatewayList,RaveSubscriptionCheckoutFactory,UserSubscriptionFactory,ConstSubscriptionStatuses,ConstPlan,MyUserSubscription,SweetAlert,UpdateUserSubscription,PaymentStripeSessionSubscriptionCreate,$cookies){function getGatewaysList(){$scope.loading=!1;var params={};params.filter='{"limit":"all", "skip":0}',PaymentGatewayList.get(params,function(payment_response){new Array;if($scope.gateway_count=0,payment_response.wallet&&($scope.wallet_enabled=!0,0===parseInt($scope.user_available_balance)?$scope.is_show_wallet_paybtn=!1:$scope.is_show_wallet_paybtn=!0,$scope.gateway_count=$scope.gateway_count+1),payment_response.PayPalREST){var response=payment_response.PayPalREST;response.paypalrest_enabled&&($scope.paypal_plugin_enabled=!0),$scope.gateway_count=$scope.gateway_count+1}if(payment_response.RaveByFlutterwave){var response=payment_response.RaveByFlutterwave;response.rave_enabled&&($scope.rave_plugin_enabled=!0,$scope.is_test_mode=response.is_test_mode,$scope.public_key=response.public_key),$scope.gateway_count=$scope.gateway_count+1}if(payment_response.Stripe){var response=payment_response.Stripe;response.stripe_enabled&&($scope.stripe_plugin_enabled=!0,$scope.is_test_mode=response.is_test_mode,$scope.stripe_public_key=response.public_key,$rootScope.myStripe=Stripe($scope.stripe_public_key,{stripeAccount:"acct_1SSJO9QGo50YNBt6"})),$scope.gateway_count=$scope.gateway_count+1}})}function getSubscriptionsPlans(){SubscriptionsPlans.get().$promise.then(function(response){$scope.subscription_plans_all=response,getGatewaysList(),$scope.subscription_loader=!1}),params={},params.filter='{"where":{"subscription_category_id":'+$scope.ConstPlan.Cat_VSee_plan+'},"include":{"0":"subscription_category"},"limit":100,"skip":0}',SubscriptionsPlans.get(params,function(response){$scope.vsee_subscription_plans=response.data,console.log("Sub plan Medis",$scope.vsee_subscription_plans)}),params={},params.filter='{"where":{"subscription_category_id":'+$scope.ConstPlan.Cat_abs_plan+'},"include":{"0":"subscription_category"},"limit":100,"skip":0}',SubscriptionsPlans.get(params,function(response){$scope.subscription_plans=response.data,console.log("Sub plan Medis",$scope.subscription_plans),$scope.abs_subscription_plans=response.data}),params={},params.filter='{"where":{"subscription_category_id":'+$scope.ConstPlan.Cat_recruitment_plan+'},"include":{"0":"subscription_category"},"limit":100,"skip":0}',SubscriptionsPlans.get(params,function(response){$scope.recruit_subscription_plans=response.data,console.log("Sub plan HR",$scope.recruit_subscription_plans)}),params={},params.filter='{"where":{"subscription_category_id":'+$scope.ConstPlan.Cat_rpm_diabetes_plan+'},"include":{"0":"subscription_category"},"limit":100,"skip":0}',SubscriptionsPlans.get(params,function(response){$scope.rpm_diab_subscription_plans=response.data,console.log("Sub plan RPM",$scope.rpm_diab_subscription_plans)})}function getCurrentPlan(){var params={};params={},params.filter={},params.subscription_category_id={},params.subscription_category_id=$scope.ConstPlan.Cat_abs_plan,params.filter='{"where":{"subscription_status_id":'+ConstSubscriptionStatuses.Active+'}"order": "id desc", "limit": 100, "skip": 0}',MyUserSubscription.get(params,function(response){$scope.current_subscription_plans=response.data}),params={},params.filter={},params.subscription_category_id={},params.subscription_category_id=$scope.ConstPlan.Cat_VSee_plan,params.filter='{"where":{"subscription_status_id":'+ConstSubscriptionStatuses.Active+'}"order": "id desc", "limit": 100, "skip": 0}',MyUserSubscription.get(params,function(response){$scope.current_vsee_subscription_plans=response.data,console.log("Current VSee Plan:",$scope.current_vsee_subscription_plans)}),params={},params.filter={},params.subscription_category_id={},params.subscription_category_id=$scope.ConstPlan.Cat_rpm_diabetes_plan,params.filter='{"where":{"subscription_status_id":'+ConstSubscriptionStatuses.Active+'}"order": "id desc", "limit": 100, "skip": 0}',MyUserSubscription.get(params,function(response){$scope.current_rpm_diab_subscription_plans=response.data}),params={},params.filter={},params.subscription_category_id={},params.subscription_category_id=$scope.ConstPlan.Cat_recruitment_plan,MyUserSubscription.get(params,function(response){$scope.current_recruit_subscription_plans=response.data})}$rootScope.pageTitle=$rootScope.settings.SITE_NAME+" | "+$filter("translate")("Subscriptions"),$scope.subscription_plans={},$scope.subscription_loader=!0,$scope.ConstSubscriptionStatuses=ConstSubscriptionStatuses,$scope.ConstPlan=ConstPlan,$scope.plan_selected=!1,0===parseInt($state.params.error_code)?flash.set($filter("translate")("Your subscription successfully completed."),"success",!1):512===parseInt($state.params.error_code)&&flash.set($filter("translate")("Unable to process your request. Please try again later."),"error",!1),$scope.paneTabChangedSubscription=function(value){"rpmDiabetesPlan"===value?($scope.search_field="plan_diabetes",console.log("Pane Tab Changed Diabetes Plan: ",$scope.search_field)):"recruitmentPlan"===value?($scope.search_field="plan_recruitment",console.log("Pane Tab Changed Recruitment Plan: ",$scope.search_field)):"absVSeePlan"===value?($scope.search_field="plan_vsee",console.log("Pane Tab Changed Vsee Plan: ",$scope.search_field)):($scope.search_field="plan_medis",console.log("Pane Tab Changed Examedis Plan: ",$scope.search_field))},$scope.isActive=function(route){return route===$location.path()},getSubscriptionsPlans(),$scope.getSubscribePlan=function(plan_id){console.log("IN getSubscribePlan ID: ",plan_id),$scope.plan_selected=!0,$scope.loader=!0,GetSubscriptionDetail.get({id:plan_id}).$promise.then(function(response){$scope.subscriptions=response.data,$scope.selected_plan=plan_id,$scope.loader=!1})},$scope.rePlan=function(){$scope.plan_selected=!1},$scope.cancelPlan=function(user_subscription_id){SweetAlert.swal({title:$filter("translate")("Are you sure to cancel this subscription?"),text:"",type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:$filter("translate")("Confirm"),cancelButtonText:$filter("translate")("No"),closeOnConfirm:!0,closeOnCancel:!0},function(isConfirm){if(isConfirm){var params={};params.id=user_subscription_id,params.subscription_status_id=ConstSubscriptionStatuses.Canceled,UpdateUserSubscription.put(params).$promise.then(function(response){0===response.error.code?(flash.set($filter("translate")("Subscription canceled successfully."),"success",!0),getCurrentPlan()):flash.set($filter("translate")("Subscription could not be canceled. Please try again."),"success",!0)})}})},$scope.payWithStripe=function(){$scope.paynow_is_disabled=!0;var params={};params.subscription_id=$scope.subscriptions.id,params.subscription_status_id=1,UserSubscriptionFactory.post(params,function(user_subscription_response){$scope.user_subscription=user_subscription_response.data,params={amount:$scope.subscriptions.price,payment_plan:$scope.subscriptions.rave_plan_id,currency:$rootScope.settings.SITE_CURRENCY_CODE,country:"UK",txref:"user_subscription_id-"+$scope.user_subscription.id,name:"subscription",description:"Exadoctor Subscription Payment",quantity:"1",orderId_metadata:"subscription_id-"+$scope.user_subscription.id,customer_email:$rootScope.auth.email,customer_phone:$rootScope.auth.mobile},PaymentStripeSessionSubscriptionCreate.post(params,function(response){var stripeSession=response.data,sessionUrl=(stripeSession.sessionId,stripeSession.sessionUrl);window.location.href=sessionUrl}),$scope.paynow_is_disabled=!1})},$scope.payWithRave=function(){$scope.paynow_is_disabled=!0;var params={};params.subscription_id=$scope.subscriptions.id,params.subscription_status_id=1,UserSubscriptionFactory.post(params,function(user_subscription_response){$scope.user_subscription=user_subscription_response.data;var x=getpaidSetup({PBFPubKey:$scope.public_key,customer_email:$rootScope.auth.email,amount:$scope.subscriptions.price,customer_phone:$rootScope.auth.mobile,currency:$rootScope.settings.SITE_CURRENCY_CODE,country:"GH",txref:"user_subscription_id-"+$scope.user_subscription.id,payment_plan:$scope.subscriptions.rave_plan_id,payment_options:"card,mobilemoneyghana",onclose:function(){$scope.paynow_is_disabled=!1},callback:function(response){response.tx.txRef;"00"==response.tx.chargeResponseCode||"0"==response.tx.chargeResponseCode?$scope.paySuccess(response):$scope.payFailed(response),x.close(),$scope.plan_selected=!1}});$scope.paynow_is_disabled=!1})},$scope.paySuccess=function(payment_response){$scope.rave_data={},$scope.rave_data.user_subscription_id=$scope.user_subscription.id,$scope.rave_data.id=payment_response.tx.id,$scope.rave_data.txRef=payment_response.tx.txRef,$scope.rave_data.flwRef=payment_response.tx.flwRef,$scope.rave_data.response=JSON.stringify(payment_response);var flashMessage;RaveSubscriptionCheckoutFactory.post($scope.rave_data,function(response){$scope.paynow_is_disabled=!1,$scope.auth_user_detail=$cookies.getObject("auth"),$scope.auth_user_detail.is_plan_subscribed=1,$cookies.put("auth",JSON.stringify($scope.auth_user_detail),{path:"/"}),0===response.error.code?(flash.set($filter("translate")("Your subscription has been completed successfully."),"success",!0,8e3),angular.isDefined(response.data.id)&&getCurrentPlan()):512===response.error.code?flash.set($filter("translate")("Payment Failed. Please, try again."),"error",!1):(flashMessage=$filter("translate")("We are unable to place your order. Please try again."),""!==response.error.message&&(flashMessage=flashMessage+" Error: "+response.error.message),flash.set(flashMessage,"error",!1))},function(error){$scope.paynow_is_disabled=!1,flash.set($filter("translate")("We are unable to place your order. Please try again."),"error",!1)})},$scope.payFailed=function(payment_response){$scope.paynow_is_disabled=!1,flash.set($filter("translate")("Payment Failed. Please, try again."),"error",!1)},$scope.paymentGatewayUpdate=function(pane){$scope.payment_tab=pane}}]),angular.module("abs.Common.Subscriptions").directive("subscriptionsPlans",function(){return{restrict:"E",templateUrl:"scripts/plugins/Common/Subscriptions/views/default/subscriptions_plans.html",link:function(){},controller:"",bindToController:!0}}),angular.module("abs").factory("SubscriptionsPlans",["$resource",function($resource){return $resource("/api/v1/subscriptions",{},{get:{method:"GET"}})}]).factory("RPMDiabSubscriptionsPlans",["$resource",function($resource){return $resource("/api/v1/subscriptions/diab",{},{get:{method:"GET"}})}]).factory("RecruitSubscriptionsPlans",["$resource",function($resource){return $resource("/api/v1/subscriptions/recruit",{},{get:{method:"GET"}})}]).factory("GetSubscriptionDetail",["$resource",function($resource){return $resource("/api/v1/subscriptions/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"}})}]).factory("subscribePayNow",["$resource",function($resource){return $resource("/api/v1/subscriptions/payment",{},{create:{method:"POST"}})}]).factory("UserSubscriptionFactory",["$resource",function($resource){return $resource("/api/v1/user_subscriptions",{},{post:{method:"POST"}})}]).factory("Countries",["$resource",function($resource){return $resource("/api/v1/countries",{},{get:{method:"GET"}})}]).factory("MeSubscriptions",["$resource",function($resource){return $resource("/api/v1/me/subscriptions",{},{get:{method:"GET"}})}]).factory("UserSubscriptionsDetail",["$resource",function($resource){return $resource("/api/v1/users/:id/user_subscription_logs",{},{get:{method:"GET"}})}]).factory("UpdateUserSubscriptions",["$resource",function($resource){return $resource("/api/v1/user_subscriptions/:id",{id:"@id"},{update:{method:"PUT"}})}]).factory("CCCardData",["$resource",function($resource){return $resource("/api/v1/users/:id",{id:"@id"},{get:{method:"GET"},put:{method:"PUT"}})}]).factory("UserSubscriptionsPayment",["$resource",function($resource){return $resource("/api/v1/user_subscriptions",{},{create:{method:"POST"}})}]).factory("MyUserSubscription",["$resource",function($resource){return $resource("/api/v1/me/user_subscriptions",{},{get:{method:"GET"}})}]).factory("MyUserRPMDiabSubscription",["$resource",function($resource){return $resource("/api/v1/me/user_subscriptions",{},{get:{method:"GET"}})}]).factory("MyUserRecruitSubscription",["$resource",function($resource){return $resource("/api/v1/me/user_subscriptions",{},{get:{method:"GET"}})}]).factory("UpdateUserSubscription",["$resource",function($resource){return $resource("/api/v1/user_subscriptions/:id/update_status",{id:"@id"},{put:{method:"PUT"}})}]).factory("blipSignup",["$resource",function($resource){return $resource("/api/v1/signupBlip",{},{get:{method:"GET"}})}]).factory("PaymentStripeSessionSubscriptionCreate",["$resource",function($resource){return $resource("api/v1/stripe/subscription/createsession",{},{post:{method:"POST"}})}]),angular.module("abs.Common.Subscriptions").run(["$templateCache",function($templateCache){$templateCache.put("scripts/plugins/Common/Subscriptions/views/default/my_subscription.html",'

    {{\'My Subscriptions\'|translate}}

    '),$templateCache.put("scripts/plugins/Common/Subscriptions/views/default/subscribe_plans.html",'
    '),$templateCache.put("scripts/plugins/Common/Subscriptions/views/default/subscriptions_payment.html",'
    {{\'Confirm Your Subscription Payment\'|translate}}