ArcGIS API for JavaScript: CIVIX/RWSS_Layers_Publish (FeatureServer)
Built using the ArcGIS API for JavaScript