import {
	WeaTools
} from 'ecCom'

export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/getRightMenu', 'POST', params);

export const getPrivacySettingList = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/getPrivacySettingList', 'POST', params);

export const savePrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/savePrivacySetting', 'POST', params);

export const batchPrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/batchPrivacySetting', 'POST', params);

export const saveBatchPrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/saveBatchPrivacySetting', 'POST', params);

export const syncPrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/syncPrivacySetting', 'POST', params);

export const initData = (params = {}) => Promise.all([getRightMenu(), getPrivacySettingList()]);