INSERT INTO TEMPLATE (ID, TYPE, PATH, CONTENT) VALUES (5, 'NOTIFY', '/db/notify/apns/netatmo.txt', '{
	"notifications":
	[
		{
			"tokens":[ [# th:each="TOKEN,iter : ${TOKENS}" ][# th:if="${iter.index}>0"] ,[/]"[(${TOKEN})]"[/] ],
			"platform":1,
			"data":{"aps":{"alert":{"loc-key":"[(${EVENT_TYPE})]","loc-args":["[(${STATION_NAME})]", "[(${EVENT_THRES})]"]}, "sound":"default"}},
			"priority":"high",
			"topic":"com.vestiacom.internetboxvoip",
			"sound":"default"
		}
	]
}');
INSERT INTO TEMPLATE (ID, TYPE, PATH, CONTENT) VALUES (6, 'NOTIFY', '/db/notify/gcm/netatmo.txt', '{
	"notifications":
	[
		{
			"tokens":[ [# th:each="TOKEN,iter : ${TOKENS}" ][# th:if="${iter.index}>0"] ,[/]"[(${TOKEN})]"[/] ],
			"platform":2,
			"data":{"eventType":"[(${EVENT_TYPE})]", "stationName":"[(${STATION_NAME})]", "eventThres":"[(${EVENT_THRES})]"},
			"priority":"high"
		}
	]
}');

INSERT INTO NOTIFY_TYPE (ID, TYPE, EVENT_NAME, ACTIVE, PLATFORM_ID, CONTENT_TEMPLATE_ID, TITLE_TEMPLATE_ID, REQUEST_URLS) VALUES (5, 'NETATMO', 'WEATHER', 1, 1, 5, null, 'http://195.186.164.201:8089/api/push;http://195.186.164.202:8089/api/push;http://195.186.164.203:8089/api/push;http://195.186.249.201:8089/api/push;http://195.186.249.202:8089/api/push;http://195.186.249.203:8089/api/push');
INSERT INTO NOTIFY_TYPE (ID, TYPE, EVENT_NAME, ACTIVE, PLATFORM_ID, CONTENT_TEMPLATE_ID, TITLE_TEMPLATE_ID, REQUEST_URLS) VALUES (6, 'NETATMO', 'WEATHER', 1, 2, 6, null, 'http://195.186.164.201:8089/api/push;http://195.186.164.202:8089/api/push;http://195.186.164.203:8089/api/push;http://195.186.249.201:8089/api/push;http://195.186.249.202:8089/api/push;http://195.186.249.203:8089/api/push');
COMMIT;
