!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","../../Errors","../../Validation","./ArcGisApiVersion","./tools"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("../../Errors"),r=e("../../Validation"),a=e("./ArcGisApiVersion"),c=e("./tools"),e=(i.prototype.execute=function(e,t){var i=r.validation.urlOrLayer(e,a.isArcGisApiVersion3x).trim(),n=r.validation.number("objectId",e.objectId,r.validation.never),e=r.validation.number("timeout",e.timeout,void 0),n=c.addToPath(i,n+"/attachments"),e=c.fetch(n,{},e,t.cancellationToken.signal);return c.schedulePromiseCancellation(t,e),c.inline(e,function(e){e=e.attachmentInfos;if(!e)throw new o.GenericActivityError('Error running the "Query Attachment Infos" activity. The response did not include the required "attachmentInfos" property.');return{infos:e}})},i.action="gcx:wf:arcgis::QueryAttachmentInfos",i.suite="gcx:wf:builtin",i);function i(){}t.QueryAttachmentInfos=e});