INSERT INTO `_log__query` VALUES (44449,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00091004371643066','192.168.1.254','2019-06-15 04:55:44'),(44450,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00038886070251465','192.168.1.254','2019-06-15 04:55:44'),(44451,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.020179033279419','192.168.1.254','2019-06-15 04:56:15'),(44452,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00036811828613281','192.168.1.254','2019-06-15 04:56:15'),(44453,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.001317024230957','192.168.1.254','2019-06-15 04:56:16'),(44454,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019490003585815','192.168.1.254','2019-06-15 04:56:16'),(44455,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00037002563476562','192.168.1.254','2019-06-15 04:56:16'),(44456,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013160705566406','192.168.1.254','2019-06-15 04:56:16'),(44457,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.020988941192627','192.168.1.254','2019-06-15 04:56:16'),(44458,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00041985511779785','192.168.1.254','2019-06-15 04:56:16'),(44459,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0014400482177734','192.168.1.254','2019-06-15 04:56:16'),(44460,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00050711631774902','192.168.1.254','2019-06-15 04:56:16'),(44461,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00091791152954102','192.168.1.254','2019-06-15 04:56:16'),(44462,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00085210800170898','192.168.1.254','2019-06-15 04:56:16'),(44463,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00088787078857422','192.168.1.254','2019-06-15 04:56:16'),(44464,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00091695785522461','192.168.1.254','2019-06-15 04:56:16'),(44465,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00038909912109375','192.168.1.254','2019-06-15 04:56:16'),(44466,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018938779830933','192.168.1.254','2019-06-15 04:56:44'),(44467,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040507316589355','192.168.1.254','2019-06-15 04:56:44'),(44468,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012431144714355','192.168.1.254','2019-06-15 04:56:44'),(44469,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018885850906372','192.168.1.254','2019-06-15 04:56:44'),(44470,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040602684020996','192.168.1.254','2019-06-15 04:56:44'),(44471,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001237154006958','192.168.1.254','2019-06-15 04:56:44'),(44472,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018656015396118','192.168.1.254','2019-06-15 04:56:44'),(44473,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040102005004883','192.168.1.254','2019-06-15 04:56:44'),(44474,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012199878692627','192.168.1.254','2019-06-15 04:56:44'),(44475,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011911392211914','192.168.1.254','2019-06-15 04:56:44'),(44476,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019448041915894','192.168.1.254','2019-06-15 04:56:44'),(44477,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037097930908203','192.168.1.254','2019-06-15 04:56:44'),(44478,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032997131347656','192.168.1.254','2019-06-15 04:56:44'),(44479,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003349781036377','192.168.1.254','2019-06-15 04:56:44'),(44480,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033402442932129','192.168.1.254','2019-06-15 04:56:44'),(44481,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047612190246582','192.168.1.254','2019-06-15 04:56:44'),(44482,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042200088500977','192.168.1.254','2019-06-15 04:56:44'),(44483,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044989585876465','192.168.1.254','2019-06-15 04:56:44'),(44484,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00060796737670898','192.168.1.254','2019-06-15 04:56:44'),(44485,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043606758117676','192.168.1.254','2019-06-15 04:56:45'),(44486,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.024878978729248','192.168.1.254','2019-06-15 04:56:45'),(44487,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0072379112243652','192.168.1.254','2019-06-15 04:56:45'),(44488,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046610832214355','192.168.1.254','2019-06-15 04:56:45'),(44489,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00062012672424316','192.168.1.254','2019-06-15 04:56:45'),(44490,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023984909057617','192.168.1.254','2019-06-15 04:56:45'),(44491,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00022697448730469','192.168.1.254','2019-06-15 04:56:45'),(44492,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00021982192993164','192.168.1.254','2019-06-15 04:56:45'),(44493,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0002129077911377','192.168.1.254','2019-06-15 04:56:45'),(44494,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00020098686218262','192.168.1.254','2019-06-15 04:56:45'),(44495,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031900405883789','192.168.1.254','2019-06-15 04:56:45'),(44496,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.005486011505127','192.168.1.254','2019-06-15 04:56:45'),(44497,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0033228397369385','192.168.1.254','2019-06-15 04:56:45'),(44498,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046300888061523','192.168.1.254','2019-06-15 04:56:45'),(44499,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034117698669434','192.168.1.254','2019-06-15 04:56:45'),(44500,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034594535827637','192.168.1.254','2019-06-15 04:56:45'),(44501,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036382675170898','192.168.1.254','2019-06-15 04:56:45'),(44502,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005791187286377','192.168.1.254','2019-06-15 04:56:45'),(44503,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042390823364258','192.168.1.254','2019-06-15 04:56:45'),(44504,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034308433532715','192.168.1.254','2019-06-15 04:56:45'),(44505,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052714347839355','192.168.1.254','2019-06-15 04:56:45'),(44506,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056695938110352','192.168.1.254','2019-06-15 04:56:45'),(44507,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044584274291992','192.168.1.254','2019-06-15 04:56:45'),(44508,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00045490264892578','192.168.1.254','2019-06-15 04:56:45'),(44509,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053286552429199','192.168.1.254','2019-06-15 04:56:45'),(44510,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050902366638184','192.168.1.254','2019-06-15 04:56:45'),(44511,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047707557678223','192.168.1.254','2019-06-15 04:56:45'),(44512,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051307678222656','192.168.1.254','2019-06-15 04:56:45'),(44513,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041604042053223','192.168.1.254','2019-06-15 04:56:45'),(44514,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041007995605469','192.168.1.254','2019-06-15 04:56:45'),(44515,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040388107299805','192.168.1.254','2019-06-15 04:56:45'),(44516,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041913986206055','192.168.1.254','2019-06-15 04:56:45'),(44517,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00074601173400879','192.168.1.254','2019-06-15 04:56:45'),(44518,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0007178783416748','192.168.1.254','2019-06-15 04:56:45'),(44519,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00071096420288086','192.168.1.254','2019-06-15 04:56:45'),(44520,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00068497657775879','192.168.1.254','2019-06-15 04:56:45'),(44521,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00042390823364258','192.168.1.254','2019-06-15 04:56:45'),(44522,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019181966781616','192.168.1.254','2019-06-15 04:57:28'),(44523,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00040698051452637','192.168.1.254','2019-06-15 04:57:28'),(44524,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013620853424072','192.168.1.254','2019-06-15 04:57:28'),(44525,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.020164012908936','192.168.1.254','2019-06-15 04:57:28'),(44526,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00043296813964844','192.168.1.254','2019-06-15 04:57:28'),(44527,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013589859008789','192.168.1.254','2019-06-15 04:57:28'),(44528,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019017934799194','192.168.1.254','2019-06-15 04:57:28'),(44529,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00034093856811523','192.168.1.254','2019-06-15 04:57:28'),(44530,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013298988342285','192.168.1.254','2019-06-15 04:57:28'),(44531,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00055384635925293','192.168.1.254','2019-06-15 04:57:28'),(44532,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00088405609130859','192.168.1.254','2019-06-15 04:57:28'),(44533,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00091814994812012','192.168.1.254','2019-06-15 04:57:28'),(44534,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00084710121154785','192.168.1.254','2019-06-15 04:57:28'),(44535,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00090599060058594','192.168.1.254','2019-06-15 04:57:28'),(44536,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00043797492980957','192.168.1.254','2019-06-15 04:57:28'),(44537,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019938945770264','192.168.1.254','2019-06-15 04:57:29'),(44538,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039792060852051','192.168.1.254','2019-06-15 04:57:29'),(44539,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001276969909668','192.168.1.254','2019-06-15 04:57:29'),(44540,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.022343158721924','192.168.1.254','2019-06-15 04:57:29'),(44541,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003659725189209','192.168.1.254','2019-06-15 04:57:29'),(44542,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012240409851074','192.168.1.254','2019-06-15 04:57:29'),(44543,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019225835800171','192.168.1.254','2019-06-15 04:57:29'),(44544,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041294097900391','192.168.1.254','2019-06-15 04:57:29'),(44545,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011889934539795','192.168.1.254','2019-06-15 04:57:29'),(44546,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0010881423950195','192.168.1.254','2019-06-15 04:57:29'),(44547,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019745111465454','192.168.1.254','2019-06-15 04:57:29'),(44548,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036787986755371','192.168.1.254','2019-06-15 04:57:29'),(44549,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032186508178711','192.168.1.254','2019-06-15 04:57:29'),(44550,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033187866210938','192.168.1.254','2019-06-15 04:57:29'),(44551,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029897689819336','192.168.1.254','2019-06-15 04:57:29'),(44552,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050115585327148','192.168.1.254','2019-06-15 04:57:29'),(44553,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038599967956543','192.168.1.254','2019-06-15 04:57:29'),(44554,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041007995605469','192.168.1.254','2019-06-15 04:57:29'),(44555,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00063800811767578','192.168.1.254','2019-06-15 04:57:29'),(44556,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003960132598877','192.168.1.254','2019-06-15 04:57:29'),(44557,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.026084899902344','192.168.1.254','2019-06-15 04:57:29'),(44558,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0056560039520264','192.168.1.254','2019-06-15 04:57:29'),(44559,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005040168762207','192.168.1.254','2019-06-15 04:57:29'),(44560,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00063300132751465','192.168.1.254','2019-06-15 04:57:29'),(44561,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029802322387695','192.168.1.254','2019-06-15 04:57:29'),(44562,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034093856811523','192.168.1.254','2019-06-15 04:57:29'),(44563,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029110908508301','192.168.1.254','2019-06-15 04:57:29'),(44564,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028800964355469','192.168.1.254','2019-06-15 04:57:29'),(44565,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028491020202637','192.168.1.254','2019-06-15 04:57:29'),(44566,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038814544677734','192.168.1.254','2019-06-15 04:57:29'),(44567,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00577712059021','192.168.1.254','2019-06-15 04:57:29'),(44568,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0033090114593506','192.168.1.254','2019-06-15 04:57:29'),(44569,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046610832214355','192.168.1.254','2019-06-15 04:57:29'),(44570,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034117698669434','192.168.1.254','2019-06-15 04:57:29'),(44571,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003509521484375','192.168.1.254','2019-06-15 04:57:29'),(44572,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036716461181641','192.168.1.254','2019-06-15 04:57:29'),(44573,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00058507919311523','192.168.1.254','2019-06-15 04:57:29'),(44574,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042104721069336','192.168.1.254','2019-06-15 04:57:29'),(44575,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040483474731445','192.168.1.254','2019-06-15 04:57:29'),(44576,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00058698654174805','192.168.1.254','2019-06-15 04:57:29'),(44577,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00063586235046387','192.168.1.254','2019-06-15 04:57:29'),(44578,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049710273742676','192.168.1.254','2019-06-15 04:57:29'),(44579,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051283836364746','192.168.1.254','2019-06-15 04:57:29'),(44580,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00060105323791504','192.168.1.254','2019-06-15 04:57:29'),(44581,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00057792663574219','192.168.1.254','2019-06-15 04:57:29'),(44582,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056815147399902','192.168.1.254','2019-06-15 04:57:29'),(44583,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00062298774719238','192.168.1.254','2019-06-15 04:57:29'),(44584,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051498413085938','192.168.1.254','2019-06-15 04:57:29'),(44585,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054788589477539','192.168.1.254','2019-06-15 04:57:30'),(44586,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049400329589844','192.168.1.254','2019-06-15 04:57:30'),(44587,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051116943359375','192.168.1.254','2019-06-15 04:57:30'),(44588,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00092291831970215','192.168.1.254','2019-06-15 04:57:30'),(44589,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0008699893951416','192.168.1.254','2019-06-15 04:57:30'),(44590,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00084114074707031','192.168.1.254','2019-06-15 04:57:30'),(44591,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00084209442138672','192.168.1.254','2019-06-15 04:57:30'),(44592,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00046086311340332','192.168.1.254','2019-06-15 04:57:30'),(44593,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018976926803589','192.168.1.254','2019-06-15 04:57:55'),(44594,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00040602684020996','192.168.1.254','2019-06-15 04:57:55'),(44595,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.001370906829834','192.168.1.254','2019-06-15 04:57:55'),(44596,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018765926361084','192.168.1.254','2019-06-15 04:57:55'),(44597,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00044393539428711','192.168.1.254','2019-06-15 04:57:55'),(44598,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013630390167236','192.168.1.254','2019-06-15 04:57:55'),(44599,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018617868423462','192.168.1.254','2019-06-15 04:57:55'),(44600,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00038504600524902','192.168.1.254','2019-06-15 04:57:55'),(44601,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013620853424072','192.168.1.254','2019-06-15 04:57:55'),(44602,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00056195259094238','192.168.1.254','2019-06-15 04:57:55'),(44603,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00092196464538574','192.168.1.254','2019-06-15 04:57:55'),(44604,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00089001655578613','192.168.1.254','2019-06-15 04:57:55'),(44605,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00089693069458008','192.168.1.254','2019-06-15 04:57:55'),(44606,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00085306167602539','192.168.1.254','2019-06-15 04:57:55'),(44607,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00033783912658691','192.168.1.254','2019-06-15 04:57:55'),(44608,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.01935887336731','192.168.1.254','2019-06-15 04:58:26'),(44609,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.0003669261932373','192.168.1.254','2019-06-15 04:58:26'),(44610,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013480186462402','192.168.1.254','2019-06-15 04:58:26'),(44611,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018890142440796','192.168.1.254','2019-06-15 04:58:26'),(44612,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00031399726867676','192.168.1.254','2019-06-15 04:58:27'),(44613,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0014119148254395','192.168.1.254','2019-06-15 04:58:27'),(44614,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.020482063293457','192.168.1.254','2019-06-15 04:58:27'),(44615,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00038909912109375','192.168.1.254','2019-06-15 04:58:27'),(44616,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013530254364014','192.168.1.254','2019-06-15 04:58:27'),(44617,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00053906440734863','192.168.1.254','2019-06-15 04:58:27'),(44618,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00088596343994141','192.168.1.254','2019-06-15 04:58:27'),(44619,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00085306167602539','192.168.1.254','2019-06-15 04:58:27'),(44620,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.0009150505065918','192.168.1.254','2019-06-15 04:58:27'),(44621,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00087690353393555','192.168.1.254','2019-06-15 04:58:27'),(44622,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00038003921508789','192.168.1.254','2019-06-15 04:58:27'),(44623,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/web/web/dashboard','0.019867897033691','192.168.1.254','2019-06-15 04:58:28'),(44624,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/web/web/dashboard','0.00040793418884277','192.168.1.254','2019-06-15 04:58:28'),(44625,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/web/web/dashboard','0.0012922286987305','192.168.1.254','2019-06-15 04:58:28'),(44626,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/web/web/dashboard','0.018165111541748','192.168.1.254','2019-06-15 04:58:28'),(44627,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/web/web/dashboard','0.00036191940307617','192.168.1.254','2019-06-15 04:58:28'),(44628,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/web/web/dashboard','0.0010988712310791','192.168.1.254','2019-06-15 04:58:28'),(44629,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/web/web/dashboard','0.016935110092163','192.168.1.254','2019-06-15 04:58:28'),(44630,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/web/web/dashboard','0.00037407875061035','192.168.1.254','2019-06-15 04:58:28'),(44631,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/web/web/dashboard','0.001201868057251','192.168.1.254','2019-06-15 04:58:28'),(44632,68,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'46\'\nORDER BY `a`.`name` ASC','/salihin-digital/web/web/dashboard','0.00047993659973145','192.168.1.254','2019-06-15 04:58:28'),(44633,68,NULL,'others','SELECT *\nFROM `company__logo`\nWHERE `status` =0\nAND `is_delete` =0\nAND `company_id` = \'46\'\nORDER BY `title` ASC','/salihin-digital/web/web/dashboard','0.00041317939758301','192.168.1.254','2019-06-15 04:58:28'),(44634,68,NULL,'others','SELECT `a`.`user_id`, `a`.`access_lvl`, `b`.`name`, `b`.`gender_id`, `b`.`email`, `b`.`profile_picture`, `b`.`name`, `b`.`phone`\nFROM `user__module_access` `a`\nLEFT JOIN `user` `b` ON `b`.`id` = `a`.`user_id`\nWHERE `a`.`is_delete` =0\nGROUP BY `user_id`','/salihin-digital/web/web/dashboard','0.0020790100097656','192.168.1.254','2019-06-15 04:58:28'),(44635,68,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'web/web/dashboard/\'\nWHERE id = 1009','web/dashboard','0.00040197372436523','192.168.1.254','2019-06-15 04:58:28'),(44636,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.01988697052002','192.168.1.254','2019-06-15 04:58:32'),(44637,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.00045204162597656','192.168.1.254','2019-06-15 04:58:32'),(44638,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.001288890838623','192.168.1.254','2019-06-15 04:58:32'),(44639,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.019162893295288','192.168.1.254','2019-06-15 04:58:32'),(44640,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.00032687187194824','192.168.1.254','2019-06-15 04:58:32'),(44641,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.0011708736419678','192.168.1.254','2019-06-15 04:58:32'),(44642,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.018768787384033','192.168.1.254','2019-06-15 04:58:32'),(44643,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.00039005279541016','192.168.1.254','2019-06-15 04:58:32'),(44644,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/assets/img/profile/3.jpg','0.0011870861053467','192.168.1.254','2019-06-15 04:58:32'),(44645,68,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'assets/img/profile/3.jpg/\'\nWHERE id = 1009','/index','0.00037503242492676','192.168.1.254','2019-06-15 04:58:32'),(44646,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.019794940948486','192.168.1.254','2019-06-15 04:58:32'),(44647,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.00037598609924316','192.168.1.254','2019-06-15 04:58:32'),(44648,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.0012109279632568','192.168.1.254','2019-06-15 04:58:32'),(44649,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.019784927368164','192.168.1.254','2019-06-15 04:58:32'),(44650,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.00036096572875977','192.168.1.254','2019-06-15 04:58:32'),(44651,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.0012359619140625','192.168.1.254','2019-06-15 04:58:32'),(44652,68,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.019598007202148','192.168.1.254','2019-06-15 04:58:32'),(44653,68,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.00036001205444336','192.168.1.254','2019-06-15 04:58:32'),(44654,68,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'68\'','/salihin-digital/web/payment/get_cart_session','0.0011520385742188','192.168.1.254','2019-06-15 04:58:32'),(44655,68,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'web/payment/get_cart_session/\'\nWHERE id = 1009','payment/get_cart_session','0.00029683113098145','192.168.1.254','2019-06-15 04:58:32'),(44656,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019142866134644','192.168.1.254','2019-06-15 04:58:56'),(44657,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00063681602478027','192.168.1.254','2019-06-15 04:58:56'),(44658,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013890266418457','192.168.1.254','2019-06-15 04:58:56'),(44659,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019001960754395','192.168.1.254','2019-06-15 04:58:56'),(44660,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00042200088500977','192.168.1.254','2019-06-15 04:58:56'),(44661,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013999938964844','192.168.1.254','2019-06-15 04:58:56'),(44662,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019438982009888','192.168.1.254','2019-06-15 04:58:56'),(44663,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00032997131347656','192.168.1.254','2019-06-15 04:58:56'),(44664,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013778209686279','192.168.1.254','2019-06-15 04:58:56'),(44665,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00049901008605957','192.168.1.254','2019-06-15 04:58:56'),(44666,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00085711479187012','192.168.1.254','2019-06-15 04:58:56'),(44667,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00081300735473633','192.168.1.254','2019-06-15 04:58:56'),(44668,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.000885009765625','192.168.1.254','2019-06-15 04:58:56'),(44669,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00084114074707031','192.168.1.254','2019-06-15 04:58:56'),(44670,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00040388107299805','192.168.1.254','2019-06-15 04:58:56'),(44671,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.020019054412842','192.168.1.254','2019-06-15 04:59:26'),(44672,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00040698051452637','192.168.1.254','2019-06-15 04:59:26'),(44673,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0014641284942627','192.168.1.254','2019-06-15 04:59:26'),(44674,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018891096115112','192.168.1.254','2019-06-15 04:59:26'),(44675,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00035309791564941','192.168.1.254','2019-06-15 04:59:26'),(44676,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0015139579772949','192.168.1.254','2019-06-15 04:59:26'),(44677,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019065141677856','192.168.1.254','2019-06-15 04:59:26'),(44678,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00033903121948242','192.168.1.254','2019-06-15 04:59:26'),(44679,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.001406192779541','192.168.1.254','2019-06-15 04:59:26'),(44680,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00050187110900879','192.168.1.254','2019-06-15 04:59:26'),(44681,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00087189674377441','192.168.1.254','2019-06-15 04:59:26'),(44682,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00087404251098633','192.168.1.254','2019-06-15 04:59:26'),(44683,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00088596343994141','192.168.1.254','2019-06-15 04:59:26'),(44684,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00090909004211426','192.168.1.254','2019-06-15 04:59:26'),(44685,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00039100646972656','192.168.1.254','2019-06-15 04:59:26'),(44686,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018779993057251','192.168.1.254','2019-06-15 04:59:35'),(44687,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040388107299805','192.168.1.254','2019-06-15 04:59:35'),(44688,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001230001449585','192.168.1.254','2019-06-15 04:59:35'),(44689,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0191330909729','192.168.1.254','2019-06-15 04:59:35'),(44690,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040793418884277','192.168.1.254','2019-06-15 04:59:35'),(44691,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001255989074707','192.168.1.254','2019-06-15 04:59:35'),(44692,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020502805709839','192.168.1.254','2019-06-15 04:59:35'),(44693,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038504600524902','192.168.1.254','2019-06-15 04:59:35'),(44694,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012209415435791','192.168.1.254','2019-06-15 04:59:35'),(44695,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0010950565338135','192.168.1.254','2019-06-15 04:59:35'),(44696,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.02082085609436','192.168.1.254','2019-06-15 04:59:35'),(44697,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028300285339355','192.168.1.254','2019-06-15 04:59:35'),(44698,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024008750915527','192.168.1.254','2019-06-15 04:59:35'),(44699,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027585029602051','192.168.1.254','2019-06-15 04:59:35'),(44700,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0002739429473877','192.168.1.254','2019-06-15 04:59:35'),(44701,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004270076751709','192.168.1.254','2019-06-15 04:59:35'),(44702,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031805038452148','192.168.1.254','2019-06-15 04:59:35'),(44703,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035595893859863','192.168.1.254','2019-06-15 04:59:35'),(44704,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00055313110351562','192.168.1.254','2019-06-15 04:59:35'),(44705,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034189224243164','192.168.1.254','2019-06-15 04:59:36'),(44706,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.028537034988403','192.168.1.254','2019-06-15 04:59:36'),(44707,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0068600177764893','192.168.1.254','2019-06-15 04:59:36'),(44708,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052785873413086','192.168.1.254','2019-06-15 04:59:36'),(44709,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00059199333190918','192.168.1.254','2019-06-15 04:59:36'),(44710,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029301643371582','192.168.1.254','2019-06-15 04:59:36'),(44711,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029611587524414','192.168.1.254','2019-06-15 04:59:36'),(44712,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027084350585938','192.168.1.254','2019-06-15 04:59:36'),(44713,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029492378234863','192.168.1.254','2019-06-15 04:59:36'),(44714,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025200843811035','192.168.1.254','2019-06-15 04:59:36'),(44715,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044012069702148','192.168.1.254','2019-06-15 04:59:36'),(44716,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0056350231170654','192.168.1.254','2019-06-15 04:59:36'),(44717,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.003262996673584','192.168.1.254','2019-06-15 04:59:36'),(44718,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040698051452637','192.168.1.254','2019-06-15 04:59:36'),(44719,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026106834411621','192.168.1.254','2019-06-15 04:59:36'),(44720,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025701522827148','192.168.1.254','2019-06-15 04:59:36'),(44721,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026798248291016','192.168.1.254','2019-06-15 04:59:36'),(44722,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049400329589844','192.168.1.254','2019-06-15 04:59:36'),(44723,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034904479980469','192.168.1.254','2019-06-15 04:59:36'),(44724,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032901763916016','192.168.1.254','2019-06-15 04:59:36'),(44725,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054597854614258','192.168.1.254','2019-06-15 04:59:36'),(44726,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00061607360839844','192.168.1.254','2019-06-15 04:59:36'),(44727,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004570484161377','192.168.1.254','2019-06-15 04:59:36'),(44728,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047683715820312','192.168.1.254','2019-06-15 04:59:36'),(44729,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053000450134277','192.168.1.254','2019-06-15 04:59:36'),(44730,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049185752868652','192.168.1.254','2019-06-15 04:59:36'),(44731,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049901008605957','192.168.1.254','2019-06-15 04:59:36'),(44732,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00063514709472656','192.168.1.254','2019-06-15 04:59:36'),(44733,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051093101501465','192.168.1.254','2019-06-15 04:59:36'),(44734,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046801567077637','192.168.1.254','2019-06-15 04:59:36'),(44735,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044417381286621','192.168.1.254','2019-06-15 04:59:36'),(44736,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048685073852539','192.168.1.254','2019-06-15 04:59:36'),(44737,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00088191032409668','192.168.1.254','2019-06-15 04:59:36'),(44738,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00084090232849121','192.168.1.254','2019-06-15 04:59:36'),(44739,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00082707405090332','192.168.1.254','2019-06-15 04:59:36'),(44740,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00083494186401367','192.168.1.254','2019-06-15 04:59:36'),(44741,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00037789344787598','192.168.1.254','2019-06-15 04:59:36'),(44742,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018893957138062','192.168.1.254','2019-06-15 05:00:02'),(44743,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00037097930908203','192.168.1.254','2019-06-15 05:00:02'),(44744,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013279914855957','192.168.1.254','2019-06-15 05:00:02'),(44745,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018702030181885','192.168.1.254','2019-06-15 05:00:02'),(44746,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00035881996154785','192.168.1.254','2019-06-15 05:00:02'),(44747,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013561248779297','192.168.1.254','2019-06-15 05:00:02'),(44748,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.018930912017822','192.168.1.254','2019-06-15 05:00:02'),(44749,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00037002563476562','192.168.1.254','2019-06-15 05:00:02'),(44750,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013360977172852','192.168.1.254','2019-06-15 05:00:02'),(44751,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00052404403686523','192.168.1.254','2019-06-15 05:00:02'),(44752,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00085711479187012','192.168.1.254','2019-06-15 05:00:02'),(44753,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00084686279296875','192.168.1.254','2019-06-15 05:00:02'),(44754,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00091004371643066','192.168.1.254','2019-06-15 05:00:02'),(44755,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00096821784973145','192.168.1.254','2019-06-15 05:00:02'),(44756,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00035715103149414','192.168.1.254','2019-06-15 05:00:02'),(44757,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019232034683228','192.168.1.254','2019-06-15 05:00:30'),(44758,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00041294097900391','192.168.1.254','2019-06-15 05:00:30'),(44759,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013821125030518','192.168.1.254','2019-06-15 05:00:30'),(44760,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019093990325928','192.168.1.254','2019-06-15 05:00:30'),(44761,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.00039505958557129','192.168.1.254','2019-06-15 05:00:30'),(44762,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.0013878345489502','192.168.1.254','2019-06-15 05:00:30'),(44763,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/kbs/search','0.019145011901855','192.168.1.254','2019-06-15 05:00:30'),(44764,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/kbs/search','0.0003659725189209','192.168.1.254','2019-06-15 05:00:30'),(44765,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/kbs/search','0.001305103302002','192.168.1.254','2019-06-15 05:00:30'),(44766,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/kbs/search','0.00051999092102051','192.168.1.254','2019-06-15 05:00:30'),(44767,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00086307525634766','192.168.1.254','2019-06-15 05:00:30'),(44768,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00084090232849121','192.168.1.254','2019-06-15 05:00:30'),(44769,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00084900856018066','192.168.1.254','2019-06-15 05:00:31'),(44770,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/kbs/search','0.00085997581481934','192.168.1.254','2019-06-15 05:00:31'),(44771,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'kbs/search/\'\nWHERE id = 997','kbs/search','0.00043392181396484','192.168.1.254','2019-06-15 05:00:31'),(44772,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019325971603394','192.168.1.254','2019-06-15 05:01:36'),(44773,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.0004119873046875','192.168.1.254','2019-06-15 05:01:36'),(44774,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013799667358398','192.168.1.254','2019-06-15 05:01:36'),(44775,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019017934799194','192.168.1.254','2019-06-15 05:01:36'),(44776,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00036811828613281','192.168.1.254','2019-06-15 05:01:36'),(44777,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013508796691895','192.168.1.254','2019-06-15 05:01:36'),(44778,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018667936325073','192.168.1.254','2019-06-15 05:01:36'),(44779,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00036406517028809','192.168.1.254','2019-06-15 05:01:36'),(44780,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0012998580932617','192.168.1.254','2019-06-15 05:01:36'),(44781,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = 4\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00086879730224609','192.168.1.254','2019-06-15 05:01:36'),(44782,23,NULL,'insert','INSERT INTO `_log__module_session` (`module_id`, `user_session_id`) VALUES (4, 997)','leave/index','0.25789594650269','192.168.1.254','2019-06-15 05:01:36'),(44783,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00059390068054199','192.168.1.254','2019-06-15 05:01:36'),(44784,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00030779838562012','192.168.1.254','2019-06-15 05:01:36'),(44785,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00063681602478027','192.168.1.254','2019-06-15 05:01:36'),(44786,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.029052019119263','192.168.1.254','2019-06-15 05:01:36'),(44787,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0096890926361084','192.168.1.254','2019-06-15 05:01:36'),(44788,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0020627975463867','192.168.1.254','2019-06-15 05:01:36'),(44789,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.018931150436401','192.168.1.254','2019-06-15 05:01:36'),(44790,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00031590461730957','192.168.1.254','2019-06-15 05:01:36'),(44791,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00055384635925293','192.168.1.254','2019-06-15 05:01:36'),(44792,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020101070404053','192.168.1.254','2019-06-15 05:01:36'),(44793,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0043280124664307','192.168.1.254','2019-06-15 05:01:36'),(44794,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019406080245972','192.168.1.254','2019-06-15 05:01:36'),(44795,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020492076873779','192.168.1.254','2019-06-15 05:01:36'),(44796,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.022522926330566','192.168.1.254','2019-06-15 05:01:36'),(44797,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.0005040168762207','192.168.1.254','2019-06-15 05:01:36'),(44798,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00082707405090332','192.168.1.254','2019-06-15 05:01:36'),(44799,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00081515312194824','192.168.1.254','2019-06-15 05:01:36'),(44800,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00079703330993652','192.168.1.254','2019-06-15 05:01:36'),(44801,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00078797340393066','192.168.1.254','2019-06-15 05:01:36'),(44802,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00045585632324219','192.168.1.254','2019-06-15 05:01:36'),(44803,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018723011016846','192.168.1.254','2019-06-15 05:02:11'),(44804,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040411949157715','192.168.1.254','2019-06-15 05:02:11'),(44805,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001244068145752','192.168.1.254','2019-06-15 05:02:11'),(44806,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020957946777344','192.168.1.254','2019-06-15 05:02:11'),(44807,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035881996154785','192.168.1.254','2019-06-15 05:02:11'),(44808,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011818408966064','192.168.1.254','2019-06-15 05:02:11'),(44809,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018830060958862','192.168.1.254','2019-06-15 05:02:11'),(44810,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032901763916016','192.168.1.254','2019-06-15 05:02:11'),(44811,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011351108551025','192.168.1.254','2019-06-15 05:02:11'),(44812,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011000633239746','192.168.1.254','2019-06-15 05:02:11'),(44813,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019942045211792','192.168.1.254','2019-06-15 05:02:11'),(44814,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027894973754883','192.168.1.254','2019-06-15 05:02:11'),(44815,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026798248291016','192.168.1.254','2019-06-15 05:02:11'),(44816,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0002589225769043','192.168.1.254','2019-06-15 05:02:11'),(44817,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025486946105957','192.168.1.254','2019-06-15 05:02:11'),(44818,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004119873046875','192.168.1.254','2019-06-15 05:02:11'),(44819,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032877922058105','192.168.1.254','2019-06-15 05:02:11'),(44820,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042986869812012','192.168.1.254','2019-06-15 05:02:11'),(44821,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053691864013672','192.168.1.254','2019-06-15 05:02:11'),(44822,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040698051452637','192.168.1.254','2019-06-15 05:02:11'),(44823,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.023311853408813','192.168.1.254','2019-06-15 05:02:11'),(44824,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0031042098999023','192.168.1.254','2019-06-15 05:02:11'),(44825,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003809928894043','192.168.1.254','2019-06-15 05:02:11'),(44826,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00055217742919922','192.168.1.254','2019-06-15 05:02:11'),(44827,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024795532226562','192.168.1.254','2019-06-15 05:02:11'),(44828,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025081634521484','192.168.1.254','2019-06-15 05:02:11'),(44829,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024294853210449','192.168.1.254','2019-06-15 05:02:11'),(44830,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026202201843262','192.168.1.254','2019-06-15 05:02:11'),(44831,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026488304138184','192.168.1.254','2019-06-15 05:02:11'),(44832,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035905838012695','192.168.1.254','2019-06-15 05:02:11'),(44833,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0055141448974609','192.168.1.254','2019-06-15 05:02:11'),(44834,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0035409927368164','192.168.1.254','2019-06-15 05:02:11'),(44835,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044608116149902','192.168.1.254','2019-06-15 05:02:11'),(44836,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029206275939941','192.168.1.254','2019-06-15 05:02:11'),(44837,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031113624572754','192.168.1.254','2019-06-15 05:02:11'),(44838,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029706954956055','192.168.1.254','2019-06-15 05:02:11'),(44839,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049710273742676','192.168.1.254','2019-06-15 05:02:11'),(44840,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034499168395996','192.168.1.254','2019-06-15 05:02:11'),(44841,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031805038452148','192.168.1.254','2019-06-15 05:02:11'),(44842,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051283836364746','192.168.1.254','2019-06-15 05:02:11'),(44843,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056099891662598','192.168.1.254','2019-06-15 05:02:11'),(44844,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005180835723877','192.168.1.254','2019-06-15 05:02:11'),(44845,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048184394836426','192.168.1.254','2019-06-15 05:02:11'),(44846,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0006411075592041','192.168.1.254','2019-06-15 05:02:11'),(44847,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00058794021606445','192.168.1.254','2019-06-15 05:02:11'),(44848,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00060701370239258','192.168.1.254','2019-06-15 05:02:11'),(44849,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00064587593078613','192.168.1.254','2019-06-15 05:02:11'),(44850,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047898292541504','192.168.1.254','2019-06-15 05:02:11'),(44851,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048398971557617','192.168.1.254','2019-06-15 05:02:11'),(44852,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049591064453125','192.168.1.254','2019-06-15 05:02:11'),(44853,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046491622924805','192.168.1.254','2019-06-15 05:02:11'),(44854,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00088310241699219','192.168.1.254','2019-06-15 05:02:12'),(44855,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00082206726074219','192.168.1.254','2019-06-15 05:02:12'),(44856,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00078797340393066','192.168.1.254','2019-06-15 05:02:12'),(44857,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00081205368041992','192.168.1.254','2019-06-15 05:02:12'),(44858,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00041699409484863','192.168.1.254','2019-06-15 05:02:12'),(44859,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018896102905273','192.168.1.254','2019-06-15 05:02:26'),(44860,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039792060852051','192.168.1.254','2019-06-15 05:02:26'),(44861,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012338161468506','192.168.1.254','2019-06-15 05:02:26'),(44862,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.017221212387085','192.168.1.254','2019-06-15 05:02:26'),(44863,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003809928894043','192.168.1.254','2019-06-15 05:02:26'),(44864,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012238025665283','192.168.1.254','2019-06-15 05:02:26'),(44865,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018688917160034','192.168.1.254','2019-06-15 05:02:26'),(44866,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039792060852051','192.168.1.254','2019-06-15 05:02:26'),(44867,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012478828430176','192.168.1.254','2019-06-15 05:02:26'),(44868,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011460781097412','192.168.1.254','2019-06-15 05:02:26'),(44869,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020565032958984','192.168.1.254','2019-06-15 05:02:26'),(44870,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034689903259277','192.168.1.254','2019-06-15 05:02:26'),(44871,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029516220092773','192.168.1.254','2019-06-15 05:02:26'),(44872,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033998489379883','192.168.1.254','2019-06-15 05:02:26'),(44873,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032305717468262','192.168.1.254','2019-06-15 05:02:26'),(44874,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050616264343262','192.168.1.254','2019-06-15 05:02:26'),(44875,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037598609924316','192.168.1.254','2019-06-15 05:02:26'),(44876,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044989585876465','192.168.1.254','2019-06-15 05:02:26'),(44877,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0006110668182373','192.168.1.254','2019-06-15 05:02:26'),(44878,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037598609924316','192.168.1.254','2019-06-15 05:02:26'),(44879,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.030071973800659','192.168.1.254','2019-06-15 05:02:26'),(44880,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0059280395507812','192.168.1.254','2019-06-15 05:02:26'),(44881,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040006637573242','192.168.1.254','2019-06-15 05:02:26'),(44882,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056290626525879','192.168.1.254','2019-06-15 05:02:26'),(44883,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027012825012207','192.168.1.254','2019-06-15 05:02:26'),(44884,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024890899658203','192.168.1.254','2019-06-15 05:02:26'),(44885,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024604797363281','192.168.1.254','2019-06-15 05:02:26'),(44886,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024795532226562','192.168.1.254','2019-06-15 05:02:26'),(44887,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023794174194336','192.168.1.254','2019-06-15 05:02:26'),(44888,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033402442932129','192.168.1.254','2019-06-15 05:02:26'),(44889,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.005620002746582','192.168.1.254','2019-06-15 05:02:26'),(44890,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0033390522003174','192.168.1.254','2019-06-15 05:02:26'),(44891,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041699409484863','192.168.1.254','2019-06-15 05:02:26'),(44892,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029397010803223','192.168.1.254','2019-06-15 05:02:26'),(44893,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034785270690918','192.168.1.254','2019-06-15 05:02:26'),(44894,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025081634521484','192.168.1.254','2019-06-15 05:02:26'),(44895,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047016143798828','192.168.1.254','2019-06-15 05:02:26'),(44896,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028419494628906','192.168.1.254','2019-06-15 05:02:26'),(44897,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003960132598877','192.168.1.254','2019-06-15 05:02:26'),(44898,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049400329589844','192.168.1.254','2019-06-15 05:02:26'),(44899,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00060796737670898','192.168.1.254','2019-06-15 05:02:26'),(44900,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00045585632324219','192.168.1.254','2019-06-15 05:02:26'),(44901,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047206878662109','192.168.1.254','2019-06-15 05:02:26'),(44902,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00066900253295898','192.168.1.254','2019-06-15 05:02:26'),(44903,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054001808166504','192.168.1.254','2019-06-15 05:02:26'),(44904,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054001808166504','192.168.1.254','2019-06-15 05:02:26'),(44905,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00058889389038086','192.168.1.254','2019-06-15 05:02:26'),(44906,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050616264343262','192.168.1.254','2019-06-15 05:02:26'),(44907,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047683715820312','192.168.1.254','2019-06-15 05:02:26'),(44908,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049686431884766','192.168.1.254','2019-06-15 05:02:26'),(44909,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046610832214355','192.168.1.254','2019-06-15 05:02:26'),(44910,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00086712837219238','192.168.1.254','2019-06-15 05:02:26'),(44911,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00077104568481445','192.168.1.254','2019-06-15 05:02:27'),(44912,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00076198577880859','192.168.1.254','2019-06-15 05:02:27'),(44913,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0014810562133789','192.168.1.254','2019-06-15 05:02:27'),(44914,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.0004119873046875','192.168.1.254','2019-06-15 05:02:27'),(44915,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020161151885986','192.168.1.254','2019-06-15 05:03:38'),(44916,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039196014404297','192.168.1.254','2019-06-15 05:03:38'),(44917,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012819766998291','192.168.1.254','2019-06-15 05:03:38'),(44918,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019108057022095','192.168.1.254','2019-06-15 05:03:38'),(44919,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041818618774414','192.168.1.254','2019-06-15 05:03:38'),(44920,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012400150299072','192.168.1.254','2019-06-15 05:03:38'),(44921,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018970012664795','192.168.1.254','2019-06-15 05:03:38'),(44922,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040411949157715','192.168.1.254','2019-06-15 05:03:38'),(44923,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012149810791016','192.168.1.254','2019-06-15 05:03:38'),(44924,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0010981559753418','192.168.1.254','2019-06-15 05:03:38'),(44925,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019903898239136','192.168.1.254','2019-06-15 05:03:38'),(44926,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00030803680419922','192.168.1.254','2019-06-15 05:03:38'),(44927,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032997131347656','192.168.1.254','2019-06-15 05:03:38'),(44928,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028896331787109','192.168.1.254','2019-06-15 05:03:38'),(44929,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0002899169921875','192.168.1.254','2019-06-15 05:03:38'),(44930,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041985511779785','192.168.1.254','2019-06-15 05:03:38'),(44931,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032186508178711','192.168.1.254','2019-06-15 05:03:38'),(44932,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040793418884277','192.168.1.254','2019-06-15 05:03:38'),(44933,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005347728729248','192.168.1.254','2019-06-15 05:03:38'),(44934,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035190582275391','192.168.1.254','2019-06-15 05:03:38'),(44935,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.023580074310303','192.168.1.254','2019-06-15 05:03:38'),(44936,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0074820518493652','192.168.1.254','2019-06-15 05:03:38'),(44937,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041604042053223','192.168.1.254','2019-06-15 05:03:38'),(44938,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056195259094238','192.168.1.254','2019-06-15 05:03:38'),(44939,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026702880859375','192.168.1.254','2019-06-15 05:03:38'),(44940,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027799606323242','192.168.1.254','2019-06-15 05:03:38'),(44941,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023698806762695','192.168.1.254','2019-06-15 05:03:38'),(44942,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025820732116699','192.168.1.254','2019-06-15 05:03:38'),(44943,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024008750915527','192.168.1.254','2019-06-15 05:03:38'),(44944,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033402442932129','192.168.1.254','2019-06-15 05:03:38'),(44945,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0059800148010254','192.168.1.254','2019-06-15 05:03:38'),(44946,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0031378269195557','192.168.1.254','2019-06-15 05:03:38'),(44947,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037097930908203','192.168.1.254','2019-06-15 05:03:38'),(44948,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00022983551025391','192.168.1.254','2019-06-15 05:03:38'),(44949,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023579597473145','192.168.1.254','2019-06-15 05:03:38'),(44950,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025296211242676','192.168.1.254','2019-06-15 05:03:38'),(44951,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0010988712310791','192.168.1.254','2019-06-15 05:03:38'),(44952,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047612190246582','192.168.1.254','2019-06-15 05:03:38'),(44953,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053691864013672','192.168.1.254','2019-06-15 05:03:38'),(44954,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00067496299743652','192.168.1.254','2019-06-15 05:03:38'),(44955,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0007169246673584','192.168.1.254','2019-06-15 05:03:38'),(44956,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044798851013184','192.168.1.254','2019-06-15 05:03:38'),(44957,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048112869262695','192.168.1.254','2019-06-15 05:03:38'),(44958,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056695938110352','192.168.1.254','2019-06-15 05:03:38'),(44959,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048613548278809','192.168.1.254','2019-06-15 05:03:38'),(44960,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048685073852539','192.168.1.254','2019-06-15 05:03:38'),(44961,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005800724029541','192.168.1.254','2019-06-15 05:03:38'),(44962,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043511390686035','192.168.1.254','2019-06-15 05:03:39'),(44963,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043702125549316','192.168.1.254','2019-06-15 05:03:39'),(44964,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040483474731445','192.168.1.254','2019-06-15 05:03:39'),(44965,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004279613494873','192.168.1.254','2019-06-15 05:03:39'),(44966,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011358261108398','192.168.1.254','2019-06-15 05:03:39'),(44967,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00077700614929199','192.168.1.254','2019-06-15 05:03:39'),(44968,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00077104568481445','192.168.1.254','2019-06-15 05:03:39'),(44969,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00081300735473633','192.168.1.254','2019-06-15 05:03:39'),(44970,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00038886070251465','192.168.1.254','2019-06-15 05:03:39'),(44971,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018810987472534','192.168.1.254','2019-06-15 05:04:00'),(44972,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040507316589355','192.168.1.254','2019-06-15 05:04:00'),(44973,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012500286102295','192.168.1.254','2019-06-15 05:04:00'),(44974,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.02015209197998','192.168.1.254','2019-06-15 05:04:00'),(44975,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036001205444336','192.168.1.254','2019-06-15 05:04:00'),(44976,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0013120174407959','192.168.1.254','2019-06-15 05:04:01'),(44977,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020423889160156','192.168.1.254','2019-06-15 05:04:01'),(44978,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040292739868164','192.168.1.254','2019-06-15 05:04:01'),(44979,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012679100036621','192.168.1.254','2019-06-15 05:04:01'),(44980,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011181831359863','192.168.1.254','2019-06-15 05:04:01'),(44981,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020295858383179','192.168.1.254','2019-06-15 05:04:01'),(44982,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033998489379883','192.168.1.254','2019-06-15 05:04:01'),(44983,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025486946105957','192.168.1.254','2019-06-15 05:04:01'),(44984,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00022411346435547','192.168.1.254','2019-06-15 05:04:01'),(44985,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025701522827148','192.168.1.254','2019-06-15 05:04:01'),(44986,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004119873046875','192.168.1.254','2019-06-15 05:04:01'),(44987,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034284591674805','192.168.1.254','2019-06-15 05:04:01'),(44988,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038385391235352','192.168.1.254','2019-06-15 05:04:01'),(44989,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005490779876709','192.168.1.254','2019-06-15 05:04:01'),(44990,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032401084899902','192.168.1.254','2019-06-15 05:04:01'),(44991,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.023439884185791','192.168.1.254','2019-06-15 05:04:01'),(44992,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0068340301513672','192.168.1.254','2019-06-15 05:04:01'),(44993,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043296813964844','192.168.1.254','2019-06-15 05:04:01'),(44994,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052809715270996','192.168.1.254','2019-06-15 05:04:01'),(44995,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025200843811035','192.168.1.254','2019-06-15 05:04:01'),(44996,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031185150146484','192.168.1.254','2019-06-15 05:04:01'),(44997,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027894973754883','192.168.1.254','2019-06-15 05:04:01'),(44998,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029087066650391','192.168.1.254','2019-06-15 05:04:01'),(44999,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025486946105957','192.168.1.254','2019-06-15 05:04:01'),(45000,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036787986755371','192.168.1.254','2019-06-15 05:04:01'),(45001,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0057570934295654','192.168.1.254','2019-06-15 05:04:01'),(45002,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0032720565795898','192.168.1.254','2019-06-15 05:04:01'),(45003,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046205520629883','192.168.1.254','2019-06-15 05:04:01'),(45004,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029778480529785','192.168.1.254','2019-06-15 05:04:01'),(45005,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035715103149414','192.168.1.254','2019-06-15 05:04:01'),(45006,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040698051452637','192.168.1.254','2019-06-15 05:04:01'),(45007,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00057482719421387','192.168.1.254','2019-06-15 05:04:01'),(45008,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037813186645508','192.168.1.254','2019-06-15 05:04:01'),(45009,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035500526428223','192.168.1.254','2019-06-15 05:04:01'),(45010,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051116943359375','192.168.1.254','2019-06-15 05:04:01'),(45011,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054097175598145','192.168.1.254','2019-06-15 05:04:01'),(45012,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044393539428711','192.168.1.254','2019-06-15 05:04:01'),(45013,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046300888061523','192.168.1.254','2019-06-15 05:04:01'),(45014,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056195259094238','192.168.1.254','2019-06-15 05:04:01'),(45015,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052905082702637','192.168.1.254','2019-06-15 05:04:02'),(45016,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047111511230469','192.168.1.254','2019-06-15 05:04:02'),(45017,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00057411193847656','192.168.1.254','2019-06-15 05:04:02'),(45018,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046801567077637','192.168.1.254','2019-06-15 05:04:02'),(45019,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044918060302734','192.168.1.254','2019-06-15 05:04:02'),(45020,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044798851013184','192.168.1.254','2019-06-15 05:04:02'),(45021,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050592422485352','192.168.1.254','2019-06-15 05:04:02'),(45022,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00087285041809082','192.168.1.254','2019-06-15 05:04:02'),(45023,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00081610679626465','192.168.1.254','2019-06-15 05:04:02'),(45024,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00081706047058105','192.168.1.254','2019-06-15 05:04:02'),(45025,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00087285041809082','192.168.1.254','2019-06-15 05:04:02'),(45026,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00036716461181641','192.168.1.254','2019-06-15 05:04:02'),(45027,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.01895809173584','192.168.1.254','2019-06-15 05:04:44'),(45028,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.0004119873046875','192.168.1.254','2019-06-15 05:04:44'),(45029,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013608932495117','192.168.1.254','2019-06-15 05:04:44'),(45030,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.01952600479126','192.168.1.254','2019-06-15 05:04:44'),(45031,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00036287307739258','192.168.1.254','2019-06-15 05:04:44'),(45032,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013430118560791','192.168.1.254','2019-06-15 05:04:44'),(45033,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.0192711353302','192.168.1.254','2019-06-15 05:04:44'),(45034,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00037598609924316','192.168.1.254','2019-06-15 05:04:44'),(45035,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013179779052734','192.168.1.254','2019-06-15 05:04:44'),(45036,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00065016746520996','192.168.1.254','2019-06-15 05:04:44'),(45037,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00029516220092773','192.168.1.254','2019-06-15 05:04:44'),(45038,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00067305564880371','192.168.1.254','2019-06-15 05:04:44'),(45039,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.027275085449219','192.168.1.254','2019-06-15 05:04:44'),(45040,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0074069499969482','192.168.1.254','2019-06-15 05:04:44'),(45041,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0020360946655273','192.168.1.254','2019-06-15 05:04:45'),(45042,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019495010375977','192.168.1.254','2019-06-15 05:04:45'),(45043,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00028705596923828','192.168.1.254','2019-06-15 05:04:45'),(45044,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00050091743469238','192.168.1.254','2019-06-15 05:04:45'),(45045,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0021069049835205','192.168.1.254','2019-06-15 05:04:45'),(45046,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0082781314849854','192.168.1.254','2019-06-15 05:04:45'),(45047,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019829988479614','192.168.1.254','2019-06-15 05:04:45'),(45048,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019609928131104','192.168.1.254','2019-06-15 05:04:45'),(45049,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.023772954940796','192.168.1.254','2019-06-15 05:04:45'),(45050,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00056695938110352','192.168.1.254','2019-06-15 05:04:45'),(45051,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00088691711425781','192.168.1.254','2019-06-15 05:04:45'),(45052,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.000885009765625','192.168.1.254','2019-06-15 05:04:45'),(45053,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00087285041809082','192.168.1.254','2019-06-15 05:04:45'),(45054,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00088906288146973','192.168.1.254','2019-06-15 05:04:45'),(45055,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00043201446533203','192.168.1.254','2019-06-15 05:04:45'),(45056,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018782138824463','192.168.1.254','2019-06-15 05:05:14'),(45057,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041103363037109','192.168.1.254','2019-06-15 05:05:14'),(45058,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012321472167969','192.168.1.254','2019-06-15 05:05:14'),(45059,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0189208984375','192.168.1.254','2019-06-15 05:05:15'),(45060,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003960132598877','192.168.1.254','2019-06-15 05:05:15'),(45061,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012152194976807','192.168.1.254','2019-06-15 05:05:15'),(45062,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018680810928345','192.168.1.254','2019-06-15 05:05:15'),(45063,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036907196044922','192.168.1.254','2019-06-15 05:05:15'),(45064,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011730194091797','192.168.1.254','2019-06-15 05:05:15'),(45065,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001101016998291','192.168.1.254','2019-06-15 05:05:15'),(45066,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019342184066772','192.168.1.254','2019-06-15 05:05:15'),(45067,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028705596923828','192.168.1.254','2019-06-15 05:05:15'),(45068,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028586387634277','192.168.1.254','2019-06-15 05:05:15'),(45069,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025105476379395','192.168.1.254','2019-06-15 05:05:15'),(45070,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028610229492188','192.168.1.254','2019-06-15 05:05:15'),(45071,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039005279541016','192.168.1.254','2019-06-15 05:05:15'),(45072,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003211498260498','192.168.1.254','2019-06-15 05:05:15'),(45073,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035619735717773','192.168.1.254','2019-06-15 05:05:15'),(45074,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050592422485352','192.168.1.254','2019-06-15 05:05:15'),(45075,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003199577331543','192.168.1.254','2019-06-15 05:05:15'),(45076,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.023851156234741','192.168.1.254','2019-06-15 05:05:15'),(45077,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0038130283355713','192.168.1.254','2019-06-15 05:05:15'),(45078,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042891502380371','192.168.1.254','2019-06-15 05:05:15'),(45079,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050783157348633','192.168.1.254','2019-06-15 05:05:15'),(45080,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026106834411621','192.168.1.254','2019-06-15 05:05:15'),(45081,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026607513427734','192.168.1.254','2019-06-15 05:05:15'),(45082,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026297569274902','192.168.1.254','2019-06-15 05:05:15'),(45083,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025105476379395','192.168.1.254','2019-06-15 05:05:15'),(45084,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025391578674316','192.168.1.254','2019-06-15 05:05:15'),(45085,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034713745117188','192.168.1.254','2019-06-15 05:05:15'),(45086,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0056569576263428','192.168.1.254','2019-06-15 05:05:15'),(45087,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0032088756561279','192.168.1.254','2019-06-15 05:05:15'),(45088,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038695335388184','192.168.1.254','2019-06-15 05:05:15'),(45089,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027918815612793','192.168.1.254','2019-06-15 05:05:15'),(45090,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025200843811035','192.168.1.254','2019-06-15 05:05:15'),(45091,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031399726867676','192.168.1.254','2019-06-15 05:05:15'),(45092,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052094459533691','192.168.1.254','2019-06-15 05:05:15'),(45093,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034904479980469','192.168.1.254','2019-06-15 05:05:15'),(45094,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054502487182617','192.168.1.254','2019-06-15 05:05:15'),(45095,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00061202049255371','192.168.1.254','2019-06-15 05:05:15'),(45096,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00065994262695312','192.168.1.254','2019-06-15 05:05:15'),(45097,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004429817199707','192.168.1.254','2019-06-15 05:05:15'),(45098,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044083595275879','192.168.1.254','2019-06-15 05:05:15'),(45099,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00062298774719238','192.168.1.254','2019-06-15 05:05:15'),(45100,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051116943359375','192.168.1.254','2019-06-15 05:05:15'),(45101,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050997734069824','192.168.1.254','2019-06-15 05:05:15'),(45102,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056099891662598','192.168.1.254','2019-06-15 05:05:15'),(45103,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041913986206055','192.168.1.254','2019-06-15 05:05:16'),(45104,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043010711669922','192.168.1.254','2019-06-15 05:05:16'),(45105,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040888786315918','192.168.1.254','2019-06-15 05:05:16'),(45106,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044417381286621','192.168.1.254','2019-06-15 05:05:16'),(45107,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00084018707275391','192.168.1.254','2019-06-15 05:05:16'),(45108,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00076699256896973','192.168.1.254','2019-06-15 05:05:16'),(45109,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00075411796569824','192.168.1.254','2019-06-15 05:05:16'),(45110,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00083613395690918','192.168.1.254','2019-06-15 05:05:16'),(45111,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.0003972053527832','192.168.1.254','2019-06-15 05:05:16'),(45112,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018968105316162','192.168.1.254','2019-06-15 05:06:19'),(45113,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041007995605469','192.168.1.254','2019-06-15 05:06:19'),(45114,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.001244068145752','192.168.1.254','2019-06-15 05:06:19'),(45115,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019828081130981','192.168.1.254','2019-06-15 05:06:19'),(45116,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004270076751709','192.168.1.254','2019-06-15 05:06:19'),(45117,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012960433959961','192.168.1.254','2019-06-15 05:06:19'),(45118,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019114971160889','192.168.1.254','2019-06-15 05:06:19'),(45119,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038504600524902','192.168.1.254','2019-06-15 05:06:19'),(45120,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012271404266357','192.168.1.254','2019-06-15 05:06:19'),(45121,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011999607086182','192.168.1.254','2019-06-15 05:06:19'),(45122,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.021021127700806','192.168.1.254','2019-06-15 05:06:19'),(45123,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027704238891602','192.168.1.254','2019-06-15 05:06:19'),(45124,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033020973205566','192.168.1.254','2019-06-15 05:06:19'),(45125,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003349781036377','192.168.1.254','2019-06-15 05:06:19'),(45126,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028014183044434','192.168.1.254','2019-06-15 05:06:19'),(45127,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044393539428711','192.168.1.254','2019-06-15 05:06:19'),(45128,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036406517028809','192.168.1.254','2019-06-15 05:06:19'),(45129,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003969669342041','192.168.1.254','2019-06-15 05:06:19'),(45130,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005340576171875','192.168.1.254','2019-06-15 05:06:19'),(45131,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042200088500977','192.168.1.254','2019-06-15 05:06:19'),(45132,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.02332615852356','192.168.1.254','2019-06-15 05:06:19'),(45133,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0080740451812744','192.168.1.254','2019-06-15 05:06:19'),(45134,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044798851013184','192.168.1.254','2019-06-15 05:06:19'),(45135,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052404403686523','192.168.1.254','2019-06-15 05:06:19'),(45136,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025415420532227','192.168.1.254','2019-06-15 05:06:19'),(45137,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025701522827148','192.168.1.254','2019-06-15 05:06:19'),(45138,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026106834411621','192.168.1.254','2019-06-15 05:06:19'),(45139,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023603439331055','192.168.1.254','2019-06-15 05:06:19'),(45140,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023007392883301','192.168.1.254','2019-06-15 05:06:19'),(45141,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034189224243164','192.168.1.254','2019-06-15 05:06:19'),(45142,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.005681037902832','192.168.1.254','2019-06-15 05:06:19'),(45143,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0028681755065918','192.168.1.254','2019-06-15 05:06:19'),(45144,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038409233093262','192.168.1.254','2019-06-15 05:06:19'),(45145,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025606155395508','192.168.1.254','2019-06-15 05:06:19'),(45146,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00028300285339355','192.168.1.254','2019-06-15 05:06:19'),(45147,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027704238891602','192.168.1.254','2019-06-15 05:06:19'),(45148,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00048422813415527','192.168.1.254','2019-06-15 05:06:19'),(45149,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033688545227051','192.168.1.254','2019-06-15 05:06:19'),(45150,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031399726867676','192.168.1.254','2019-06-15 05:06:19'),(45151,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050592422485352','192.168.1.254','2019-06-15 05:06:19'),(45152,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051498413085938','192.168.1.254','2019-06-15 05:06:19'),(45153,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041294097900391','192.168.1.254','2019-06-15 05:06:19'),(45154,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044894218444824','192.168.1.254','2019-06-15 05:06:19'),(45155,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00055098533630371','192.168.1.254','2019-06-15 05:06:19'),(45156,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046992301940918','192.168.1.254','2019-06-15 05:06:19'),(45157,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043582916259766','192.168.1.254','2019-06-15 05:06:19'),(45158,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054478645324707','192.168.1.254','2019-06-15 05:06:20'),(45159,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00047802925109863','192.168.1.254','2019-06-15 05:06:20'),(45160,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042891502380371','192.168.1.254','2019-06-15 05:06:20'),(45161,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004580020904541','192.168.1.254','2019-06-15 05:06:20'),(45162,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004580020904541','192.168.1.254','2019-06-15 05:06:20'),(45163,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00088286399841309','192.168.1.254','2019-06-15 05:06:20'),(45164,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00081896781921387','192.168.1.254','2019-06-15 05:06:20'),(45165,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00084781646728516','192.168.1.254','2019-06-15 05:06:20'),(45166,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00076484680175781','192.168.1.254','2019-06-15 05:06:20'),(45167,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00044989585876465','192.168.1.254','2019-06-15 05:06:20'),(45168,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019073963165283','192.168.1.254','2019-06-15 05:08:12'),(45169,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00041818618774414','192.168.1.254','2019-06-15 05:08:12'),(45170,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.001370906829834','192.168.1.254','2019-06-15 05:08:12'),(45171,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.021265983581543','192.168.1.254','2019-06-15 05:08:12'),(45172,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00037217140197754','192.168.1.254','2019-06-15 05:08:12'),(45173,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013659000396729','192.168.1.254','2019-06-15 05:08:12'),(45174,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019766092300415','192.168.1.254','2019-06-15 05:08:12'),(45175,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00033998489379883','192.168.1.254','2019-06-15 05:08:12'),(45176,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0012788772583008','192.168.1.254','2019-06-15 05:08:12'),(45177,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00052094459533691','192.168.1.254','2019-06-15 05:08:12'),(45178,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00029277801513672','192.168.1.254','2019-06-15 05:08:12'),(45179,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00059819221496582','192.168.1.254','2019-06-15 05:08:12'),(45180,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.030937194824219','192.168.1.254','2019-06-15 05:08:12'),(45181,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0051059722900391','192.168.1.254','2019-06-15 05:08:12'),(45182,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0019609928131104','192.168.1.254','2019-06-15 05:08:12'),(45183,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.020586013793945','192.168.1.254','2019-06-15 05:08:12'),(45184,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.0003058910369873','192.168.1.254','2019-06-15 05:08:12'),(45185,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00052213668823242','192.168.1.254','2019-06-15 05:08:12'),(45186,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0021240711212158','192.168.1.254','2019-06-15 05:08:12'),(45187,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0048809051513672','192.168.1.254','2019-06-15 05:08:12'),(45188,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.020973920822144','192.168.1.254','2019-06-15 05:08:12'),(45189,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020859241485596','192.168.1.254','2019-06-15 05:08:12'),(45190,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.025514125823975','192.168.1.254','2019-06-15 05:08:12'),(45191,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00056886672973633','192.168.1.254','2019-06-15 05:08:12'),(45192,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00092101097106934','192.168.1.254','2019-06-15 05:08:12'),(45193,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00086307525634766','192.168.1.254','2019-06-15 05:08:12'),(45194,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.0008399486541748','192.168.1.254','2019-06-15 05:08:12'),(45195,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00084018707275391','192.168.1.254','2019-06-15 05:08:12'),(45196,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00033712387084961','192.168.1.254','2019-06-15 05:08:12'),(45197,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.01928186416626','192.168.1.254','2019-06-15 05:08:15'),(45198,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042605400085449','192.168.1.254','2019-06-15 05:08:15'),(45199,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012578964233398','192.168.1.254','2019-06-15 05:08:15'),(45200,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019735097885132','192.168.1.254','2019-06-15 05:08:16'),(45201,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035309791564941','192.168.1.254','2019-06-15 05:08:16'),(45202,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011970996856689','192.168.1.254','2019-06-15 05:08:16'),(45203,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019363880157471','192.168.1.254','2019-06-15 05:08:16'),(45204,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037002563476562','192.168.1.254','2019-06-15 05:08:16'),(45205,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012009143829346','192.168.1.254','2019-06-15 05:08:16'),(45206,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011260509490967','192.168.1.254','2019-06-15 05:08:16'),(45207,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019826173782349','192.168.1.254','2019-06-15 05:08:16'),(45208,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029492378234863','192.168.1.254','2019-06-15 05:08:16'),(45209,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025796890258789','192.168.1.254','2019-06-15 05:08:16'),(45210,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024700164794922','192.168.1.254','2019-06-15 05:08:16'),(45211,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023913383483887','192.168.1.254','2019-06-15 05:08:16'),(45212,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038909912109375','192.168.1.254','2019-06-15 05:08:16'),(45213,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003349781036377','192.168.1.254','2019-06-15 05:08:16'),(45214,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037384033203125','192.168.1.254','2019-06-15 05:08:16'),(45215,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052189826965332','192.168.1.254','2019-06-15 05:08:16'),(45216,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033879280090332','192.168.1.254','2019-06-15 05:08:16'),(45217,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.02498197555542','192.168.1.254','2019-06-15 05:08:16'),(45218,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0069730281829834','192.168.1.254','2019-06-15 05:08:16'),(45219,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040793418884277','192.168.1.254','2019-06-15 05:08:16'),(45220,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052404403686523','192.168.1.254','2019-06-15 05:08:16'),(45221,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025105476379395','192.168.1.254','2019-06-15 05:08:16'),(45222,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025010108947754','192.168.1.254','2019-06-15 05:08:16'),(45223,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024199485778809','192.168.1.254','2019-06-15 05:08:16'),(45224,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023603439331055','192.168.1.254','2019-06-15 05:08:16'),(45225,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023508071899414','192.168.1.254','2019-06-15 05:08:16'),(45226,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032901763916016','192.168.1.254','2019-06-15 05:08:16'),(45227,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0056219100952148','192.168.1.254','2019-06-15 05:08:16'),(45228,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0032570362091064','192.168.1.254','2019-06-15 05:08:16'),(45229,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004119873046875','192.168.1.254','2019-06-15 05:08:16'),(45230,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026416778564453','192.168.1.254','2019-06-15 05:08:16'),(45231,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027298927307129','192.168.1.254','2019-06-15 05:08:16'),(45232,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026798248291016','192.168.1.254','2019-06-15 05:08:16'),(45233,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051093101501465','192.168.1.254','2019-06-15 05:08:16'),(45234,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033712387084961','192.168.1.254','2019-06-15 05:08:16'),(45235,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031614303588867','192.168.1.254','2019-06-15 05:08:16'),(45236,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005180835723877','192.168.1.254','2019-06-15 05:08:16'),(45237,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053501129150391','192.168.1.254','2019-06-15 05:08:16'),(45238,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044488906860352','192.168.1.254','2019-06-15 05:08:16'),(45239,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043201446533203','192.168.1.254','2019-06-15 05:08:16'),(45240,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054001808166504','192.168.1.254','2019-06-15 05:08:16'),(45241,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051283836364746','192.168.1.254','2019-06-15 05:08:16'),(45242,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052595138549805','192.168.1.254','2019-06-15 05:08:16'),(45243,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00055408477783203','192.168.1.254','2019-06-15 05:08:16'),(45244,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00045394897460938','192.168.1.254','2019-06-15 05:08:16'),(45245,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040507316589355','192.168.1.254','2019-06-15 05:08:17'),(45246,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039410591125488','192.168.1.254','2019-06-15 05:08:17'),(45247,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042104721069336','192.168.1.254','2019-06-15 05:08:17'),(45248,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00087499618530273','192.168.1.254','2019-06-15 05:08:17'),(45249,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00079607963562012','192.168.1.254','2019-06-15 05:08:17'),(45250,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00078010559082031','192.168.1.254','2019-06-15 05:08:17'),(45251,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00076699256896973','192.168.1.254','2019-06-15 05:08:17'),(45252,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00046491622924805','192.168.1.254','2019-06-15 05:08:17'),(45253,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018838882446289','192.168.1.254','2019-06-15 05:08:36'),(45254,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040388107299805','192.168.1.254','2019-06-15 05:08:36'),(45255,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012388229370117','192.168.1.254','2019-06-15 05:08:36'),(45256,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019196033477783','192.168.1.254','2019-06-15 05:08:36'),(45257,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037693977355957','192.168.1.254','2019-06-15 05:08:36'),(45258,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012540817260742','192.168.1.254','2019-06-15 05:08:36'),(45259,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.01880407333374','192.168.1.254','2019-06-15 05:08:36'),(45260,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035691261291504','192.168.1.254','2019-06-15 05:08:36'),(45261,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011649131774902','192.168.1.254','2019-06-15 05:08:36'),(45262,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012788772583008','192.168.1.254','2019-06-15 05:08:36'),(45263,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.020401000976562','192.168.1.254','2019-06-15 05:08:37'),(45264,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033187866210938','192.168.1.254','2019-06-15 05:08:37'),(45265,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0002899169921875','192.168.1.254','2019-06-15 05:08:37'),(45266,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029397010803223','192.168.1.254','2019-06-15 05:08:37'),(45267,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033402442932129','192.168.1.254','2019-06-15 05:08:37'),(45268,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00043606758117676','192.168.1.254','2019-06-15 05:08:37'),(45269,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003349781036377','192.168.1.254','2019-06-15 05:08:37'),(45270,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035691261291504','192.168.1.254','2019-06-15 05:08:37'),(45271,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054001808166504','192.168.1.254','2019-06-15 05:08:37'),(45272,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033903121948242','192.168.1.254','2019-06-15 05:08:37'),(45273,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.026876926422119','192.168.1.254','2019-06-15 05:08:37'),(45274,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0028131008148193','192.168.1.254','2019-06-15 05:08:37'),(45275,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040388107299805','192.168.1.254','2019-06-15 05:08:37'),(45276,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052118301391602','192.168.1.254','2019-06-15 05:08:37'),(45277,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025010108947754','192.168.1.254','2019-06-15 05:08:37'),(45278,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023913383483887','192.168.1.254','2019-06-15 05:08:37'),(45279,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023889541625977','192.168.1.254','2019-06-15 05:08:37'),(45280,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023007392883301','192.168.1.254','2019-06-15 05:08:37'),(45281,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0002281665802002','192.168.1.254','2019-06-15 05:08:37'),(45282,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003359317779541','192.168.1.254','2019-06-15 05:08:37'),(45283,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0056071281433105','192.168.1.254','2019-06-15 05:08:37'),(45284,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0031359195709229','192.168.1.254','2019-06-15 05:08:37'),(45285,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039386749267578','192.168.1.254','2019-06-15 05:08:37'),(45286,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029206275939941','192.168.1.254','2019-06-15 05:08:37'),(45287,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026702880859375','192.168.1.254','2019-06-15 05:08:37'),(45288,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027799606323242','192.168.1.254','2019-06-15 05:08:37'),(45289,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049185752868652','192.168.1.254','2019-06-15 05:08:37'),(45290,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032997131347656','192.168.1.254','2019-06-15 05:08:37'),(45291,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00031495094299316','192.168.1.254','2019-06-15 05:08:37'),(45292,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049996376037598','192.168.1.254','2019-06-15 05:08:37'),(45293,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00058698654174805','192.168.1.254','2019-06-15 05:08:37'),(45294,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00057291984558105','192.168.1.254','2019-06-15 05:08:37'),(45295,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041103363037109','192.168.1.254','2019-06-15 05:08:37'),(45296,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005037784576416','192.168.1.254','2019-06-15 05:08:37'),(45297,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051307678222656','192.168.1.254','2019-06-15 05:08:37'),(45298,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046396255493164','192.168.1.254','2019-06-15 05:08:37'),(45299,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056600570678711','192.168.1.254','2019-06-15 05:08:37'),(45300,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044894218444824','192.168.1.254','2019-06-15 05:08:37'),(45301,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042605400085449','192.168.1.254','2019-06-15 05:08:37'),(45302,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004119873046875','192.168.1.254','2019-06-15 05:08:37'),(45303,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044894218444824','192.168.1.254','2019-06-15 05:08:37'),(45304,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00083589553833008','192.168.1.254','2019-06-15 05:08:37'),(45305,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00078916549682617','192.168.1.254','2019-06-15 05:08:37'),(45306,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0007789134979248','192.168.1.254','2019-06-15 05:08:37'),(45307,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0007779598236084','192.168.1.254','2019-06-15 05:08:37'),(45308,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00046801567077637','192.168.1.254','2019-06-15 05:08:37'),(45309,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018617868423462','192.168.1.254','2019-06-15 05:10:04'),(45310,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00041103363037109','192.168.1.254','2019-06-15 05:10:04'),(45311,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013589859008789','192.168.1.254','2019-06-15 05:10:04'),(45312,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019068956375122','192.168.1.254','2019-06-15 05:10:04'),(45313,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00037002563476562','192.168.1.254','2019-06-15 05:10:04'),(45314,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013289451599121','192.168.1.254','2019-06-15 05:10:04'),(45315,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018767118453979','192.168.1.254','2019-06-15 05:10:04'),(45316,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00037193298339844','192.168.1.254','2019-06-15 05:10:04'),(45317,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013220310211182','192.168.1.254','2019-06-15 05:10:04'),(45318,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00056600570678711','192.168.1.254','2019-06-15 05:10:04'),(45319,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00030708312988281','192.168.1.254','2019-06-15 05:10:04'),(45320,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00060009956359863','192.168.1.254','2019-06-15 05:10:04'),(45321,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.027138948440552','192.168.1.254','2019-06-15 05:10:04'),(45322,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.010152816772461','192.168.1.254','2019-06-15 05:10:04'),(45323,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0019619464874268','192.168.1.254','2019-06-15 05:10:04'),(45324,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019642114639282','192.168.1.254','2019-06-15 05:10:04'),(45325,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00034904479980469','192.168.1.254','2019-06-15 05:10:04'),(45326,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00056099891662598','192.168.1.254','2019-06-15 05:10:04'),(45327,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0022649765014648','192.168.1.254','2019-06-15 05:10:04'),(45328,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0087459087371826','192.168.1.254','2019-06-15 05:10:04'),(45329,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019548892974854','192.168.1.254','2019-06-15 05:10:04'),(45330,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019400119781494','192.168.1.254','2019-06-15 05:10:04'),(45331,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.027118921279907','192.168.1.254','2019-06-15 05:10:04'),(45332,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00056695938110352','192.168.1.254','2019-06-15 05:10:04'),(45333,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00084710121154785','192.168.1.254','2019-06-15 05:10:04'),(45334,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00083494186401367','192.168.1.254','2019-06-15 05:10:04'),(45335,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00081205368041992','192.168.1.254','2019-06-15 05:10:04'),(45336,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00086712837219238','192.168.1.254','2019-06-15 05:10:04'),(45337,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00046110153198242','192.168.1.254','2019-06-15 05:10:04'),(45338,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.020303010940552','192.168.1.254','2019-06-15 05:10:33'),(45339,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00043797492980957','192.168.1.254','2019-06-15 05:10:33'),(45340,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013968944549561','192.168.1.254','2019-06-15 05:10:33'),(45341,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019887208938599','192.168.1.254','2019-06-15 05:10:33'),(45342,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00036883354187012','192.168.1.254','2019-06-15 05:10:33'),(45343,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.001338005065918','192.168.1.254','2019-06-15 05:10:33'),(45344,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019970178604126','192.168.1.254','2019-06-15 05:10:33'),(45345,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00037312507629395','192.168.1.254','2019-06-15 05:10:33'),(45346,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013539791107178','192.168.1.254','2019-06-15 05:10:33'),(45347,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00056004524230957','192.168.1.254','2019-06-15 05:10:33'),(45348,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00030016899108887','192.168.1.254','2019-06-15 05:10:33'),(45349,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.0006561279296875','192.168.1.254','2019-06-15 05:10:33'),(45350,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.032368898391724','192.168.1.254','2019-06-15 05:10:33'),(45351,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0080080032348633','192.168.1.254','2019-06-15 05:10:33'),(45352,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.002112865447998','192.168.1.254','2019-06-15 05:10:33'),(45353,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.017102003097534','192.168.1.254','2019-06-15 05:10:33'),(45354,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00031208992004395','192.168.1.254','2019-06-15 05:10:33'),(45355,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00053000450134277','192.168.1.254','2019-06-15 05:10:33'),(45356,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019810199737549','192.168.1.254','2019-06-15 05:10:33'),(45357,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0079038143157959','192.168.1.254','2019-06-15 05:10:33'),(45358,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.020809173583984','192.168.1.254','2019-06-15 05:10:33'),(45359,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020549297332764','192.168.1.254','2019-06-15 05:10:33'),(45360,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.025667905807495','192.168.1.254','2019-06-15 05:10:33'),(45361,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.0005800724029541','192.168.1.254','2019-06-15 05:10:33'),(45362,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00092005729675293','192.168.1.254','2019-06-15 05:10:33'),(45363,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00089406967163086','192.168.1.254','2019-06-15 05:10:33'),(45364,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00084614753723145','192.168.1.254','2019-06-15 05:10:34'),(45365,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00083708763122559','192.168.1.254','2019-06-15 05:10:34'),(45366,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00044584274291992','192.168.1.254','2019-06-15 05:10:34'),(45367,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018784046173096','192.168.1.254','2019-06-15 05:10:50'),(45368,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00040984153747559','192.168.1.254','2019-06-15 05:10:50'),(45369,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.001378059387207','192.168.1.254','2019-06-15 05:10:50'),(45370,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019670009613037','192.168.1.254','2019-06-15 05:10:50'),(45371,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00035405158996582','192.168.1.254','2019-06-15 05:10:50'),(45372,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0012679100036621','192.168.1.254','2019-06-15 05:10:50'),(45373,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018547058105469','192.168.1.254','2019-06-15 05:10:50'),(45374,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00038599967956543','192.168.1.254','2019-06-15 05:10:50'),(45375,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.00130295753479','192.168.1.254','2019-06-15 05:10:50'),(45376,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00056219100952148','192.168.1.254','2019-06-15 05:10:50'),(45377,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00034594535827637','192.168.1.254','2019-06-15 05:10:50'),(45378,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.0006098747253418','192.168.1.254','2019-06-15 05:10:50'),(45379,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.031453132629395','192.168.1.254','2019-06-15 05:10:50'),(45380,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0085289478302002','192.168.1.254','2019-06-15 05:10:50'),(45381,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0020279884338379','192.168.1.254','2019-06-15 05:10:50'),(45382,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.01944899559021','192.168.1.254','2019-06-15 05:10:50'),(45383,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00031590461730957','192.168.1.254','2019-06-15 05:10:50'),(45384,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00056600570678711','192.168.1.254','2019-06-15 05:10:50'),(45385,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019819736480713','192.168.1.254','2019-06-15 05:10:50'),(45386,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0072400569915771','192.168.1.254','2019-06-15 05:10:50'),(45387,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.018869876861572','192.168.1.254','2019-06-15 05:10:51'),(45388,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.001957893371582','192.168.1.254','2019-06-15 05:10:51'),(45389,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.022500038146973','192.168.1.254','2019-06-15 05:10:51'),(45390,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00050592422485352','192.168.1.254','2019-06-15 05:10:51'),(45391,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.0010011196136475','192.168.1.254','2019-06-15 05:10:51'),(45392,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.0010719299316406','192.168.1.254','2019-06-15 05:10:51'),(45393,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00087714195251465','192.168.1.254','2019-06-15 05:10:51'),(45394,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00082588195800781','192.168.1.254','2019-06-15 05:10:51'),(45395,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00046396255493164','192.168.1.254','2019-06-15 05:10:51'),(45396,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019330024719238','192.168.1.254','2019-06-15 05:11:23'),(45397,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00042414665222168','192.168.1.254','2019-06-15 05:11:23'),(45398,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013940334320068','192.168.1.254','2019-06-15 05:11:23'),(45399,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019083023071289','192.168.1.254','2019-06-15 05:11:23'),(45400,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00035691261291504','192.168.1.254','2019-06-15 05:11:23'),(45401,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013530254364014','192.168.1.254','2019-06-15 05:11:23'),(45402,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019151926040649','192.168.1.254','2019-06-15 05:11:23'),(45403,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00040411949157715','192.168.1.254','2019-06-15 05:11:23'),(45404,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.001309871673584','192.168.1.254','2019-06-15 05:11:23'),(45405,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00054287910461426','192.168.1.254','2019-06-15 05:11:23'),(45406,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00033092498779297','192.168.1.254','2019-06-15 05:11:23'),(45407,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00058984756469727','192.168.1.254','2019-06-15 05:11:23'),(45408,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.031328201293945','192.168.1.254','2019-06-15 05:11:23'),(45409,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0079870223999023','192.168.1.254','2019-06-15 05:11:23'),(45410,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.001971960067749','192.168.1.254','2019-06-15 05:11:23'),(45411,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019030809402466','192.168.1.254','2019-06-15 05:11:23'),(45412,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00028896331787109','192.168.1.254','2019-06-15 05:11:23'),(45413,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00052595138549805','192.168.1.254','2019-06-15 05:11:23'),(45414,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019900798797607','192.168.1.254','2019-06-15 05:11:23'),(45415,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0068581104278564','192.168.1.254','2019-06-15 05:11:23'),(45416,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019336938858032','192.168.1.254','2019-06-15 05:11:23'),(45417,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019450187683105','192.168.1.254','2019-06-15 05:11:23'),(45418,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.022659063339233','192.168.1.254','2019-06-15 05:11:23'),(45419,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00051093101501465','192.168.1.254','2019-06-15 05:11:23'),(45420,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00088119506835938','192.168.1.254','2019-06-15 05:11:23'),(45421,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00083398818969727','192.168.1.254','2019-06-15 05:11:23'),(45422,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00081205368041992','192.168.1.254','2019-06-15 05:11:23'),(45423,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00081086158752441','192.168.1.254','2019-06-15 05:11:23'),(45424,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00043702125549316','192.168.1.254','2019-06-15 05:11:23'),(45425,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019812822341919','192.168.1.254','2019-06-15 05:13:44'),(45426,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00041389465332031','192.168.1.254','2019-06-15 05:13:44'),(45427,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0014150142669678','192.168.1.254','2019-06-15 05:13:44'),(45428,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019747018814087','192.168.1.254','2019-06-15 05:13:44'),(45429,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00040602684020996','192.168.1.254','2019-06-15 05:13:44'),(45430,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013670921325684','192.168.1.254','2019-06-15 05:13:44'),(45431,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019134044647217','192.168.1.254','2019-06-15 05:13:44'),(45432,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00042510032653809','192.168.1.254','2019-06-15 05:13:44'),(45433,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0015280246734619','192.168.1.254','2019-06-15 05:13:44'),(45434,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00060677528381348','192.168.1.254','2019-06-15 05:13:44'),(45435,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00033283233642578','192.168.1.254','2019-06-15 05:13:44'),(45436,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.000701904296875','192.168.1.254','2019-06-15 05:13:44'),(45437,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.029500007629395','192.168.1.254','2019-06-15 05:13:44'),(45438,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0070698261260986','192.168.1.254','2019-06-15 05:13:44'),(45439,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0019619464874268','192.168.1.254','2019-06-15 05:13:44'),(45440,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019790172576904','192.168.1.254','2019-06-15 05:13:44'),(45441,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00031685829162598','192.168.1.254','2019-06-15 05:13:44'),(45442,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.0005500316619873','192.168.1.254','2019-06-15 05:13:44'),(45443,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020499229431152','192.168.1.254','2019-06-15 05:13:44'),(45444,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0051379203796387','192.168.1.254','2019-06-15 05:13:44'),(45445,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019991159439087','192.168.1.254','2019-06-15 05:13:44'),(45446,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020270347595215','192.168.1.254','2019-06-15 05:13:44'),(45447,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.024597883224487','192.168.1.254','2019-06-15 05:13:44'),(45448,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00054788589477539','192.168.1.254','2019-06-15 05:13:44'),(45449,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.0009000301361084','192.168.1.254','2019-06-15 05:13:44'),(45450,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00084400177001953','192.168.1.254','2019-06-15 05:13:44'),(45451,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00090193748474121','192.168.1.254','2019-06-15 05:13:44'),(45452,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00087594985961914','192.168.1.254','2019-06-15 05:13:44'),(45453,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00031495094299316','192.168.1.254','2019-06-15 05:13:44'),(45454,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019052028656006','192.168.1.254','2019-06-15 05:13:46'),(45455,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040698051452637','192.168.1.254','2019-06-15 05:13:46'),(45456,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012431144714355','192.168.1.254','2019-06-15 05:13:46'),(45457,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.018939971923828','192.168.1.254','2019-06-15 05:13:46'),(45458,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00036406517028809','192.168.1.254','2019-06-15 05:13:46'),(45459,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011260509490967','192.168.1.254','2019-06-15 05:13:46'),(45460,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.017213821411133','192.168.1.254','2019-06-15 05:13:46'),(45461,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032806396484375','192.168.1.254','2019-06-15 05:13:47'),(45462,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0011749267578125','192.168.1.254','2019-06-15 05:13:47'),(45463,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012509822845459','192.168.1.254','2019-06-15 05:13:47'),(45464,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019912958145142','192.168.1.254','2019-06-15 05:13:47'),(45465,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032496452331543','192.168.1.254','2019-06-15 05:13:47'),(45466,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027084350585938','192.168.1.254','2019-06-15 05:13:47'),(45467,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00030899047851562','192.168.1.254','2019-06-15 05:13:47'),(45468,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025701522827148','192.168.1.254','2019-06-15 05:13:47'),(45469,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044703483581543','192.168.1.254','2019-06-15 05:13:47'),(45470,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032711029052734','192.168.1.254','2019-06-15 05:13:47'),(45471,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003659725189209','192.168.1.254','2019-06-15 05:13:47'),(45472,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053715705871582','192.168.1.254','2019-06-15 05:13:47'),(45473,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033402442932129','192.168.1.254','2019-06-15 05:13:47'),(45474,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.024399042129517','192.168.1.254','2019-06-15 05:13:47'),(45475,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.007288932800293','192.168.1.254','2019-06-15 05:13:47'),(45476,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046682357788086','192.168.1.254','2019-06-15 05:13:47'),(45477,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00059294700622559','192.168.1.254','2019-06-15 05:13:47'),(45478,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029993057250977','192.168.1.254','2019-06-15 05:13:47'),(45479,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00025391578674316','192.168.1.254','2019-06-15 05:13:47'),(45480,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026202201843262','192.168.1.254','2019-06-15 05:13:47'),(45481,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029301643371582','192.168.1.254','2019-06-15 05:13:47'),(45482,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027608871459961','192.168.1.254','2019-06-15 05:13:47'),(45483,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003509521484375','192.168.1.254','2019-06-15 05:13:47'),(45484,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0055270195007324','192.168.1.254','2019-06-15 05:13:47'),(45485,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0040988922119141','192.168.1.254','2019-06-15 05:13:47'),(45486,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051403045654297','192.168.1.254','2019-06-15 05:13:47'),(45487,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029206275939941','192.168.1.254','2019-06-15 05:13:47'),(45488,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00029110908508301','192.168.1.254','2019-06-15 05:13:47'),(45489,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00033307075500488','192.168.1.254','2019-06-15 05:13:47'),(45490,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053286552429199','192.168.1.254','2019-06-15 05:13:47'),(45491,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032210350036621','192.168.1.254','2019-06-15 05:13:47'),(45492,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00037193298339844','192.168.1.254','2019-06-15 05:13:47'),(45493,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00057506561279297','192.168.1.254','2019-06-15 05:13:47'),(45494,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00062108039855957','192.168.1.254','2019-06-15 05:13:47'),(45495,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046110153198242','192.168.1.254','2019-06-15 05:13:47'),(45496,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00044798851013184','192.168.1.254','2019-06-15 05:13:47'),(45497,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053596496582031','192.168.1.254','2019-06-15 05:13:47'),(45498,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00050592422485352','192.168.1.254','2019-06-15 05:13:47'),(45499,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052905082702637','192.168.1.254','2019-06-15 05:13:47'),(45500,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0005650520324707','192.168.1.254','2019-06-15 05:13:47'),(45501,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046300888061523','192.168.1.254','2019-06-15 05:13:47'),(45502,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00045514106750488','192.168.1.254','2019-06-15 05:13:47'),(45503,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00051307678222656','192.168.1.254','2019-06-15 05:13:47'),(45504,128,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00045394897460938','192.168.1.254','2019-06-15 05:13:47'),(45505,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00093507766723633','192.168.1.254','2019-06-15 05:13:47'),(45506,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00079107284545898','192.168.1.254','2019-06-15 05:13:48'),(45507,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00075507164001465','192.168.1.254','2019-06-15 05:13:48'),(45508,128,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'128\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00079011917114258','192.168.1.254','2019-06-15 05:13:48'),(45509,128,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/StaffProfile/new_action_type/3/\'\nWHERE id = 995','StaffProfile/new_action_type','0.00038886070251465','192.168.1.254','2019-06-15 05:13:48'),(45510,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018999814987183','192.168.1.254','2019-06-15 05:14:08'),(45511,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00040984153747559','192.168.1.254','2019-06-15 05:14:08'),(45512,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013761520385742','192.168.1.254','2019-06-15 05:14:09'),(45513,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019443988800049','192.168.1.254','2019-06-15 05:14:09'),(45514,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00036382675170898','192.168.1.254','2019-06-15 05:14:09'),(45515,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.001378059387207','192.168.1.254','2019-06-15 05:14:09'),(45516,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.019277095794678','192.168.1.254','2019-06-15 05:14:09'),(45517,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00037193298339844','192.168.1.254','2019-06-15 05:14:09'),(45518,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013010501861572','192.168.1.254','2019-06-15 05:14:09'),(45519,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00053596496582031','192.168.1.254','2019-06-15 05:14:09'),(45520,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00030398368835449','192.168.1.254','2019-06-15 05:14:09'),(45521,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00058794021606445','192.168.1.254','2019-06-15 05:14:09'),(45522,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.026445150375366','192.168.1.254','2019-06-15 05:14:09'),(45523,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0071520805358887','192.168.1.254','2019-06-15 05:14:09'),(45524,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0019721984863281','192.168.1.254','2019-06-15 05:14:09'),(45525,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019694089889526','192.168.1.254','2019-06-15 05:14:09'),(45526,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00030303001403809','192.168.1.254','2019-06-15 05:14:09'),(45527,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00061511993408203','192.168.1.254','2019-06-15 05:14:09'),(45528,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020380020141602','192.168.1.254','2019-06-15 05:14:09'),(45529,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0054280757904053','192.168.1.254','2019-06-15 05:14:09'),(45530,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019567966461182','192.168.1.254','2019-06-15 05:14:09'),(45531,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020151138305664','192.168.1.254','2019-06-15 05:14:09'),(45532,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.022679805755615','192.168.1.254','2019-06-15 05:14:09'),(45533,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00053620338439941','192.168.1.254','2019-06-15 05:14:09'),(45534,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00088596343994141','192.168.1.254','2019-06-15 05:14:09'),(45535,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00089287757873535','192.168.1.254','2019-06-15 05:14:09'),(45536,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.0008699893951416','192.168.1.254','2019-06-15 05:14:09'),(45537,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00089907646179199','192.168.1.254','2019-06-15 05:14:09'),(45538,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00045108795166016','192.168.1.254','2019-06-15 05:14:09'),(45539,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.01898193359375','192.168.1.254','2019-06-15 05:14:34'),(45540,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00035190582275391','192.168.1.254','2019-06-15 05:14:34'),(45541,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0012869834899902','192.168.1.254','2019-06-15 05:14:34'),(45542,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018877029418945','192.168.1.254','2019-06-15 05:14:34'),(45543,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00040102005004883','192.168.1.254','2019-06-15 05:14:34'),(45544,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013589859008789','192.168.1.254','2019-06-15 05:14:34'),(45545,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018635034561157','192.168.1.254','2019-06-15 05:14:34'),(45546,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00040102005004883','192.168.1.254','2019-06-15 05:14:34'),(45547,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013420581817627','192.168.1.254','2019-06-15 05:14:34'),(45548,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00060200691223145','192.168.1.254','2019-06-15 05:14:35'),(45549,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00038909912109375','192.168.1.254','2019-06-15 05:14:35'),(45550,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00065398216247559','192.168.1.254','2019-06-15 05:14:35'),(45551,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.030560970306396','192.168.1.254','2019-06-15 05:14:35'),(45552,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0049371719360352','192.168.1.254','2019-06-15 05:14:35'),(45553,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0019299983978271','192.168.1.254','2019-06-15 05:14:35'),(45554,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.0190269947052','192.168.1.254','2019-06-15 05:14:35'),(45555,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00029993057250977','192.168.1.254','2019-06-15 05:14:35'),(45556,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00055408477783203','192.168.1.254','2019-06-15 05:14:35'),(45557,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020639896392822','192.168.1.254','2019-06-15 05:14:35'),(45558,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0091230869293213','192.168.1.254','2019-06-15 05:14:35'),(45559,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019259929656982','192.168.1.254','2019-06-15 05:14:35'),(45560,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0019309520721436','192.168.1.254','2019-06-15 05:14:35'),(45561,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.025683164596558','192.168.1.254','2019-06-15 05:14:35'),(45562,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00056004524230957','192.168.1.254','2019-06-15 05:14:35'),(45563,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00088596343994141','192.168.1.254','2019-06-15 05:14:35'),(45564,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00089192390441895','192.168.1.254','2019-06-15 05:14:35'),(45565,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00088000297546387','192.168.1.254','2019-06-15 05:14:35'),(45566,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.0009009838104248','192.168.1.254','2019-06-15 05:14:35'),(45567,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00039482116699219','192.168.1.254','2019-06-15 05:14:35'),(45568,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.020235061645508','192.168.1.254','2019-06-15 05:14:52'),(45569,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00042080879211426','192.168.1.254','2019-06-15 05:14:52'),(45570,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0014441013336182','192.168.1.254','2019-06-15 05:14:52'),(45571,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.021312952041626','192.168.1.254','2019-06-15 05:14:52'),(45572,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.0003669261932373','192.168.1.254','2019-06-15 05:14:52'),(45573,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0013091564178467','192.168.1.254','2019-06-15 05:14:52'),(45574,23,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'23\'','/salihin-digital/hr/leave','0.018490791320801','192.168.1.254','2019-06-15 05:14:52'),(45575,23,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'23\'','/salihin-digital/hr/leave','0.00035595893859863','192.168.1.254','2019-06-15 05:14:52'),(45576,23,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'23\'','/salihin-digital/hr/leave','0.0012619495391846','192.168.1.254','2019-06-15 05:14:52'),(45577,23,NULL,'others','SELECT *\nFROM `hr__leave_type`\nWHERE `is_delete` =0','/salihin-digital/hr/leave','0.00053596496582031','192.168.1.254','2019-06-15 05:14:52'),(45578,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_period`','/salihin-digital/hr/leave','0.00030207633972168','192.168.1.254','2019-06-15 05:14:52'),(45579,23,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00056791305541992','192.168.1.254','2019-06-15 05:14:52'),(45580,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.031056880950928','192.168.1.254','2019-06-15 05:14:52'),(45581,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE 0 = \'a.status in (1,2)\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC','/salihin-digital/hr/leave','0.0055480003356934','192.168.1.254','2019-06-15 05:14:52'),(45582,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`is_delete` =0\nAND 0 = \'a.status in (1,2)\'\nAND `a`.`department_id` IS NULL\nAND   (\n(\'2019-06-15\' BETWEEN `a`.`date_from` AND a.date_to)\nOR (\'2019-06-22\' BETWEEN `a`.`date_from` and a.date_to)\nOR (`a`.`date_from` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\nOR (`a`.`date_to` BETWEEN \'2019-06-15\' AND \'2019-06-22\')\n )','/salihin-digital/hr/leave','0.0020139217376709','192.168.1.254','2019-06-15 05:14:52'),(45583,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019260168075562','192.168.1.254','2019-06-15 05:14:52'),(45584,23,NULL,'others','SELECT *\nFROM `hr__ref_leave_status`','/salihin-digital/hr/leave','0.00029802322387695','192.168.1.254','2019-06-15 05:14:52'),(45585,23,NULL,'others','SELECT (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019) as leaveTotal, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 1) as leavePending, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 2) as leaveApproved, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 3) as leaveRejected, (SELECT COUNT(*) FROM `hr__leave_application` WHERE `is_delete` = 0 AND user_id = 23 AND year(date_from) = 2019 AND `status` = 4) as leaveCancelled','/salihin-digital/hr/leave','0.00052404403686523','192.168.1.254','2019-06-15 05:14:52'),(45586,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` NOT IN(2, 4)\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.002126932144165','192.168.1.254','2019-06-15 05:14:52'),(45587,23,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`, `c`.`name` as `period_from`, `d`.`name` as `period_to`, `e`.`status` as `leave_status`, `f`.`name` as `leave_type`, `f`.`colour`, `f`.`code`, `g`.`name` as `user_name`, `h`.`file_name`, `h`.`file_location`, `k`.`name` as `relief_person`\nFROM `hr__leave_application` `a`\nJOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nJOIN `hr__ref_leave_period` `c` ON `c`.`id` = `a`.`period_from_id`\nJOIN `hr__ref_leave_period` `d` ON `d`.`id` = `a`.`period_to_id`\nJOIN `hr__ref_leave_status` `e` ON `e`.`id` = `a`.`status`\nJOIN `hr__leave_type` `f` ON `f`.`id` = `a`.`type_id`\nJOIN `user` `g` ON `g`.`id` = `a`.`user_id`\nLEFT JOIN `hr__leave_attachment` `h` ON `h`.`application_id` = `a`.`id`\nLEFT JOIN `user__employment_detail` `i` ON `a`.`user_id` = `i`.`user_id`\nLEFT JOIN `company__position` `j` ON `i`.`position_id` = `j`.`id`\nJOIN `user` `k` ON `k`.`id` = `a`.`absent_relief_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`status` ASC, `a`.`created_ts` DESC\n LIMIT 5','/salihin-digital/hr/leave','0.0096750259399414','192.168.1.254','2019-06-15 05:14:52'),(45588,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `d`.`title`, `e`.`position` as `position_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`, `m`.`duration` as `contract_term`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__contract_element` `m` ON `m`.`id` = `d`.`contract_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'23\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.019244909286499','192.168.1.254','2019-06-15 05:14:52'),(45589,23,NULL,'others','SELECT `a`.*, `b`.`code`, `b`.`name`, `d`.`name` as `departmentName`\nFROM `hr__leave_allocation` `a`\nJOIN `hr__leave_type` `b` ON `b`.`id` = `a`.`type_id`\nJOIN `user__employment_detail` `c` ON `c`.`user_id` = `a`.`user_id`\nJOIN `company__department` `d` ON `d`.`id` = `c`.`department_id`\nWHERE `a`.`user_id` = \'23\'\nAND `a`.`year` = \'2019\'\nAND `a`.`type_id` = 1\nAND `a`.`is_delete` =0\nORDER BY `a`.`year` DESC, `a`.`type_id` ASC','/salihin-digital/hr/leave','0.0020010471343994','192.168.1.254','2019-06-15 05:14:52'),(45590,23,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `e`.`parent_id` < 3\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/leave','0.022382020950317','192.168.1.254','2019-06-15 05:14:52'),(45591,23,NULL,'others','SELECT *\nFROM `module`\nWHERE `status` =0\nAND `is_delete` =0\nAND `parent_id` IS NULL\nORDER BY `name` ASC','/salihin-digital/hr/leave','0.00055408477783203','192.168.1.254','2019-06-15 05:14:52'),(45592,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'1\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00082492828369141','192.168.1.254','2019-06-15 05:14:52'),(45593,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'2\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00084090232849121','192.168.1.254','2019-06-15 05:14:52'),(45594,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'4\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.000823974609375','192.168.1.254','2019-06-15 05:14:52'),(45595,23,NULL,'others','SELECT `a`.*, `b`.`access_lvl`\nFROM `module` `a`\nJOIN `user__module_access` `b` ON `b`.`module_id` = `a`.`id`\nWHERE `module_id` = \'3\'\nAND `b`.`user_id` = \'23\'\nAND `b`.`status` =0\nORDER BY `name`','/salihin-digital/hr/leave','0.00081896781921387','192.168.1.254','2019-06-15 05:14:52'),(45596,23,NULL,'update','UPDATE `_log__user_session` SET `url_last` = \'hr/leave/\'\nWHERE id = 997','leave/index','0.00043320655822754','192.168.1.254','2019-06-15 05:14:52'),(45597,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0190110206604','192.168.1.254','2019-06-15 05:16:20'),(45598,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041604042053223','192.168.1.254','2019-06-15 05:16:20'),(45599,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012581348419189','192.168.1.254','2019-06-15 05:16:20'),(45600,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019345998764038','192.168.1.254','2019-06-15 05:16:20'),(45601,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00039505958557129','192.168.1.254','2019-06-15 05:16:20'),(45602,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012979507446289','192.168.1.254','2019-06-15 05:16:20'),(45603,128,NULL,'others','SELECT `a`.*, `b`.`position` as `position_name`, `c`.`name` as `department_name`, `d`.`name` as `branch_name`, `c`.`branch_id`\nFROM `user__employment_detail` `a`\nLEFT JOIN `company__position` `b` ON `b`.`id` = `a`.`position_id`\nLEFT JOIN `company__department` `c` ON `a`.`department_id` = `c`.`id`\nLEFT JOIN `company__branch` `d` ON `d`.`id` = `c`.`branch_id`\nWHERE `a`.`id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0188307762146','192.168.1.254','2019-06-15 05:16:20'),(45604,128,NULL,'others','SELECT `id_token`\nFROM `user__login`\nWHERE `user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0003359317779541','192.168.1.254','2019-06-15 05:16:20'),(45605,128,NULL,'others','SELECT `a`.*, `b`.`name` as `module_name`\nFROM `user__module_access` `a`\nJOIN `module` `b` ON `a`.`module_id` = `b`.`id`\nJOIN `user` `c` ON `a`.`user_id` = `c`.`id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`user_id` = \'128\'','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0012190341949463','192.168.1.254','2019-06-15 05:16:20'),(45606,128,NULL,'others','SELECT `a`.*\nFROM `action_type_workflow` `a`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0010669231414795','192.168.1.254','2019-06-15 05:16:20'),(45607,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`position_id`, `e`.`position` as `position_name`, `i`.`position` as `position_category`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `j`.`gender`, `k`.`country`, `l`.`state`, `m`.`expired_date` as `passport_expired_date`, `m`.`working_expired_date` as `passport_working_expired_date`, `m`.`issue`, `n`.`country` as `issue_country`, `o`.`country` as `citizen`, `p`.`race` as `race`, `q`.`name` as `religion`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nLEFT JOIN `_ref__gender` `j` ON `j`.`id` = `a`.`gender_id`\nLEFT JOIN `_ref__country` `k` ON `k`.`id` = `a`.`country_id`\nLEFT JOIN `_ref__state` `l` ON `l`.`id` = `a`.`state_id`\nLEFT JOIN `user__passport` `m` ON `m`.`staff_id` = `a`.`id`\nLEFT JOIN `_ref__country` `n` ON `m`.`issue` = `n`.`id`\nLEFT JOIN `_ref__country` `o` ON `o`.`id` = `a`.`citizen_id`\nLEFT JOIN `_ref__race` `p` ON `p`.`id` = `a`.`race_id`\nLEFT JOIN `_ref__religion` `q` ON `q`.`id` = `a`.`religion_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nAND `a`.`id` = \'3\'\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.019316911697388','192.168.1.254','2019-06-15 05:16:20'),(45608,128,NULL,'others','SELECT *\nFROM `_ref__title`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032281875610352','192.168.1.254','2019-06-15 05:16:20'),(45609,128,NULL,'others','SELECT *\nFROM `_ref__gender`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026988983154297','192.168.1.254','2019-06-15 05:16:20'),(45610,128,NULL,'others','SELECT *\nFROM `_ref__religion`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026702880859375','192.168.1.254','2019-06-15 05:16:20'),(45611,128,NULL,'others','SELECT *\nFROM `_ref__race`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00023198127746582','192.168.1.254','2019-06-15 05:16:20'),(45612,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` !=0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00042080879211426','192.168.1.254','2019-06-15 05:16:20'),(45613,128,NULL,'others','SELECT *\nFROM `_ref__designation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032210350036621','192.168.1.254','2019-06-15 05:16:20'),(45614,128,NULL,'others','SELECT *\nFROM `company__position`\nWHERE `parent_id` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034403800964355','192.168.1.254','2019-06-15 05:16:20'),(45615,128,NULL,'others','SELECT `a`.*, `b`.`file_name`, `b`.`file_location`\nFROM `company` `a`\nLEFT JOIN `company__logo` `b` ON `b`.`id` = `a`.`main_logo_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00053787231445312','192.168.1.254','2019-06-15 05:16:20'),(45616,128,NULL,'others','SELECT *\nFROM `company__business_entity`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00032210350036621','192.168.1.254','2019-06-15 05:16:20'),(45617,128,NULL,'others','SELECT `a`.*, `b`.`username`, `c`.`file_name`, `c`.`file_location`, `d`.`id` as `employment_id`, `d`.`date_joined`, `d`.`date_commencement`, `d`.`date_termination`, `d`.`position_id`, `e`.`position` as `position_name`, `d`.`company_id`, `f`.`name` as `company_name`, `g`.`branch_id`, `h`.`name` as `branch_name`, `d`.`department_id`, `g`.`name` as `department_name`, `e`.`parent_id` as `position_category_id`, `i`.`position` as `position_category`\nFROM `user` `a`\nJOIN `user__login` `b` ON `b`.`user_id` = `a`.`id`\nLEFT JOIN `user__picture` `c` ON `a`.`profile_picture_id` = `c`.`id`\nLEFT JOIN `user__employment_detail` `d` ON `d`.`user_id` = `a`.`id`\nLEFT JOIN `company__position` `e` ON `d`.`position_id` = `e`.`id`\nLEFT JOIN `company` `f` ON `d`.`company_id` = `f`.`id`\nLEFT JOIN `company__department` `g` ON `d`.`department_id` = `g`.`id`\nLEFT JOIN `company__branch` `h` ON `g`.`branch_id` = `h`.`id`\nLEFT JOIN `company__position` `i` ON `e`.`parent_id` = `i`.`id`\nWHERE `d`.`position_id` < 13\nAND `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `a`.`name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.027644872665405','192.168.1.254','2019-06-15 05:16:20'),(45618,128,NULL,'others','SELECT `a`.*, `b`.`name` as `company_name`\nFROM `company__branch` `a`\nJOIN `company` `b` ON `b`.`id` = `a`.`company_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0072500705718994','192.168.1.254','2019-06-15 05:16:20'),(45619,128,NULL,'others','SELECT `a`.*, `b`.`name` as `dept_name`\nFROM `company__division` `a`\nLEFT JOIN `company__department` `b` ON `b`.`id` = `a`.`department_id`\nWHERE `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052714347839355','192.168.1.254','2019-06-15 05:16:20'),(45620,128,NULL,'others','SELECT `a`.*, `b`.`name` as `branch_name`, `c`.`name` as `hod_name`\nFROM `company__department` `a`\nJOIN `company__branch` `b` ON `b`.`id` = `a`.`branch_id`\nLEFT JOIN `user` `c` ON `c`.`id` = `a`.`hod_id`\nWHERE `a`.`status` =0\nAND `a`.`is_delete` =0\nORDER BY `name` ASC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00058102607727051','192.168.1.254','2019-06-15 05:16:20'),(45621,128,NULL,'others','SELECT *\nFROM `_ref__employee_group`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00030398368835449','192.168.1.254','2019-06-15 05:16:20'),(45622,128,NULL,'others','SELECT *\nFROM `_ref__employee_contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00030803680419922','192.168.1.254','2019-06-15 05:16:20'),(45623,128,NULL,'others','SELECT *\nFROM `_ref__contract_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00034403800964355','192.168.1.254','2019-06-15 05:16:20'),(45624,128,NULL,'others','SELECT *\nFROM `_ref__contract_confirmation`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026798248291016','192.168.1.254','2019-06-15 05:16:20'),(45625,128,NULL,'others','SELECT *\nFROM `_ref__hiring_reason`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00030112266540527','192.168.1.254','2019-06-15 05:16:21'),(45626,128,NULL,'others','SELECT *\nFROM `_ref__salary_scale`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00035405158996582','192.168.1.254','2019-06-15 05:16:21'),(45627,128,NULL,'others','SELECT *\nFROM `_ref__state`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0057468414306641','192.168.1.254','2019-06-15 05:16:21'),(45628,128,NULL,'others','SELECT *\nFROM `_ref__country`\nORDER BY `country`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0033419132232666','192.168.1.254','2019-06-15 05:16:21'),(45629,128,NULL,'others','SELECT *\nFROM `_ref__residence_type`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00041604042053223','192.168.1.254','2019-06-15 05:16:21'),(45630,128,NULL,'others','SELECT *\nFROM `_ref__relationship`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00024890899658203','192.168.1.254','2019-06-15 05:16:21'),(45631,128,NULL,'others','SELECT *\nFROM `_ref__academic`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00027894973754883','192.168.1.254','2019-06-15 05:16:21'),(45632,128,NULL,'others','SELECT *\nFROM `_ref__bank`','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00026822090148926','192.168.1.254','2019-06-15 05:16:21'),(45633,128,NULL,'others','SELECT `a`.*, `b`.`country` as `country_issue`\nFROM `user__profiling` `a`\nLEFT JOIN `_ref__country` `b` ON `b`.`id` = `a`.`place_issue`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nORDER BY `a`.`action_efective_date` DESC, `a`.`id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00056195259094238','192.168.1.254','2019-06-15 05:16:21'),(45634,128,NULL,'others','SELECT *\nFROM `_ref__action_type`\nWHERE `is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00038385391235352','192.168.1.254','2019-06-15 05:16:21'),(45635,128,NULL,'others','SELECT `a`.`id`\nFROM `user__profiling` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nORDER BY `a`.`action_efective_date` DESC, `id` DESC','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00040888786315918','192.168.1.254','2019-06-15 05:16:21'),(45636,128,NULL,'others','SELECT `a`.*, `b`.`relations`, `c`.`level` as `level_academic`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__family_member` `a`\nJOIN `_ref__relationship` `b` ON `b`.`id` = `a`.`relation`\nLEFT JOIN `_ref__academic` `c` ON `c`.`id` = `a`.`academic_lavel`\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__family_member` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00061702728271484','192.168.1.254','2019-06-15 05:16:21'),(45637,128,NULL,'others','SELECT `a`.*, `b`.`level` as `academic_level`, `c`.`id` as `attachment_id`, `c`.`attachment_name`, `c`.`location`, `c`.`file_type`, `c`.`file_ext`, `c`.`mask_id`, `d`.`action_efective_date`, `e`.`type` as `action_type`\nFROM `user__academic_qualification` `a`\nJOIN `_ref__academic` `b` ON `b`.`id` = `a`.`level_id`\nLEFT OUTER JOIN `user__academic_qualification_attachment` `c` ON `c`.`academic_qualification_id` = `a`.`id` and `c`.`is_delete` = 0\nLEFT JOIN `user__profiling` `d` ON `d`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `e` ON `e`.`id` = `d`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__academic_qualification` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00057792663574219','192.168.1.254','2019-06-15 05:16:21'),(45638,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__personal_attachment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__personal_attachment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00049805641174316','192.168.1.254','2019-06-15 05:16:21'),(45639,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__employment_history` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__employment_history` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\') ','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00074219703674316','192.168.1.254','2019-06-15 05:16:21'),(45640,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__profesional_membership` `a`\nLEFT JOIN `user__profesional_membership_attachment` `b` ON `b`.`professional_membership_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__profesional_membership` `a`\nWHERE `a`.`is_delete` =0\nAND `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00061583518981934','192.168.1.254','2019-06-15 05:16:21'),(45641,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__license` `a`\nLEFT JOIN `user__license_attachment` `b` ON `b`.`license_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__license` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00054383277893066','192.168.1.254','2019-06-15 05:16:21'),(45642,128,NULL,'others','SELECT `a`.*, `b`.`id` as `attachment_id`, `b`.`attachment_name`, `b`.`location`, `b`.`file_type`, `b`.`file_ext`, `b`.`mask_id`, `c`.`action_efective_date`, `d`.`type` as `action_type`\nFROM `user__recognition` `a`\nLEFT JOIN `user__recognition_attachment` `b` ON `b`.`recognition_id` = `a`.`id` and `b`.`is_delete` = 0\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recognition` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00052094459533691','192.168.1.254','2019-06-15 05:16:21'),(45643,128,NULL,'others','SELECT `a`.*, `b`.`name`, `c`.`action_efective_date`, `d`.`type` as `action_type`, `e`.`id` as `attachment_id`, `e`.`attachment_name`, `e`.`location`, `e`.`file_type`, `e`.`file_ext`, `e`.`mask_id`\nFROM `user__bank_detail` `a`\nJOIN `_ref__bank` `b` ON `b`.`id` = `a`.`bank_id`\nLEFT JOIN `user__profiling` `c` ON `c`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `d` ON `d`.`id` = `c`.`action_type_id`\nLEFT JOIN `user__bank_detail_attachment` `e` ON `e`.`bank_detail_id` = `a`.`id` and `e`.`is_delete` = 0\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__bank_detail` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00061988830566406','192.168.1.254','2019-06-15 05:16:21'),(45644,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__third_party_payment` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__third_party_payment` `a`\nWHERE `a`.`user_id` = \'3\'\nAND `a`.`is_delete` =0)','/salihin-digital/hr/StaffProfile/new_action_type/3','0.00046896934509277','192.168.1.254','2019-06-15 05:16:21'),(45645,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` =0\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004420280456543','192.168.1.254','2019-06-15 05:16:21'),(45646,128,NULL,'others','SELECT `a`.*, `b`.`action_efective_date`, `c`.`type` as `action_type`\nFROM `user__recurring` `a`\nLEFT JOIN `user__profiling` `b` ON `b`.`id` = `a`.`profiling_id`\nLEFT JOIN `_ref__action_type` `c` ON `c`.`id` = `b`.`action_type_id`\nWHERE `a`.`user_id` = \'3\'\nAND a.profiling_id IN (SELECT MAX(a.profiling_id)\nFROM `user__recurring` `a`\nWHERE `a`.`user_id` = \'3\')\nAND `a`.`recurring_type` = 1\nAND `a`.`is_delete` =0','/salihin-digital/hr/StaffProfile/new_action_type/3','0.0004889965057373','192.168.1.254','2019-06-15 05:16:21'),