{"action":"created","issue":{"url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/issues/7","repository_url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1","labels_url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/issues/7/comments","events_url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/issues/7/events","html_url":"https://github.com/dxcCorey/CBR-2DW-18-1/issues/7","id":344699299,"node_id":"MDU6SXNzdWUzNDQ2OTkyOTk=","number":7,"title":"Employee Messages","user":{"login":"dxcCorey","id":39758433,"node_id":"MDQ6VXNlcjM5NzU4NDMz","avatar_url":"https://avatars3.githubusercontent.com/u/39758433?v=4","gravatar_id":"","url":"https://api.github.com/users/dxcCorey","html_url":"https://github.com/dxcCorey","followers_url":"https://api.github.com/users/dxcCorey/followers","following_url":"https://api.github.com/users/dxcCorey/following{/other_user}","gists_url":"https://api.github.com/users/dxcCorey/gists{/gist_id}","starred_url":"https://api.github.com/users/dxcCorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxcCorey/subscriptions","organizations_url":"https://api.github.com/users/dxcCorey/orgs","repos_url":"https://api.github.com/users/dxcCorey/repos","events_url":"https://api.github.com/users/dxcCorey/events{/privacy}","received_events_url":"https://api.github.com/users/dxcCorey/received_events","type":"User","site_admin":false},"labels":[{"id":1005285888,"node_id":"MDU6TGFiZWwxMDA1Mjg1ODg4","url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/labels/Security/Employee","name":"Security/Employee","color":"db9669","default":false},{"id":1005281996,"node_id":"MDU6TGFiZWwxMDA1MjgxOTk2","url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T05:23:47Z","updated_at":"2018-08-01T04:14:17Z","closed_at":null,"author_association":"OWNER","body":"From dwep-2dw-base created by [dxcCorey](https://github.com/dxcCorey) : dxcCorey/dwep-2dw-base#7  \n\nEmployees can record voice messages for other employees and playback those recorded for them.\r\n\r\n### Pre-requisites\r\n- Employee data exists\r\n\r\n### Happy Flow\r\n\r\n- [ ] Robot detects someone has approached him\r\n- [ ] Robot recognises the person as an employee and greets them by name\r\n- [ ] Robot asks employee what option would they like to perform, play **or** record messages\r\n\r\n#### Play messages\r\n\r\n- [ ] Robot tells employee how many unplayed messages\r\n- [ ] Robot plays messages in datetime order\r\n- [ ] After message is played it is flagged as listened (or deleted)\r\n\r\n#### Record messages\r\n\r\n- [ ] Robot asks for name of employee they would like to leave a message for\r\n- [ ] Employee provides recipient employee name\r\n- [ ] Robot looks up employee in the database and finds it\r\n- [ ] Robot tells employee to record the message after the tone\r\n- [ ] Employee voices their message\r\n- [ ] Employee stops the robot recording\r\n- [ ] Robot tells employee message was recorded\r\n\r\n### Alternate flows\r\n\r\n#### Recipient employee not found\r\n\r\n- [ ] If the robot cannot find a record of the provided recipient then the user will be notified and asked to try again\r\n\r\n#### Message failed to record\r\n\r\n- [ ] If the robot failed to record the message then the user will be notified and asked to try again\r\n\r\n\r\n#### No messages to playback\r\n\r\n- [ ] The robot will state there are no new messages available"},"comment":{"url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/issues/comments/409443633","html_url":"https://github.com/dxcCorey/CBR-2DW-18-1/issues/7#issuecomment-409443633","issue_url":"https://api.github.com/repos/dxcCorey/CBR-2DW-18-1/issues/7","id":409443633,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQ0MzYzMw==","user":{"login":"dxcCorey","id":39758433,"node_id":"MDQ6VXNlcjM5NzU4NDMz","avatar_url":"https://avatars3.githubusercontent.com/u/39758433?v=4","gravatar_id":"","url":"https://api.github.com/users/dxcCorey","html_url":"https://github.com/dxcCorey","followers_url":"https://api.github.com/users/dxcCorey/followers","following_url":"https://api.github.com/users/dxcCorey/following{/other_user}","gists_url":"https://api.github.com/users/dxcCorey/gists{/gist_id}","starred_url":"https://api.github.com/users/dxcCorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxcCorey/subscriptions","organizations_url":"https://api.github.com/users/dxcCorey/orgs","repos_url":"https://api.github.com/users/dxcCorey/repos","events_url":"https://api.github.com/users/dxcCorey/events{/privacy}","received_events_url":"https://api.github.com/users/dxcCorey/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T04:14:17Z","updated_at":"2018-08-01T04:14:17Z","author_association":"OWNER","body":"```python\r\nfrom tinydb import TinyDB\r\n\r\ndb = TinyDB('database.json')\r\ndb.purge_table('employees')\r\n\r\nemployees = db.table('employees')\r\nemployees.insert(\r\n  {\r\n    'name': 'Sydney', \r\n    'messages': []\r\n  }\r\n)\r\n\r\nemployees.insert(\r\n  {\r\n    'name': 'John', \r\n    'messages': []\r\n  }\r\n)\r\n\r\nemployees.insert(\r\n  {\r\n    'name': 'Adam', \r\n    'messages': []\r\n  }\r\n)\r\n\r\nemployees.insert(\r\n  {\r\n    'name': 'Katherine', \r\n    'messages': []\r\n  }\r\n)\r\n\r\nemployees.insert(\r\n  {\r\n    'name': 'Frank', \r\n    'messages': []\r\n  }\r\n)\r\n\r\nemployees.insert(\r\n  {\r\n    'name': 'Chris', \r\n    'messages': []\r\n  }\r\n)\r\n```"}}
{"actor":{"display_login":"dxcCorey"}}