From 25c388b6231d61472d947187f3aead799af96603 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Tue, 26 Jul 2016 18:02:31 +0700
Subject: [PATCH] sample config

---
 sample.config.im.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sample.config.ini     | 26 ++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 sample.config.im.json
 create mode 100644 sample.config.ini

diff --git a/sample.config.im.json b/sample.config.im.json
new file mode 100644
index 0000000..aa4c4d0
--- /dev/null
+++ b/sample.config.im.json
@@ -0,0 +1,50 @@
+{
+    "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"
+        }
+    ]
+}
diff --git a/sample.config.ini b/sample.config.ini
new file mode 100644
index 0000000..bce67fe
--- /dev/null
+++ b/sample.config.ini
@@ -0,0 +1,26 @@
+[globals]
+products=TST1
+gateway_name=NEOYM1
+aaa_host=http://127.0.0.1:4250
+interval=1000
+admin_port=17602
+apikey=123497
+redis_host=localhost
+redis_port=6379
+balance_regex=Saldo: Rp (\d+?)\.
+
+[h2h_out]
+ym_id=myymid
+ym_password=mypassword
+partner=partnerymid
+allow_response_from=partnerymid
+pin=1234
+request_pattern=[remoteProduct].[destination].[pin]
+
+[expresso]
+listen_port=19602
+password=0d6848d79e04dafc91d6d461a765d0558124081c60bdb23b79e2affaa3c452f8
+session_name=something.connect.sid
+
+[products]
+TST1=SS5
-- 
1.9.0