$\newcommand{\End}{\operatorname{End}}$Consider an elliptic curve E defined over $\mathbb Q$ such that $\End(E_{\bar{\mathbb Q}})\neq \mathbb Z$ (i.e. with CM).
Let $F/\mathbb Q$ be finite Galois extension such that $\End(E_F)=\End(E_{\bar{\mathbb Q}})$ (i.e. all endomorphisms of $E$ are defined over $F$).
Let $A=\operatorname{Res}_{F/\mathbb Q}(E_F)$ be the abelian variety over $\mathbb Q$ given by the Weil restriction of the elliptic curve $E_F$ over $F$, and write $\End^0(-)$ for $\End(-)\otimes \mathbb Q$.
What is $\End^0(A)$?
Can one compute $\End^0(A)$ in terms of the imaginary quadratic field $K=\End^0(E_F)$?