class NotificationServiceImpl implements NotificationService,Constants {

	public Map<String,Object> getDeviceDetails(String deviceId) throws Exception{
		 Map<String, Object> mustFilter= new HashMap<>();
		 mustFilter.put("_id", deviceId);
		
		 List<Map<String,Object>> response =  elasticSearchRepository.getSortedDataFromES("pac_cache", "element", mustFilter, null, null, null,null, null);
		 if(null!=response) return response.get(0);
		 else
			  throw new Exception("no data found");
	}

}