angular.module("kalgudiApp.profile",['restangular','ngSanitize']) .config(["$stateProvider","$urlRouterProvider","RestangularProvider","themeBasePath", function($stateProvider,$urlRouterProvider,RestangularProvider,themeBasePath) { $stateProvider.state('profile', { url: "/profile", templateUrl: themeBasePath+'myprofile/home.html', controller : "profilesController", data : { action : "myprofile", module : "myprofile", currentmodule : "myprofile" } }) .state('profile.home', { url: '/home', templateUrl: 'app/core/html/empty.html', data:{ action : "emtystate", moduleAction : "emtystate", currentmodule : "myprofile", screenId : "profile-home" } }) .state('profile.viewAwardshome', { url: '/viewawardshome', templateUrl: themeBasePath+'myprofile/templates/view/award_viewhome.html', controller : "awardCertiMemberTacController", data:{ action : "profileAwards", moduleAction : "profileAwards", currentmodule : "profileAwards" } }) .state('profile.viewAwardshome.viewAwards', { url: '/viewawards', templateUrl: themeBasePath+'myprofile/templates/view/award_view.html', data:{ action : "profileAwards", moduleAction : "profileAwards", currentmodule : "profileAwards", screenId : "profile-viewAwards", title:"COMMON_TITLE_AWARDS" } }) .state('profile.viewAwardshome.awardsForm', { url: '/awardsForm', templateUrl: themeBasePath+'myprofile/templates/form/award_form.html', data:{ action : "profileAwards", moduleAction : "profileAwards", currentmodule : "profileAwards", screenId : "profile-awardsForm", title:"COMMON_TITLE_AWARD" } }) .state('profile.viewCertificationshome', { url: '/viewcertificationshome', templateUrl: themeBasePath+'myprofile/templates/view/certification_viewhome.html', controller : "awardCertiMemberTacController", data:{ action : "profileCertification", moduleAction : "profileCertification", currentmodule : "profileCertification" } }) .state('profile.viewCertificationshome.viewCertifications', { url: '/viewcertifications', templateUrl: themeBasePath+'myprofile/templates/view/certification_view.html', data:{ action : "profileCertification", moduleAction : "profileCertification", currentmodule : "profileCertification", screenId : "profile-viewCertifications", title:"COMMON_TITLE_CERTIFICATOINS" } }) .state('profile.viewCertificationshome.certificationsForm', { url: '/certificationsForm', templateUrl: themeBasePath+'myprofile/templates/form/certification_form.html', data:{ action : "profileCertification", moduleAction : "profileCertification", currentmodule : "profileCertification", screenId : "profile-certificationsForm", title:"COMMON_TITLE_CERTIFICATOIN" } }) .state('profile.locationChangehome', { url: '/locationChangehome', templateUrl: themeBasePath+'myprofile/templates/view/locationChangehome.html', controller : "businessInfoController", data:{ action : "locationChange", moduleAction : "locationChange", currentmodule : "locationChange" } }) .state('profile.paymentgateway', { url: '/paymentgateway', templateUrl: themeBasePath+'myprofile/templates/view/locationChangehome.html', controller : "paymentgatewayController", data:{ action : "paymentgateway", moduleAction : "paymentgateway", currentmodule : "paymentgateway", title:"COMMON_TITLE_PAYMENT_GATEWAY" } }) .state('profile.paymentgateway.view', { url: '/view', templateUrl: themeBasePath+'myprofile/templates/view/paymentgateway.html', //controller : "paymentgatewayController", data:{ action : "paymentgateway", moduleAction : "paymentgateway", currentmodule : "paymentgateway", title:"COMMON_TITLE_PAYMENT_GATEWAY" } }) .state('profile.paymentgateway.add', { url: '/add', templateUrl: themeBasePath+'myprofile/templates/form/paymentgateway.html', //controller : "paymentgatewayController", data:{ action : "paymentgatewayadd", moduleAction : "paymentgatewayadd", currentmodule : "paymentgatewayadd" } }) .state('profile.experience', { url: '/experience', templateUrl: themeBasePath+'myprofile/templates/view/locationChangehome.html', controller : "paymentgatewayController", data:{ action : "paymentgateway", moduleAction : "paymentgateway", currentmodule : "paymentgateway", title:"COMMON_TITLE_EXPERIENCE" } }) .state('profile.experience.view', { url: '/view', templateUrl: themeBasePath+'myprofile/templates/view/experience.html', //controller : "paymentgatewayController", data:{ action : "experience", moduleAction : "experience", currentmodule : "experience", //title:"experience" } }) .state('profile.experience.add', { url: '/add', templateUrl: themeBasePath+'myprofile/templates/form/experience.html', //controller : "paymentgatewayController", data:{ action : "experienceadd", moduleAction : "experienceadd", currentmodule : "experienceadd" } }) .state('profile.locationChangehome.locationChange', { url: '/locationChange', templateUrl: themeBasePath+'myprofile/templates/view/locationChange.html', data:{ action : "locationChange", moduleAction : "locationChange", currentmodule : "locationChange", screenId : "profile-locationChange", title:"COMMON_TITLE_LOCATION" } }) .state('profile.viewMembershipshome', { url: '/viewmembershipshome', templateUrl: themeBasePath+'myprofile/templates/view/membership_viewhome.html', controller : "awardCertiMemberTacController", data:{ action : "profileMembership", moduleAction : "profileMembership", currentmodule : "profileMembership" } }) .state('profile.viewMembershipshome.viewMemberships', { url: '/viewmemberships', templateUrl: themeBasePath+'myprofile/templates/view/membership_view.html', data:{ action : "profileMembership", moduleAction : "profileMembership", currentmodule : "profileMembership", screenId : "profile-viewMembership", title:"COMMON_TITLE_MEMBERSHIPS" } }) .state('profile.viewMembershipshome.editCompanyInfo', { url: '/editCompanyInfo', templateUrl: themeBasePath+'myprofile/templates/form/companyInfo_form.html', controller : "myCompanyController", data:{ action : "profileMembership", moduleAction : "profileMembership", currentmodule : "profileMembership", screenId : "profile-membershipForm", title:"PROFILE_COMPANY" } }) .state('profile.viewMembershipshome.membershipsForm', { url: '/membershipForm', templateUrl: themeBasePath+'myprofile/templates/form/membership_form.html', data:{ action : "profileMembership", moduleAction : "profileMembership", currentmodule : "profileMembership", screenId : "profile-membershipForm", title:"COMMON_TITLE_MEMBERSHIP" } }) .state('profile.viewEducationhome', { url: '/viewEducationhome', templateUrl: themeBasePath+'myprofile/templates/view/education_viewhome.html', controller : "personalInfoController", data:{ action : "profileEducation", moduleAction : "profileEducation", currentmodule : "profileEducation" } }) .state('profile.viewEducationhome.viewEducation', { url: '/viewEducation', templateUrl: themeBasePath+'myprofile/templates/view/education_view.html', data:{ action : "profileEducation", moduleAction : "profileEducation", currentmodule : "profileEducation", screenId : "profile-viewEducationDetails", title:"COMMON_TITLE_EDUCATION" } }) .state('profile.viewEducationhome.educationForm', { url: '/educationForm', templateUrl: themeBasePath+'myprofile/templates/form/education_form.html', data:{ action : "profileEducation", moduleAction : "profileEducation", currentmodule : "profileEducation", screenId : "profile-educationDetailsForm", title:"COMMON_TITLE_EDUCATION" } }) .state('profile.viewFamilyhome', { url: '/viewFamilyhome', templateUrl: themeBasePath+'myprofile/templates/view/family_viewhome.html', controller : "personalInfoController", data:{ action : "profileFamily", moduleAction : "profileFamily", currentmodule : "profileFamily" } }) .state('profile.viewFamilyhome.viewFamily', { url: '/viewFamily', templateUrl: themeBasePath+'myprofile/templates/view/family_view.html', data:{ action : "profileFamily", moduleAction : "profileFamily", currentmodule : "profileFamily", screenId : "profile-viewFamilyDetails" } }) .state('profile.viewFamilyhome.familyForm', { url: '/familyForm', templateUrl: themeBasePath+'myprofile/templates/form/family_form.html', data:{ action : "profileFamily", moduleAction : "profileFamily", currentmodule : "profileFamily", screenId : "profile-familyDetailsForm" } }) .state('profile.viewPersonalAwardshome', { url: '/viewpersonalawardshome', templateUrl: themeBasePath+'myprofile/templates/view/personalaward_viewhome.html', controller : "personalInfoController", data:{ action : "profileAwards", moduleAction : "profileAwards", currentmodule : "profileAwards" } }) .state('profile.viewPersonalAwardshome.viewPersonalAwards', { url: '/viewpersonalawards', templateUrl: themeBasePath+'myprofile/templates/view/personalaward_view.html', controller : "awardCertiMemberTacController", data:{ action : "profileAwards", moduleAction : "profileAwards", currentmodule : "profileAwards", screenId : "profile-viewPersonalAwards", title:"COMMON_TITLE_AWARDS" } }) .state('profile.viewPersonalAwardshome.personalawardsForm', { url: '/personalawardsForm', templateUrl: themeBasePath+'myprofile/templates/form/personalaward_form.html', controller : "awardCertiMemberTacController", data:{ action : "profileAwards", moduleAction : "profileAwards", currentmodule : "profileAwards", screenId : "profile-personalAwardsForm", title:"COMMON_TITLE_AWARD" } }) .state('profile.viewtaxeshome', { url: '/viewtaxeshome', templateUrl: themeBasePath+'myprofile/templates/view/tax_viewhome.html', controller : "awardCertiMemberTacController", data:{ action : "profiletaxes", moduleAction : "profiletaxes", currentmodule : "profiletaxes" } }) .state('profile.viewtaxeshome.viewtaxes', { url: '/viewtaxes', templateUrl: themeBasePath+'myprofile/templates/view/tax_view.html', data:{ action : "profiletaxes", moduleAction : "profiletaxes", currentmodule : "profiletaxes", screenId : "profile-viewTaxes", title:"COMMON_TITLE_TAXES" } }) .state('profile.viewtaxeshome.taxesForm', { url: '/taxesForm', templateUrl: themeBasePath+'myprofile/templates/form/tax_form.html', data:{ action : "profiletaxes", moduleAction : "profiletaxes", currentmodule : "profiletaxes", screenId : "profile-taxesform", title:"COMMON_TITLE_TAXES" } }) .state('profile.landDetails', { url: '/landDetails', templateUrl: themeBasePath+'myprofile/templates/view/tax_viewhome.html', controller : "landGodownVehicleController", data:{ action : "landDetails", moduleAction : "landDetails", currentmodule : "landDetails", title:"COMMON_ASSETS" } }).state('profile.landDetails.view', { url: '/view', templateUrl: themeBasePath+'myprofile/templates/view/landDetails.html', data:{ action : "landDetailsview", moduleAction : "landDetailsview", currentmodule : "landDetailsview" } }) .state('profile.assets', { url: '/assets', templateUrl: themeBasePath+'myprofile/templates/view/assetsList.html', controller : "landGodownVehicleController", data:{ action : "landDetailsview", moduleAction : "landDetailsview", currentmodule : "landDetailsview", title:"COMMON_ASSETS" } }) .state('profile.liveStock', { url: '/addliveStock', templateUrl: themeBasePath+'myprofile/templates/view/addliveStock.html', controller : "myAssetsController", data:{ action : "landDetailsview", moduleAction : "landDetailsview", currentmodule : "landDetailsview", title:"LIVE_STOCK" } }) .state('profile.landDetails.add', { url: '/add', templateUrl: themeBasePath+'myprofile/templates/form/landDetails.html', data:{ action : "landDetailsadd", moduleAction : "landDetailsadd", currentmodule : "landDetailsadd" } }) .state('profile.landDetails.selectTypeOfGeolocation', { url: '/selectTypeOfGeolocation', templateUrl: themeBasePath+'myprofile/templates/view/selectTypeOfGeolocation.html', data:{ action : "selectTypeOfGeolocation", moduleAction : "selectTypeOfGeolocation", currentmodule : "selectTypeOfGeolocation" } }) //member managemnet .state('profile.viewmemberhome', { url: '/viewmemberhome', templateUrl: themeBasePath+'myprofile/templates/view/viewmemberhome.html', controller : "businessInfoController", data:{ action : "membermanagement", moduleAction : "membermanagement", currentmodule : "membermanagement" } }) .state('profile.viewmemberhome.viewMember', { url: '/viewMember', templateUrl: themeBasePath+'myprofile/templates/view/viewMember.html', data:{ action : "profilemember", moduleAction : "membermanagement", currentmodule : "membermanagement", screenId : "profile-membermanagement" } }) .state('profile.viewmemberhome.addMemberForm', { url: '/addMemberForm', templateUrl: themeBasePath+'myprofile/templates/form/addMember_form.html', data:{ action : "profilemember", moduleAction : "membermanagement", currentmodule : "membermanagement", screenId : "profile-membermanagementForm" } }) //end of member management //agent managemnet .state('profile.viewagenthome', { url: '/viewagenthome', templateUrl: themeBasePath+'myprofile/templates/view/viewagenthome.html', controller : "businessInfoController", data:{ action : "agentmanagement", moduleAction : "agentmanagement", currentmodule : "agentmanagement" } }) .state('profile.viewagenthome.viewAgent', { url: '/viewAgent', templateUrl: themeBasePath+'myprofile/templates/view/viewAgent.html', data:{ action : "profilemember", moduleAction : "agentmanagement", currentmodule : "agentmanagement", screenId : "profile-agentmanagement" } }) .state('profile.viewagenthome.addAgentForm', { url: '/addAgentForm', templateUrl: themeBasePath+'myprofile/templates/form/addAgent_Form.html', data:{ action : "profilemember", moduleAction : "agentmanagement", currentmodule : "agentmanagement", screenId : "profile-magentmanagementForm" } }) //end of agent management .state('profile.viewadditionalBizHome', { url: '/viewAdditionalBizHome', templateUrl: themeBasePath+'myprofile/templates/view/establishment_viewhome.html', controller : "businessInfoController", data:{ action : "profileBizInfo", moduleAction : "profileBizInfo", currentmodule : "profileBizInfo" } }) .state('profile.viewadditionalBizHome.viewadditionalBizInfo', { url: '/viewAdditionalBizInfo', templateUrl: themeBasePath+'myprofile/templates/view/establishment_view.html', data:{ action : "profileBizInfo", moduleAction : "profileBizInfo", currentmodule : "profileBizInfo", screenId : "profile-viewAdditionalBizInfo", title:"COMMON_TITLE_ABOUT" } }) .state('profile.viewadditionalBizHome.additionalBizInfoForm', { url: '/additionalBizInfoForm', templateUrl: themeBasePath+'myprofile/templates/form/establishment_form.html', data:{ action : "profileBizInfo", moduleAction : "profileBizInfo", currentmodule : "profileBizInfo", screenId : "profile-additionalBizInfoForm", title:"COMMON_TITLE_ABOUT" } }) .state('profile.viewPersonalDetailshome', { url: '/viewPersonalDetailshome', templateUrl: themeBasePath+'myprofile/templates/view/personalDetails_viewhome.html', controller : "personalInfoController", data:{ action : "profilePersonalDetails", moduleAction : "profilePersonalDetails", currentmodule : "profilePersonalDetails" } }) .state('profile.viewPersonalDetailshome.viewPersonalDetails', { url: '/viewPersonalDetails', templateUrl: themeBasePath+'myprofile/templates/view/personalDetails_view.html', data:{ action : "profilePersonalDetails", moduleAction : "profilePersonalDetails", currentmodule : "profilePersonalDetails", screenId : "profile-viewPersonalDetails" } }) .state('profile.viewPersonalDetailshome.personalDetailsForm', { url: '/personalDetailsForm', templateUrl: themeBasePath+'myprofile/templates/form/personalDetails_form.html', data:{ action : "profilePersonalDetails", moduleAction : "profilePersonalDetails", currentmodule : "profilePersonalDetails", screenId : "personalDetailsForm" } }) .state('profile.viewProductshome', { url: '/viewProductshome', templateUrl: themeBasePath+'myprofile/templates/view/product_viewhome.html', controller : "mybrandsController", data:{ action : "products", moduleAction : "products", currentmodule : "products" } }) .state('profile.viewProductshome.viewProducts', { url: '/viewproducts', templateUrl: themeBasePath+'myprofile/templates/view/product_view.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-viewLogInUserProducts", title:"COMMON_TITLE_PRODUCTS" } }) .state('profile.CreatebrandsAddtoStock', { url: '/addProductToStock/:productId', templateUrl: themeBasePath+'myprofile/templates/form/addProductToStock.html', controller:'mybrandsmodalController', data:{ action : "addProductToStock", moduleAction : "addProductToStock", currentmodule : "addProductToStock", screenId : "profile-viewLogInUserProducts", title:"COMMON_TITLE_PRODUCTS" } }) .state('profile.viewProductshome.viewVehicle', { url: '/viewVehicle', templateUrl: themeBasePath+'myprofile/templates/view/vehicles_view.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-viewLogInUserProducts" } }) .state('profile.viewProductshome.viewWarehouse', { url: '/viewWarehouse', templateUrl: themeBasePath+'myprofile/templates/view/warehouse_view.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-viewLogInUserProducts" } }) .state('profile.viewProductshome.productsForm', { url: '/productsform', templateUrl: themeBasePath+'myprofile/templates/form/product_form.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-addMoreProductsForm", title:"COMMON_TITLE_PRODUCT_GROUPS" } }) .state('profile.viewProductshome.selectProductForm', { url: '/selectProductForm', templateUrl: themeBasePath+'myprofile/templates/form/product_select_form.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-addMoreProductsSelectForm", title:"COMMON_TITLE_PRODUCTS" } }) .state('profile.viewProductshome.vehicleForm', { url: '/vehicleForm', templateUrl: themeBasePath+'myprofile/templates/form/vehicle_form.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-addMoreProductsForm" } }) .state('profile.viewProductshome.warehouseForm', { url: '/warehouseForm', templateUrl: themeBasePath+'myprofile/templates/form/warehouse_form.html', data:{ action : "products", moduleAction : "products", currentmodule : "products", screenId : "profile-addMoreProductsForm" } }) //vehicle routing .state('profile.viewvehiclehome', { url: '/viewvehiclehome', templateUrl: themeBasePath+'myprofile/templates/view/vehicle_home.html', controller : "landGodownVehicleController", data:{ action : "profilevehicle", moduleAction : "profilevehicle", currentmodule : "profilevehicle" } }) .state('profile.viewvehiclehome.viewvehicle', { url: '/viewvehicle', templateUrl: themeBasePath+'myprofile/templates/view/vehicle_view.html', data:{ action : "profilevehicle", moduleAction : "profilevehicle", currentmodule : "profilevehicle", screenId : "profile-viewVehicle" } }) .state('profile.viewvehiclehome.vehicleForm', { url: '/vehicleForm', templateUrl: themeBasePath+'myprofile/templates/form/addvehicle_form.html', data:{ action : "profilevehicle", moduleAction : "profilevehicle", currentmodule : "profilevehicle", screenId : "profile-Vehicleform" } }) //warehouse .state('profile.viewgodownhome', { url: '/viewgodownhome', templateUrl: themeBasePath+'myprofile/templates/view/godownDetails_home.html', controller : "landGodownVehicleController", data:{ action : "profilegodown", moduleAction : "profilegodown", currentmodule : "profilegodown" } }) .state('profile.viewgodownhome.viewGodownDetails', { url: '/viewGodownDetails', templateUrl: themeBasePath+'myprofile/templates/view/godownDetails_view.html', data:{ action : "profilegodown", moduleAction : "profilegodown", currentmodule : "profilegodown", screenId : "profile-profilegodown" } }) .state('profile.viewgodownhome.godownDetailsForm', { url: '/godownDetailsForm', templateUrl: themeBasePath+'myprofile/templates/form/godownDetails_form.html', data:{ action : "profilegodown", moduleAction : "profilegodown", currentmodule : "profilegodown", screenId : "profile-profilegodown" } }) //trms & conditions .state('profile.viewTermsAndConditionsHome', { url: '/viewTermsAndConditionsHome', templateUrl: themeBasePath+'myprofile/templates/view/termsAndConditions_home.html', controller : "businessInfoController", data:{ action : "profileTermsAndConditions", moduleAction : "profileTermsAndConditions", currentmodule : "profileTermsAndConditions" } }) .state('profile.viewTermsAndConditionsHome.viewTermsAndConditions', { url: '/viewTermsAndConditions', templateUrl: themeBasePath+'myprofile/templates/view/TermsAndConditions_view.html', data:{ action : "profileTermsAndConditions", moduleAction : "profileTermsAndConditions", currentmodule : "profileTermsAndConditions", screenId : "profile-profileTermsAndConditions" } }) .state('profile.viewTermsAndConditionsHome.TermsAndConditionsForm', { url: '/TermsAndConditionsForm', templateUrl: themeBasePath+'myprofile/templates/form/TermsAndConditions_form.html', data:{ action : "profileTermsAndConditions", moduleAction : "profileTermsAndConditions", currentmodule : "profileTermsAndConditions", screenId : "profile-profileTermsAndConditions" } }) .state('profile.intrestedlocation', { url: '/intrestedlocation', templateUrl: themeBasePath+'myprofile/templates/intrestedloaction.html', data:{ action : "intrestedlocation", moduleAction : "intrestedlocation", currentmodule : "myprofile" } }) .state('profile.manageCatalogue', { url: '/manageCatalogue', templateUrl: themeBasePath + 'myprofile/templates/catalogue/manage-catalogue.html', data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile', title: 'MANAGE_CATALOG' } }) .state('profile.catalogueSection', { url: '/catalogueSection', templateUrl: themeBasePath + 'myprofile/templates/catalogue/catalogue-form.html', /* controller: 'catalogueController', */ data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile' } }) .state('profile.catalogueBasicDetails', { url: '/basicDetails', templateUrl: themeBasePath + 'myprofile/templates/catalogue/catalogue-base-product-form.html', controller: 'catalogueBaseProductController', data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile' } }) .state('profile.catalogueSku', { url: '/sku', templateUrl: themeBasePath + 'myprofile/templates/catalogue/catalogue-sku-form.html', controller: 'catalogueSkuController', data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile' } }) .state('profile.catalogueProductDetails', { url: '/productDetails', templateUrl: themeBasePath + 'myprofile/templates/catalogue/catalogue-product-details-form.html', controller: 'catalogueController', data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile' } }) .state('profile.catalogueSellerInfo', { url: '/sellerInfo', templateUrl: themeBasePath + 'myprofile/templates/catalogue/catalogue-seller-info-form.html', controller: 'catalogueController', data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile' } }) .state('profile.catalogueCertificate', { url: '/certificate', templateUrl: themeBasePath + 'myprofile/templates/catalogue/catalogue-certification-form.html', controller: 'catalogueController', data: { action : 'catalogue-creation', moduleAction : 'catalogue-creation', currentmodule : 'profile' } }) } ]);