Geometric Langlands correspondence for $\text{SL}(2)$ , $\text{PGL}(2)$ over the pair of pants