sample.config.im.json 1007 Bytes
{
    "sn_patterns": [
        {
            "pattern": "SN:\\s*(\\d+)\\.",
            "matchIndex": 1
        }
    ],
    "product_patterns": [
        {
            "pattern": "Pengisian (\\w+) ke",
            "matchIndex": 1
        },
        {
            "pattern": "(\\w+) ke\\.",
            "matchIndex": 1
        },
        {
            "pattern": " (\\w+)\\.\\d",
            "matchIndex": 1
        }
    ],
    "destination_patterns": [
        {
            "pattern": " ke\\s+(\\d+)",
            "matchIndex": 1
        },
        {
            "pattern": "\\.(\\d+) ",
            "matchIndex": 1
        }
    ],
    "response_codes": [
        {
            "pattern": "GAGAL. Nomor tujuan salah",
            "rc": "14"
        },
        {
            "pattern": "GAGAL",
            "rc": "40"
        },
        {
            "pattern": "SUKSES",
            "rc": "00"
        },
        {
            "pattern": "sdh pernah.*SN: \\d+",
            "rc": "00"
        }
    ]
}