I'm trying to access a webmap from our on-premise portal in a javascript app. Unfortunately, all of the examples in esri documentation are to access ArcGIS Online data. They say "You can also do this with onpremise portals" but there's exactly zero documentation or examples on how to do so. Does anyone have any code examples? I'm tearing my hair out trying to figure it out, but nothing I'm trying is working.