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BIERFIENWOwo4OCwgT1JHIEFERFJFU1M6PUZFTElYIENVRVZBUyBOTy4gMzY2LCBQSVNPIDYgQ09MT05JQTogVExBQ09RVUVNRUNBVEwuIERFTEVHQUNJCjg4LE9OIDogQkVOSVRPIEpVQVJFWiA7Cjg4LCBPUkcgRkkgSUQ6PUNJVElVUzMzWFhYOwo4OCwgQk5GIElEOj0zMzAwNjA0MDI2Owo4OCwgQk5GIE5BTUU6PUdVSURFV0lSRSBTT0ZUV0FSRSBJTkM7Cjg4LCBCTkYgQUREUkVTUzo9Mjg1MCBTT1VUSCBERUxBV0FSRSBTVFJFRVRTVUlURSA0MDBTQU4gTUFURU8sIENBIDk0NDAzOwo4OCwgUkVDIEZJOj1TSUwgVkxZIEJLIFNDTEE7Cjg4LCBSRUMgSUQ6PTEyMTE0MDM5OTsKNDksNjc1NDAwLDI5Lwo5OCw2NzU0MDAsMSwzMS8KOTksNjc1NDAwLDEsMzMvCg==",
      "kind": "binary",
      "properties": {

      },
      "mimeType": "text/plain"
    }
  },
  "fs": {
    "main.dwl": "%dw 2.0\noutput application/json\nfun getHeader() =(((payload splitBy  \"\\n\") filter ((item, index) ->  item startsWith   \"01\"))[0] splitBy  \",\")\n---\n{\nheaderInfo: {\n    senderId: getHeader()[1],\n    reciever: getHeader()[2],\n    creationDate: (getHeader()[3] as Date {format: \"yyMMdd\"} as String),\n    creationTime: getHeader()[4] as Number {format: \"00:##\"} as String,\n    fileId: getHeader()[5],\n    physicalRecordLength: getHeader()[6],\n    blockSize: getHeader()[7],\n    version: getHeader()[8][0 to -2] default \"\"\n    \n}\n}\n"
  }
}