import { request, gateWay } from '@gm/graphmod-utils';

const {
  commonGet,
  commonPost,
  commonPut,
  formatUrl,
  completePrefix,
  commonDelete,
  formatObjUrl,
  fileDownload,
  buildPageable,
} = request;

export const UrlConsts =
{
    getSortSencesUrl: () => completePrefix()(gateWay.tool, 'v1/iot/View/select/all'),
};

export const getSortSences = (sences, miniSences) => {
  const formData = new window.FormData();
  formData.append('sences', sences)
  formData.append('miniSences', miniSences)
    return commonPost(UrlConsts.getSortSencesUrl(), formData );
  };

