Eden-Staudacher and Beisert-Eden-Staudacher equations in the $$\mathcal{N} = 4$$ supersymmetric gauge theory