<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
|	$route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples:	my-controller/index	-> my_controller/index
|		my-controller/my-method	-> my_controller/my_method
*/
$route['default_controller'] = 'mirauniversaluser/userLoginView';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

//***************************************************************//
//***************Tika Toy Service Section Route******************//
$route['pregnantList'] = 'tikatoy/getPregnantWomenList';
$route['childList'] = 'tikatoy/getChildImmunizationList';
$route['userAuthenticate'] = 'tikatoy/userAuthenticationKey';

//*********************//
//* This route are define*//
//* for user login and   *//
//* logout               *//
//************************//
//$route['authentication'] = 'UserSignUp/userLogin';
$route['authentication'] = 'mirauniversaluser/universalLogin';
$route['logout'] = 'mirauniversaluser/universalLogout';
$route['login'] = 'mirauniversaluser/userLoginView';
$route['success'] = 'mirauniversaluser/loginSuccess';
$route['profile'] = 'mirauniversaluser/getUserProfile';
$route['profile_pic_submit'] = 'mirauniversaluser/updateUserProfilePicture';
$route['password'] = 'mirauniversaluser/updatePasswordForm';
$route['updatePassword'] = 'mirauniversaluser/updatePasswordSubmit';



/* This area code used for area add*/
$route['country'] = 'areaadd/addCountryView';
$route['state'] = 'areaadd/addStateView';
$route['district'] = 'areaadd/addDistrictView';

$route['addCountry'] = 'areaadd/addCountry';
$route['addState'] = 'areaadd/addState';
$route['addDistrict'] = 'areaadd/addDistrict';
$route['getState'] = 'areaadd/getState';
$route['getDistrict'] = 'areaadd/getDistrict';
// user registration and validation


$route['checkId'] = 'adminuser/checkUserId';
$route['registration'] = 'adminuser/adminUserRegistration';
$route['adminList'] = 'adminuser/adminUserListView';
$route['getAdmin'] = 'adminuser/getAdminUserView';
$route['update'] = 'adminuser/updateAdmin';
$route['deleteAdmin'] = 'adminuser/deleteAdmin';
$route['mapping_app_admin'] = 'adminuser/mappingApplicationAdmin';
$route['assign_app_admin'] = 'adminuser/assignApplicationAdmin';



// create application
$route['create_app'] = 'miraapplication/createApplication';
$route['applicationView'] = 'miraapplication/applicationView';
$route['deleteApp'] = 'miraapplication/applicationDelete';
$route['mapped_app_list'] = 'miraapplication/getMappedAppAdminList';
$route['current_status_app'] = 'miraapplication/getCurrentAppSatatus';
$route['update_current_status'] = 'miraapplication/updateCurrentStatusApp';
$route['get_app_right'] = 'miraapplication/getActivatedApplicationRight';
$route['get_app_right_update'] = 'miraapplication/getAppAndAppRight';
$route['update_app_right'] = 'miraapplication/updateApplicationRight';
$route['create_app_form'] = 'miraapplication/createApplicationForm';
$route['assignPlannerView'] = 'miraapplication/assignVaccinePlannerForm';
$route['assign_vaccine_planner_submit'] = 'miraapplication/assignVaccinePlannerFormSubmit';


// create user,area and mapping->user to area.


$route['admin_create_user_form'] = 'mirauserregionmapping/newUserCreateForm';
$route['new_user_form'] = 'mirauserregionmapping/newUserCreateForm';
$route['new_region_form'] = 'mirauserregionmapping/newRegionCreateForm';
$route['get_region'] = 'mirauserregionmapping/getRegionLevel';
$route['get_area_by'] = 'mirauserregionmapping/getAreaBySuperArea';
$route['create_new_region'] ='mirauserregionmapping/createNewRegion';
$route['update_delete'] ='mirauserregionmapping/regionUpdateEditDeleteView';
$route['get_region_detail'] ='mirauserregionmapping/getRegionUpdateEditDelete';
$route['update_region'] ='mirauserregionmapping/updateRegion';
$route['user_list'] ='mirauserregionmapping/getUserList';
$route['delete_user'] ='mirauserregionmapping/deleteUser';
$route['update_user'] ='mirauserregionmapping/updateUser';
$route['mapping_region_user'] ='mirauserregionmapping/mappingRegionToUser';
$route['get_user_region'] ='mirauserregionmapping/getUserRegionUnmapped';
$route['mapped_region_user'] ='mirauserregionmapping/mappingRegionUserSubmit';
$route['mapped_user_list'] ='mirauserregionmapping/getMappedUserListView';
$route['mapped_list'] ='mirauserregionmapping/getMappedUserList';
$route['activation_user'] ='mirauserregionmapping/getMappedUserListActivation';
$route['update_login'] ='mirauserregionmapping/updateLoginStatus';
$route['update_user_right'] ='mirauserregionmapping/getForUpdateUserRight';
$route['right_update_submit'] ='mirauserregionmapping/submitUpdateUserRight';
$route['get_user_detail'] ='mirauserregionmapping/getUserDetailRight';
$route['get_user_right'] ='mirauserregionmapping/getUserRightRegionCode';

$route['mapped_region_list'] ='mirauserregionmapping/getMappedRegionList';
$route['unmapped_region_user'] ='mirauserregionmapping/updateUnmappedRegionUser';
/*********************************Worker Track Sheet*************************/
$route['asha_worker'] ='workertrackersheet/getChildListByRegionID';


$route['asha_wise_data'] ='ashaworker/getChildListByRegionID';
$route['mira-work-detail-current/:num/:num'] ='workertrackersheet/getMiraWorkDetailCurrent';
$route['mira-work-detail-result/:num/:num'] ='workertrackersheet/getMiraWorkDetailResult';
$route['mira-work-detail-tracker/:num/:num'] ='workertrackersheet/getMiraWorkDetailTracker';

$route['anm_worker'] ='workertrackersheet/getANMWorkerTrackSheet';
$route['anm-work-detail-hrp/:num/:num'] ='workertrackersheet/getAnmWorkSheetHRP';
$route['anm-work-detail-anc/:num/:num'] ='workertrackersheet/getAnmWorkSheetANC';

/****************************************************************************/



/***************************************************************/
$route['house_form'] ='registrationhousewomenchild/houseRegistrationForm';
$route['house_submit'] ='registrationhousewomenchild/houseRegistrationSubmit';

$route['house_list_view/(:any)'] ='registrationhousewomenchild/getHouseListByRegionID/$1';

$route['house_list_view_jquery'] ='registrationhousewomenchild/getHouseListByRegionIDJquery';
$route['getHouseListByRegionIDJqueryV2'] ='registrationhousewomenchild/getHouseListByRegionIDJqueryVersion2';
$route['house-delete'] ='registrationhousewomenchild/updateHouseRow';





$route['women_form'] ='registrationhousewomenchild/womenRegistrationForm';
$route['women_submit'] ='registrationhousewomenchild/womenRegistrationSubmit';
$route['women_list_view/(:any)'] ='registrationhousewomenchild/getWomenListByRegionID';
$route['women_list_view_jquery'] ='registrationhousewomenchild/getWomenListByRegionIDJquery';  
$route['women_list_view_jqueryV2'] ='registrationhousewomenchild/getWomenListByRegionIDJqueryV2';
$route['women-delete'] ='registrationhousewomenchild/updateWomenRow';


$route['pregnant_form'] ='registrationhousewomenchild/pregnantRegistrationForm';
$route['pregnant_submit'] ='registrationhousewomenchild/pregnantRegistrationSubmit';
$route['get_women'] ='registrationhousewomenchild/getWomenForPregnantRegistration';
$route['pregnant_list_view/(:any)'] ='registrationhousewomenchild/getPregnantListByRegionID';
$route['child_vaccination'] ='registrationhousewomenchild/childImmunization';

$route['running-list/(:any)'] ='registrationhousewomenchild/getPregnantRunningListByRegionID';
$route['pregnant_list_view_jquery'] ='registrationhousewomenchild/getPregnantListByRegionIDJquery';
$route['get_child_vaccination'] ='registrationhousewomenchild/getChildVaccination';
$route['pregnant_Running_list_view_jquery'] ='registrationhousewomenchild/getPregnantRunningListByRegionIDJquery';
$route['pregnant_list_update'] ='registrationhousewomenchild/updatePregnanByPregnantId';






$route['child_form'] ='registrationhousewomenchild/childRegistrationForm';
$route['child_submit'] ='registrationhousewomenchild/childRegistrationSubmit';
$route['get_women'] ='registrationhousewomenchild/getWomenForChildRegistration';
$route['child_list_view/(:any)'] ='registrationhousewomenchild/getChildListByRegionID';
$route['child_list_view_jquery'] ='registrationhousewomenchild/getChildListByRegionIDJquery';
$route['child_list_view_jqueryV2'] ='registrationhousewomenchild/getChildListByRegionIDJqueryV2';
$route['child-delete'] ='registrationhousewomenchild/childUpdateRow';

/************************************************************************/

$route['immunization_pregnant/:num'] ='immuizationwomenchild/pregnantWomenImmunization';
$route['immunization_pregnant_asha'] ='immuizationwomenchild/pregnantWomenImmunizationAsha';
$route['immunization_pregnant_anm/:num'] ='immuizationwomenchild/pregnantWomenImmunizationAnm';


//$route['immunization_pregnant_anm/:num']='immuizationwomenchild/pregnantWomenImmunizationAnmPage';



$route['get_current_week'] ='immuizationwomenchild/getCurrentWeekPregnancy';
$route['pregnant_immunization'] ='immuizationwomenchild/pregnantImmunizationSubmit';
$route['pregnant_report'] ='immuizationwomenchild/pregnantImmunizationReport';
$route['current_report/:num'] ='immuizationwomenchild/pregnantImmunizationReportCurrent';

$route['pregnant_immunization_get'] ='immuizationwomenchild/getPregnantWomenImmunization';


$route['pregnancy_close'] ='immuizationwomenchild/pregnancyUpdateDeliveryStatus';
$route['update_delivery_status'] ='immuizationwomenchild/updateDeliveryStatus';








$route['immunization_child/:num'] ='immuizationwomenchild/getChildImmunization';












$route['child_report/:num'] ='immuizationwomenchild/childImmunizationReport';
$route['update_vaccine'] ='immuizationwomenchild/updateChildVaccine';
$route['refer_by_anm'] ='immuizationwomenchild/updatePregnancyWeekByAnm';
$route['vaccine_rule'] ='immuizationwomenchild/getVaccineStartEndDate';
$route['update-missed-dose'] ='immuizationwomenchild/updateMissedVaccine';




/******************** This block work for android service**********************/

$route['android/screenUpdate'] ='miraserviceasha/miraWorkerTrackSheetUpdate';

$route['android/userLogin'] ='miraserviceasha/ashaUserAuthontication';
$route['android/userLoginTest'] ='miraserviceasha/ashaUserAuthontication1';//Testing purpose only.
$route['android/volunterLogin'] ='miraserviceasha/volunterLogin';

$route['android/houseRegistration'] ='miraserviceasha/ashaHouseRegistration';
$route['android/womenRegistration'] ='miraserviceasha/ashaWomenRegistration';
$route['show'] ='miraserviceasha/show';//This service used only testing.
$route['android/newChildRegistration'] ='miraserviceasha/ashaChildRegistration';
$route['android/childUpdate'] ='miraserviceasha/ashaChildUpdate';

$route['android/updateWomenPregnant'] ='miraserviceasha/ashaPregnantRegistration';
$route['android/updatePregnantStatus'] ='miraserviceasha/ashaUpdateWomenPregnancy';
$route['android/immunization'] ='miraserviceasha/ashaChildImmunization';
$route['android/updateAshaQusAns'] ='miraserviceasha/ashaUpdateAshaQusAns';
$route['android/anmanswer'] ='miraserviceasha/refreshAshaQusAnsList';
$route['android/regionArea']  ='miraserviceasha/regionArea';
$route['android/userRegister'] = 'miraserviceasha/saveUserData';
$route['android/totalsummary'] ='miraserviceasha/TotalSummary';
$route['android/modulePlayed'] ='miraserviceasha/userModulePlayTracking';

//new work
$route['android/self_group_register'] = 'miraserviceasha/addSelfandGroupRegisteration'; 
$route['android/mira_modules__data'] = 'miraserviceasha/addModuleTrackingData'; 
$route['android/imageupload'] = 'miraserviceasha/uploadImgageFile';
$route['android/story_sessions'] = 'miraserviceasha/saveStorySessionData';

$route['android/child_followup'] = 'miraserviceasha/childFollowupVisits'; 
////




//***************This route block used only for testing***************//
/******************** This block work for android service**********************/

$route['android1/screenUpdate'] ='miraserviceasha1/miraWorkerTrackSheetUpdate';

$route['android1/userLogin'] ='miraserviceasha1/ashaUserAuthontication';
$route['android1/userLoginTest'] ='miraserviceasha1/ashaUserAuthontication1';//This route used only for testing phase.


$route['android1/houseRegistration'] ='miraserviceasha1/ashaHouseRegistration';
$route['android1/womenRegistration'] ='miraserviceasha1/ashaWomenRegistration';
$route['android1/womenRegistration1'] ='miraserviceasha1/ashaWomenRegistration1';//This service used only testing.
$route['show1'] ='miraserviceasha/show';//This service used only testing.
$route['android1/newChildRegistration'] ='miraserviceasha1/ashaChildRegistration';

$route['android1/updateWomenPregnant'] ='miraserviceasha1/ashaPregnantRegistration';
$route['android1/updatePregnantStatus'] ='miraserviceasha1/ashaUpdateWomenPregnancy';
$route['android1/immunization'] ='miraserviceasha1/ashaChildImmunization';
$route['android1/updateAshaQusAns'] ='miraserviceasha1/ashaUpdateAshaQusAns';
$route['android1/anmanswer'] ='miraserviceasha1/refreshAshaQusAnsList';
//***************End Testing route block******************************//




$route['anm/Android/miralogin'] ='miraserviceanm/anmUserAuthontication';//Done
$route['anm/Android/getpregnantwomenimmunization'] ='miraserviceanm/anmGetPregnantImmunzationByAshaId';//Done

$route['anm/Android/updateancstatus'] ='miraserviceanm/anmUpdateAncStatus';
$route['anm/Android/getalldatabyashaid'] ='miraserviceanm/anmGetAllDataByAshaId';

$route['anm/Android/getwomenhistory'] ='miraserviceanm/anmGetWomenHistory';
$route['anm/Android/updateanmanswer'] ='miraserviceanm/anmUpdateWeekwiseQusAns';



//********************************************************************************//

$route['upload'] ='file_upload/uploadFileInChunkIOT';
$route['upload1'] ='file_upload/uploadFileInChunkIOT1';

$route['chunk_array'] ='file_upload/uploadFileMultipleChunkIOT';
$route['ArduinoGSMTest'] ='file_upload/arduinoGSMTest';
$route['test/(:any)'] ='pagination_test/test';
$route['login1'] ='file_upload/login';
//$route['product/:num'] = 'catalog/product_lookup';
//***************************************************//
// Restore delete data //

$route['get-restore-house-list/(:any)'] ='restore/getRestoreHouseList';
$route['update-restore-house'] ='restore/updateRestoreHouse';

$route['get-restore-women-list/(:any)'] ='restore/getRestoreWomenList';
$route['update-restore-women'] ='restore/updateRestoreWomen';

$route['get-restore-child-list/(:any)'] ='restore/getRestoreChildList';
$route['update-restore-child'] ='restore/updateRestoreChild';

// Update ANC Of missed pregnant women //
$route['anc_update'] ='restore/updateAncJquery';

//Rahim Code


$route['women_list_view/(:any)'] ='registrationhousewomenchild/getWomenListByRegionID';


///End Rahim Code

$route['getAshalistByANMId']='registrationhousewomenchild/getAshalistByANMId';
$route['getAshaHouseHoldDataByANMId']='registrationhousewomenchild/getAshaHouseHoldDataByANMId';


$route['actualdate_house'] ='datasheet/show_house_table_task';
$route['actualdate_women'] ='datasheet/show_women_table_task';
$route['actualdate_child'] ='datasheet/show_child_table_task';

// new changes
$route['vaccination_data'] ='GraphController/vaccinationDataPage';
$route['get_vaccination_data']='GraphController/getVaccinationDataOfChildren';
$route['getDoseCompletionData'] ='GraphController/getDoseCompletionData';
$route['get_women_pregnancy_info']='GraphController/get_women_pregnancy_info';
$route['getAshaDeatilByANMId']='registrationhousewomenchild/getAshaDeatilByANMId';

//$route['actualdate_update'] ='datasheet/show_table_task';



$route['save-followup']='followup_controller/save_followup';
$route['followup-list']='followup_controller/weekly_followups';



























