export function uploadDocument( files, isInitial, isReuploading = false) {
cons tauthorizationReducer = store.getState().authorizationReducer;
if (isInitial && authorizationReducer.uploadDocumentRequest) {
return { type: ADD_ADDITIONAL_DOCUMENTS_FOR_UPLOAD, files }
}
return {
type: UPLOAD_DOCUMENT, name, files, isInitial, isReuploading
};
}