{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/comments/230110927","pull_request_review_id":170772769,"id":230110927,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDExMDkyNw==","diff_hunk":"@@ -15,7 +15,136 @@ const isStar = true;\n  * @returns {Object}\n  */\n function getAppropriateMoment(schedule, duration, workingHours) {\n-    console.info(schedule, duration, workingHours);\n+    console.info(schedule, '\\n', duration, '\\n', workingHours);\n+\n+    const MINUTES_IN_DAY = 60 * 24;\n+\n+    const WEEK_DAYS = Object.freeze({ 'ПН': 0, 'ВТ': 1, 'СР': 2 });\n+    const WEEK_DAYS_REVERSED = Object.freeze({ 0: 'ПН', 1: 'ВТ', 2: 'СР' });","path":"robbery.js","position":null,"original_position":10,"commit_id":"71002e8e1143a9a730ae7bb2e8d512d171b7161f","original_commit_id":"474d6774e183b516996fcbbfe28c13bc30fc3051","user":{"login":"ulitcos","id":4023479,"node_id":"MDQ6VXNlcjQwMjM0Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/4023479?v=4","gravatar_id":"","url":"https://api.github.com/users/ulitcos","html_url":"https://github.com/ulitcos","followers_url":"https://api.github.com/users/ulitcos/followers","following_url":"https://api.github.com/users/ulitcos/following{/other_user}","gists_url":"https://api.github.com/users/ulitcos/gists{/gist_id}","starred_url":"https://api.github.com/users/ulitcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulitcos/subscriptions","organizations_url":"https://api.github.com/users/ulitcos/orgs","repos_url":"https://api.github.com/users/ulitcos/repos","events_url":"https://api.github.com/users/ulitcos/events{/privacy}","received_events_url":"https://api.github.com/users/ulitcos/received_events","type":"User","site_admin":false},"body":"в) оставить один объект, написать функцию инвертор, которая из исходного объекта будет создавать новый \r\nг) попробовать сделать, как я предложил и применить настройку, чтобы свойства не перечислялись. Оценить уровень костыльности \r\n\r\nДавай так оставим, главное чтобы было понимание, что есть другие способы","created_at":"2018-11-01T16:42:07Z","updated_at":"2018-11-01T16:42:07Z","html_url":"https://github.com/urfu-2018/javascript-task-3/pull/2#discussion_r230110927","pull_request_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/comments/230110927"},"html":{"href":"https://github.com/urfu-2018/javascript-task-3/pull/2#discussion_r230110927"},"pull_request":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2"}},"in_reply_to_id":229719465},"pull_request":{"url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2","id":225696060,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1Njk2MDYw","html_url":"https://github.com/urfu-2018/javascript-task-3/pull/2","diff_url":"https://github.com/urfu-2018/javascript-task-3/pull/2.diff","patch_url":"https://github.com/urfu-2018/javascript-task-3/pull/2.patch","issue_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues/2","number":2,"state":"open","locked":false,"title":"Гарелышев Арсений","user":{"login":"MonstraG","id":17963791,"node_id":"MDQ6VXNlcjE3OTYzNzkx","avatar_url":"https://avatars1.githubusercontent.com/u/17963791?v=4","gravatar_id":"","url":"https://api.github.com/users/MonstraG","html_url":"https://github.com/MonstraG","followers_url":"https://api.github.com/users/MonstraG/followers","following_url":"https://api.github.com/users/MonstraG/following{/other_user}","gists_url":"https://api.github.com/users/MonstraG/gists{/gist_id}","starred_url":"https://api.github.com/users/MonstraG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonstraG/subscriptions","organizations_url":"https://api.github.com/users/MonstraG/orgs","repos_url":"https://api.github.com/users/MonstraG/repos","events_url":"https://api.github.com/users/MonstraG/events{/privacy}","received_events_url":"https://api.github.com/users/MonstraG/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-25T10:00:27Z","updated_at":"2018-11-01T16:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4917d0669a6b8530b89416963bccc72583e756b8","assignee":{"login":"ulitcos","id":4023479,"node_id":"MDQ6VXNlcjQwMjM0Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/4023479?v=4","gravatar_id":"","url":"https://api.github.com/users/ulitcos","html_url":"https://github.com/ulitcos","followers_url":"https://api.github.com/users/ulitcos/followers","following_url":"https://api.github.com/users/ulitcos/following{/other_user}","gists_url":"https://api.github.com/users/ulitcos/gists{/gist_id}","starred_url":"https://api.github.com/users/ulitcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulitcos/subscriptions","organizations_url":"https://api.github.com/users/ulitcos/orgs","repos_url":"https://api.github.com/users/ulitcos/repos","events_url":"https://api.github.com/users/ulitcos/events{/privacy}","received_events_url":"https://api.github.com/users/ulitcos/received_events","type":"User","site_admin":false},"assignees":[{"login":"ulitcos","id":4023479,"node_id":"MDQ6VXNlcjQwMjM0Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/4023479?v=4","gravatar_id":"","url":"https://api.github.com/users/ulitcos","html_url":"https://github.com/ulitcos","followers_url":"https://api.github.com/users/ulitcos/followers","following_url":"https://api.github.com/users/ulitcos/following{/other_user}","gists_url":"https://api.github.com/users/ulitcos/gists{/gist_id}","starred_url":"https://api.github.com/users/ulitcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulitcos/subscriptions","organizations_url":"https://api.github.com/users/ulitcos/orgs","repos_url":"https://api.github.com/users/ulitcos/repos","events_url":"https://api.github.com/users/ulitcos/events{/privacy}","received_events_url":"https://api.github.com/users/ulitcos/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2/commits","review_comments_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2/comments","review_comment_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues/2/comments","statuses_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/statuses/71002e8e1143a9a730ae7bb2e8d512d171b7161f","head":{"label":"MonstraG:master","ref":"master","sha":"71002e8e1143a9a730ae7bb2e8d512d171b7161f","user":{"login":"MonstraG","id":17963791,"node_id":"MDQ6VXNlcjE3OTYzNzkx","avatar_url":"https://avatars1.githubusercontent.com/u/17963791?v=4","gravatar_id":"","url":"https://api.github.com/users/MonstraG","html_url":"https://github.com/MonstraG","followers_url":"https://api.github.com/users/MonstraG/followers","following_url":"https://api.github.com/users/MonstraG/following{/other_user}","gists_url":"https://api.github.com/users/MonstraG/gists{/gist_id}","starred_url":"https://api.github.com/users/MonstraG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonstraG/subscriptions","organizations_url":"https://api.github.com/users/MonstraG/orgs","repos_url":"https://api.github.com/users/MonstraG/repos","events_url":"https://api.github.com/users/MonstraG/events{/privacy}","received_events_url":"https://api.github.com/users/MonstraG/received_events","type":"User","site_admin":false},"repo":{"id":154438856,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0Mzg4NTY=","name":"javascript-task-3","full_name":"MonstraG/javascript-task-3","private":false,"owner":{"login":"MonstraG","id":17963791,"node_id":"MDQ6VXNlcjE3OTYzNzkx","avatar_url":"https://avatars1.githubusercontent.com/u/17963791?v=4","gravatar_id":"","url":"https://api.github.com/users/MonstraG","html_url":"https://github.com/MonstraG","followers_url":"https://api.github.com/users/MonstraG/followers","following_url":"https://api.github.com/users/MonstraG/following{/other_user}","gists_url":"https://api.github.com/users/MonstraG/gists{/gist_id}","starred_url":"https://api.github.com/users/MonstraG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonstraG/subscriptions","organizations_url":"https://api.github.com/users/MonstraG/orgs","repos_url":"https://api.github.com/users/MonstraG/repos","events_url":"https://api.github.com/users/MonstraG/events{/privacy}","received_events_url":"https://api.github.com/users/MonstraG/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MonstraG/javascript-task-3","description":"Задача «0b11 друзей Аркадия»","fork":true,"url":"https://api.github.com/repos/MonstraG/javascript-task-3","forks_url":"https://api.github.com/repos/MonstraG/javascript-task-3/forks","keys_url":"https://api.github.com/repos/MonstraG/javascript-task-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MonstraG/javascript-task-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MonstraG/javascript-task-3/teams","hooks_url":"https://api.github.com/repos/MonstraG/javascript-task-3/hooks","issue_events_url":"https://api.github.com/repos/MonstraG/javascript-task-3/issues/events{/number}","events_url":"https://api.github.com/repos/MonstraG/javascript-task-3/events","assignees_url":"https://api.github.com/repos/MonstraG/javascript-task-3/assignees{/user}","branches_url":"https://api.github.com/repos/MonstraG/javascript-task-3/branches{/branch}","tags_url":"https://api.github.com/repos/MonstraG/javascript-task-3/tags","blobs_url":"https://api.github.com/repos/MonstraG/javascript-task-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MonstraG/javascript-task-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MonstraG/javascript-task-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/MonstraG/javascript-task-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MonstraG/javascript-task-3/statuses/{sha}","languages_url":"https://api.github.com/repos/MonstraG/javascript-task-3/languages","stargazers_url":"https://api.github.com/repos/MonstraG/javascript-task-3/stargazers","contributors_url":"https://api.github.com/repos/MonstraG/javascript-task-3/contributors","subscribers_url":"https://api.github.com/repos/MonstraG/javascript-task-3/subscribers","subscription_url":"https://api.github.com/repos/MonstraG/javascript-task-3/subscription","commits_url":"https://api.github.com/repos/MonstraG/javascript-task-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/MonstraG/javascript-task-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/MonstraG/javascript-task-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/MonstraG/javascript-task-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/MonstraG/javascript-task-3/contents/{+path}","compare_url":"https://api.github.com/repos/MonstraG/javascript-task-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MonstraG/javascript-task-3/merges","archive_url":"https://api.github.com/repos/MonstraG/javascript-task-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MonstraG/javascript-task-3/downloads","issues_url":"https://api.github.com/repos/MonstraG/javascript-task-3/issues{/number}","pulls_url":"https://api.github.com/repos/MonstraG/javascript-task-3/pulls{/number}","milestones_url":"https://api.github.com/repos/MonstraG/javascript-task-3/milestones{/number}","notifications_url":"https://api.github.com/repos/MonstraG/javascript-task-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MonstraG/javascript-task-3/labels{/name}","releases_url":"https://api.github.com/repos/MonstraG/javascript-task-3/releases{/id}","deployments_url":"https://api.github.com/repos/MonstraG/javascript-task-3/deployments","created_at":"2018-10-24T04:27:01Z","updated_at":"2018-11-01T07:17:35Z","pushed_at":"2018-11-01T07:17:33Z","git_url":"git://github.com/MonstraG/javascript-task-3.git","ssh_url":"git@github.com:MonstraG/javascript-task-3.git","clone_url":"https://github.com/MonstraG/javascript-task-3.git","svn_url":"https://github.com/MonstraG/javascript-task-3","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2018:master","ref":"master","sha":"e0945d9ddda85928c97dacdf1d9ab9dab532881b","user":{"login":"urfu-2018","id":43127233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTI3MjMz","avatar_url":"https://avatars0.githubusercontent.com/u/43127233?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2018","html_url":"https://github.com/urfu-2018","followers_url":"https://api.github.com/users/urfu-2018/followers","following_url":"https://api.github.com/users/urfu-2018/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2018/subscriptions","organizations_url":"https://api.github.com/users/urfu-2018/orgs","repos_url":"https://api.github.com/users/urfu-2018/repos","events_url":"https://api.github.com/users/urfu-2018/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":154332622,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQzMzI2MjI=","name":"javascript-task-3","full_name":"urfu-2018/javascript-task-3","private":false,"owner":{"login":"urfu-2018","id":43127233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTI3MjMz","avatar_url":"https://avatars0.githubusercontent.com/u/43127233?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2018","html_url":"https://github.com/urfu-2018","followers_url":"https://api.github.com/users/urfu-2018/followers","following_url":"https://api.github.com/users/urfu-2018/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2018/subscriptions","organizations_url":"https://api.github.com/users/urfu-2018/orgs","repos_url":"https://api.github.com/users/urfu-2018/repos","events_url":"https://api.github.com/users/urfu-2018/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2018/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/urfu-2018/javascript-task-3","description":"Задача «0b11 друзей Аркадия»","fork":false,"url":"https://api.github.com/repos/urfu-2018/javascript-task-3","forks_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/forks","keys_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/teams","hooks_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/hooks","issue_events_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/events","assignees_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/tags","blobs_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/languages","stargazers_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/stargazers","contributors_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/contributors","subscribers_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/subscribers","subscription_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/subscription","commits_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/merges","archive_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/downloads","issues_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2018/javascript-task-3/deployments","created_at":"2018-10-23T13:26:25Z","updated_at":"2018-10-23T13:34:04Z","pushed_at":"2018-11-01T16:27:04Z","git_url":"git://github.com/urfu-2018/javascript-task-3.git","ssh_url":"git@github.com:urfu-2018/javascript-task-3.git","clone_url":"https://github.com/urfu-2018/javascript-task-3.git","svn_url":"https://github.com/urfu-2018/javascript-task-3","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"archived":false,"open_issues_count":67,"license":null,"forks":107,"open_issues":67,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2"},"html":{"href":"https://github.com/urfu-2018/javascript-task-3/pull/2"},"issue":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues/2"},"comments":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-3/statuses/71002e8e1143a9a730ae7bb2e8d512d171b7161f"}},"author_association":"NONE"}}
{"actor":{"display_login":"ulitcos"}}