}, attachments && attachments.length ? {
                    attachments: attachments.map(function (_ref2) {
                      var contentType = _ref2.contentType,
                        filename = _ref2.filename,
                        content = _ref2.content;