{".rules":{".read":"true",".write":"state.auth && state.auth.username=='admin'",".download":"true",".upload":"state.auth && state.auth.username=='admin'",".execute":"state.auth && state.auth.username=='admin'","database.json":{".download":"state.auth && state.auth.username=='admin'"},"users":{"$user":{".read":"state.auth && (state.auth.username == $user || state.auth.username == 'admin')",".upload":"state.auth && state.auth.username == $user && path.indexOf('router.js')==-1","name":{".read":"true"},"status":{".read":"true"},"playing":{".read":"true"}}},"messages":{"$sender":{".read":"state.auth && (state.auth.username == $sender || root.child('users').child(state.auth.username).child('relations').child('friend').child($sender).exists() )","$receiver":{".read":"state.auth && (state.auth.username == $receiver || state.auth.username == $sender )"}}},"games":{"$game":{"scoreboards":{"$scoreboard":{".read":"true"}},"player_data":{"$player":{".read":"state.auth && state.auth.username == $player"}},"achievements":{"$achievement":{"earned_players":{"$player":{".read":"state.auth && state.auth.username == $player"}}}}}},"email_activation":{".read":"state.auth && state.auth.username=='admin'"},"emails":{".read":"state.auth && state.auth.username=='admin'"},".rules":{".read":"state.auth && state.auth.username=='admin'",".write":"state.auth && state.auth.username=='admin'"},".auth_keys":{".read":"state.auth && state.auth.username=='admin'",".write":"state.auth && state.auth.username=='admin'"}},"users":{"admin":{"note":"password is admin","password":"8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918"},"protouser":{"name":"Proto User","email":"protouser@protomail.com","status":"offline","ctime":0,"password":"8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918","playing":{"protogame":{"status":"owned","points":99995,"ctime":0,"ptime":0}},"relations":{"friend_request":{"protouser":{"since":0}},"block":{}},"notifications":{"0":{"type":"info","status":"unread","message":"welcome to custom store"},"length":1}},"facebook-943556145795683":{"name":"Faruk Can","email":"943556145795683@facebook.id","status":"offline","ctime":1514671100851,"password":"601facc8ee70541cde29af4bc5df1ce949fd64c42e4457eeb0efa2db733eb2ce","playing":{"protogame":{"status":"owned","points":99995,"ctime":0,"ptime":0}},"relations":{"friend_request":{"protouser":{"since":0}},"block":{}},"notifications":{"0":{"type":"info","status":"unread","message":"welcome to custom store"},"length":1}}},"messages":{"protouser":{"protouser":{"0":{"message":"hello to myself","time":0,"status":"unread"},"length":0}}},"news":{"0":{"title":"Big discount","type":"discount","message":"The Proto Game Discount!!!"},"length":1},"games":{"protogame":{"name":"The Proto Game","type":"arcade","priority":0,"description":"Proto Games is best game around world!","price":37.5,"time":0,"owner":"protouser","active":true,"settings":{},"player_data":{"protouser":{"data":0}},"scoreboards":{"level1_board":{"name":"Level 1 Score Board","description":"Level 1 is so cool yeah?","time":0,"scores":{"protouser":{"score":5000,"time":0}}}},"achievements":{"complete_all_levels":{"name":"Complate All Levels","description":"Game is so cool yeah?","time":0,"score":50,"earned_players":{"protouser":{"time":0}}}}}},"enum":{"game_types":{"arcade":{},"similation":{},"puzzle":{}},"game_status":{"playing":{},"owned":{},"installed":{},"uninstalled":{}}},"requests":{"farukbase_delete":{"name":"Farukbase DELETE","url":"/farukbase/delete/","sample":{"path":"/"},"schema":{"title":"DELETE","type":"object","properties":{"path":{"type":"string"}}}},"farukbase_fileinfo":{"name":"Farukbase File Info","url":"/farukbase/fileinfo/","sample":{"path":""},"schema":{"title":"GET","type":"object","properties":{"path":{"type":"string"}}}},"farukbase_get":{"name":"Farukbase GET","url":"/farukbase/get/","sample":{"path":"/"},"schema":{"title":"GET","type":"object","properties":{"path":{"type":"string"}}}},"farukbase_getkey":{"name":"Farukbase GET KEY","url":"/farukbase/getkey/","sample":{},"schema":{"title":"GET KEY","type":"object"}},"farukbase_insert":{"name":"Farukbase INSERT","url":"/farukbase/insert/","sample":{"path":"/","value":""},"schema":{"title":"INSERT","type":"object","properties":{"path":{"type":"string"},"value":{"title":"value"}}}},"farukbase_login":{"name":"Farukbase LOGIN","url":"/farukbase/login/","sample":{"username":"user","password":"password"},"schema":{"title":"LOGIN","type":"object","properties":{"username":{"title":"Username","type":"string"},"password":{"title":"Password","type":"string","format":"password"}}}},"farukbase_logout":{"name":"Farukbase LOGOUT","url":"/farukbase/logout/","sample":{},"schema":{"title":"LOGOUT","type":"object"}},"farukbase_setkey":{"name":"Farukbase SET KEY","url":"/farukbase/setkey/","sample":{"key":"6a2924e4accccf898c93cf501942d45738b72ee89a788c45a6460991e05e128f"},"schema":{"title":"SET KEY","type":"object","properties":{"key":{"title":"key","type":"string"}}}},"farukbase_update":{"name":"Farukbase UPDATE","url":"/farukbase/update/","sample":{"path":"/","value":""},"schema":{"title":"UPDATE","type":"object","properties":{"path":{"type":"string"},"value":{"title":"value"}}}},"create_achievement":{"name":"Create Achievement","url":"/store-api/admin/achievement/create","sample":{"game":"new-game","name":"New ACH","description":"DESc of New ACH","id":"new_ach","score":5},"schema":{"title":"Achievement","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"name":{"title":"Achievement Name","type":"string"},"description":{"title":"Description","format":"textarea","type":"string"},"id":{"title":"Achievement Id","type":"string"},"score":{"title":"Achievement's Score","type":"number","format":"number","minimum":0,"maximum":100}}}},"remove_achievement":{"name":"Remove Achievement","url":"/store-api/admin/achievement/remove","sample":{"game":"id-game","id":"id-ach"},"schema":{"title":"Achievement","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"id":{"title":"Achievement Id","type":"string"}}}},"create_game":{"name":"Create Game","url":"/store-api/admin/game/create","sample":{"id":"free-game","name":"Free Game","type":"puzzle","owner":"admin","price":0,"description":"aciklama blalblablalblablalballa"},"schema":{"title":"Game","type":"object","properties":{"id":{"title":"Game Id","type":"string"},"name":{"title":"Name","type":"string"},"type":{"title":"Type","enum":"/enum/game_types/","type":"string"},"owner":{"title":"Owner username","type":"string"},"price":{"title":"Price","type":"number","format":"number","minimum":0,"maximum":1000},"description":{"title":"Description","format":"textarea","type":"string"}}}},"disable_game":{"name":"Disable Game","url":"/store-api/admin/game/disable","sample":{"id":"new-game2"},"schema":{"title":"Game","type":"object","properties":{"id":{"title":"Game Id","enum":"/games/","type":"string"}}}},"enable_game":{"name":"Enable Game","url":"/store-api/admin/game/enable","sample":{"id":"new-game2"},"schema":{"title":"Game","type":"object","properties":{"id":{"title":"Game Id","enum":"/games/","type":"string"}}}},"create_news":{"name":"Create News","url":"/store-api/admin/news/create","sample":{"title":"Title","type":"important","message":"my new new for new app"},"schema":{"title":"News","type":"object","properties":{"title":{"title":"Title","type":"string"},"type":{"title":"Type","type":"string"},"message":{"title":"Message","format":"textarea","type":"string"}}}},"create_scoreboard":{"name":"Create Scoreboard","url":"/store-api/admin/scoreboard/create","sample":{"game":"new-game","name":"New Score Board","description":"DESc of New Score Board","id":"new_score_board","highest":true},"schema":{"title":"Scoreboard","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"id":{"title":"Scoreboard Id","type":"string"},"name":{"title":"Name","type":"string"},"description":{"title":"Description","format":"textarea","type":"string"},"highest":{"title":"Highest First","type":"boolean","format":"checkbox"}}}},"remove_scoreboard":{"name":"Remove Scoreboard","url":"/store-api/admin/scoreboard/remove","sample":{"game":"new-game","id":"new_score_board"},"schema":{"title":"Scoreboard","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"id":{"title":"Scoreboard Id","type":"string"}}}},"facebook_login":{"name":"Facebook Login","url":"/store-api/auth/facebook","sample":{"token":"abc"},"schema":{"title":"Facebook Login","type":"object","properties":{"token":{"title":"token","type":"string"}}}},"register":{"name":"Register","url":"/store-api/auth/register","sample":{"email":"mail@farukcan.net","username":"user","name":"New user","password":""},"schema":{"title":"Register","type":"object","properties":{"email":{"title":"e-mail","type":"string"},"username":{"title":"Username","type":"string"},"password":{"title":"Password","type":"string","format":"password"},"name":{"title":"Name","type":"string"}}}},"open_achievement":{"name":"Open Achievement","url":"/store-api/client/achievement/open","sample":{"game":"new-game","id":"new_ach"},"schema":{"title":"Achievement","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"id":{"title":"Achievement Id","type":"string"}}}},"accept_friend":{"name":"Accept Friend","url":"/store-api/client/friend/accept","sample":{"to":"user"},"schema":{"title":"Friend","type":"object","properties":{"to":{"title":"Username","type":"string"}}}},"remove_friend":{"name":"Remove Friend","url":"/store-api/client/friend/remove","sample":{"to":"user"},"schema":{"title":"Friend","type":"object","properties":{"to":{"title":"Username","type":"string"}}}},"request_friend":{"name":"Request Friend","url":"/store-api/client/friend/request","sample":{"to":"user"},"schema":{"title":"Friend","type":"object","properties":{"to":{"title":"Username","type":"string"}}}},"change_game_status":{"name":"Change Game Status","url":"/store-api/client/game/change_status","sample":{"game":"protogame","status":"playing"},"schema":{"title":"Status","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"status":{"title":"Status","enum":"/enum/game_status/","type":"string"}}}},"read_message":{"name":"Read Messsage","url":"/store-api/client/message/read","sample":{"from":"protouser","id":"0"},"schema":{"title":"Messsage","type":"object","properties":{"from":{"title":"Username","type":"string"},"id":{"title":"Message Id","type":"string"}}}},"send_message":{"name":"Send Messsage","url":"/store-api/client/message/send","sample":{"to":"admin","message":"hello admin!"},"schema":{"title":"Messsage","type":"object","properties":{"to":{"title":"Username","type":"string"},"message":{"title":"Message","format":"textarea","type":"string"}}}},"read_notification":{"name":"Read Notifications","url":"/store-api/client/notification/read","sample":{"id":"0"},"schema":{"title":"Notification","type":"object","properties":{"id":{"title":"Notification Id","type":"string"}}}},"send_score":{"name":"Send Score","url":"/store-api/client/score/send","sample":{"game":"protogame","id":"level1_board","score":5},"schema":{"title":"Score","type":"object","properties":{"game":{"title":"Game Id","enum":"/games/","type":"string"},"id":{"title":"Scoreboard Id","type":"string"},"score":{"title":"Score","type":"number","minimum":0}}}},"bug_report":{"name":"Bug Report","url":"/store-api/device/analyze/bug/report","sample":{"id":"73cefa23ee8c9214bcdbe782dc14dd0e97a3ff68952baf0fb0b133190c271b04","bug":"required","extra":"extra / not required"},"schema":{"title":"Bug Report","type":"object","properties":{"id":{"type":"string"}}}},"send_error":{"name":"Send Error","url":"/store-api/device/analyze/error/send","sample":{"id":"73cefa23ee8c9214bcdbe782dc14dd0e97a3ff68952baf0fb0b133190c271b04","game":"game-id","app":"com.company.game.1.5","error":"error required!","extra":"extra not required"},"schema":{"title":"Send Error","type":"object","properties":{"id":{"type":"string"},"game":{"type":"string","enum":"/games/"},"error":{"type":"string"},"app":{"type":"string"}}}},"send_event":{"name":"Send Event","url":"/store-api/device/analyze/event/send","sample":{"id":"73cefa23ee8c9214bcdbe782dc14dd0e97a3ff68952baf0fb0b133190c271b04","game":"game-id","app":"com.company.game.1.5","event":"event required!","extra":"not required"},"schema":{"title":"Send Event","type":"object","properties":{"id":{"type":"string"},"game":{"type":"string","enum":"/games/"},"event":{"type":"string"},"app":{"type":"string"}}}},"send_screen":{"name":"Send Screen","url":"/store-api/device/analyze/screen/send","sample":{"id":"73cefa23ee8c9214bcdbe782dc14dd0e97a3ff68952baf0fb0b133190c271b04","game":"game-id","app":"com.company.game.1.5","screen":"required!","extra":"not required"},"schema":{"title":"Send Screen","type":"object","properties":{"id":{"type":"string"},"game":{"type":"string","enum":"/games/"},"screen":{"type":"string"},"app":{"type":"string"}}}},"secure_intel":{"name":"Secure Intel","url":"/store-api/device/analyze/secure/intel","sample":{"id":"73cefa23ee8c9214bcdbe782dc14dd0e97a3ff68952baf0fb0b133190c271b04","info":{"platform":"testOS","app":"com.aa.bb","game":"new_game"},"extra":"not required!"},"schema":{"title":"Secure Intel","type":"object","properties":{"id":{"type":"string"},"info":{"title":"Info","type":"object","properties":{"platform":{"type":"string"},"game":{"type":"string","enum":"/games/"},"app":{"type":"string"}}}}}}},".auth_keys":{"2eb8315fc5991b71234e7a58e8c4e4267d825bda60f91f4d7c5bd2a2bfc23d35":{"username":"facebook-943556145795683","ltime":1514671101046,"ip":"1"}},"emails":{"943556145795683@facebook.id":"facebook-943556145795683"}}