{"action":"created","comment":{"url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments/78009946","id":78009946,"diff_hunk":"@@ -0,0 +1,100 @@\n+(function () {\n+  'use strict';\n+\n+  angular\n+    .module('porttare.controllers')\n+    .controller('ClientsController', ClientsController);\n+\n+  function ClientsController(ClientsService,\n+                             $scope,\n+                             $ionicActionSheet) {\n+    var clientsVm = this;\n+    clientsVm.query = '';\n+    clientsVm.submitProcess = submitProcess;\n+    var modalInstance = null;\n+    clientsVm.openModal = openModal;\n+    clientsVm.closeModal = closeModal;\n+    clientsVm.showActionSheet = showActionSheet;\n+\n+    getClients();\n+\n+    function getClients() {\n+      ClientsService.getClients()\n+        .then(function success(resp) {\n+          clientsVm.clients = resp;\n+        });\n+    }\n+\n+    function submitProcess(id){\n+      /* jshint expr: true */\n+      (id) ? editClient() : newClient();\n+    }\n+\n+    function newClient() {\n+      ClientsService.newClient(clientsVm.client)\n+        .then(function success(resp){\n+          /* jshint camelcase:false */\n+          clientsVm.clients.push(resp.data.provider_client);\n+          clientsVm.closeModal();\n+        },\n+        function error(resp){\n+          clientsVm.messages = resp.data.errors;\n+        });\n+    }\n+\n+    function editClient() {\n+      ClientsService.editClient(clientsVm.client)\n+        .then(function success(resp) {\n+          var indexArray = clientsVm.clients.map(function(o){return o.id;});","path":"app/scripts/controllers/clients-controller.js","position":48,"original_position":48,"commit_id":"d2adfc2bb7cebcde93a0d74004d5f342468bb5d3","original_commit_id":"d2adfc2bb7cebcde93a0d74004d5f342468bb5d3","user":{"login":"macool","id":1407000,"avatar_url":"https://avatars.githubusercontent.com/u/1407000?v=3","gravatar_id":"","url":"https://api.github.com/users/macool","html_url":"https://github.com/macool","followers_url":"https://api.github.com/users/macool/followers","following_url":"https://api.github.com/users/macool/following{/other_user}","gists_url":"https://api.github.com/users/macool/gists{/gist_id}","starred_url":"https://api.github.com/users/macool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macool/subscriptions","organizations_url":"https://api.github.com/users/macool/orgs","repos_url":"https://api.github.com/users/macool/repos","events_url":"https://api.github.com/users/macool/events{/privacy}","received_events_url":"https://api.github.com/users/macool/received_events","type":"User","site_admin":false},"body":"no hay necesidad de.\r\n\r\nhttp://www.w3schools.com/jsref/jsref_find.asp","created_at":"2016-09-08T13:54:31Z","updated_at":"2016-09-08T13:54:31Z","html_url":"https://github.com/noggalito/porttare-frontend/pull/49#discussion_r78009946","pull_request_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments/78009946"},"html":{"href":"https://github.com/noggalito/porttare-frontend/pull/49#discussion_r78009946"},"pull_request":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49","id":84476786,"html_url":"https://github.com/noggalito/porttare-frontend/pull/49","diff_url":"https://github.com/noggalito/porttare-frontend/pull/49.diff","patch_url":"https://github.com/noggalito/porttare-frontend/pull/49.patch","issue_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/49","number":49,"state":"open","locked":false,"title":"Feature manage clients from provider","user":{"login":"mricharleon","id":2581366,"avatar_url":"https://avatars.githubusercontent.com/u/2581366?v=3","gravatar_id":"","url":"https://api.github.com/users/mricharleon","html_url":"https://github.com/mricharleon","followers_url":"https://api.github.com/users/mricharleon/followers","following_url":"https://api.github.com/users/mricharleon/following{/other_user}","gists_url":"https://api.github.com/users/mricharleon/gists{/gist_id}","starred_url":"https://api.github.com/users/mricharleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mricharleon/subscriptions","organizations_url":"https://api.github.com/users/mricharleon/orgs","repos_url":"https://api.github.com/users/mricharleon/repos","events_url":"https://api.github.com/users/mricharleon/events{/privacy}","received_events_url":"https://api.github.com/users/mricharleon/received_events","type":"User","site_admin":false},"body":"* Add, edit, list and search for clients","created_at":"2016-09-08T13:25:28Z","updated_at":"2016-09-08T13:54:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08f1c4bddaeced7d349ce7353554d1fcad7a28bf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49/commits","review_comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49/comments","review_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/49/comments","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/d2adfc2bb7cebcde93a0d74004d5f342468bb5d3","head":{"label":"noggalito:feature-manage-clients-from-provider","ref":"feature-manage-clients-from-provider","sha":"d2adfc2bb7cebcde93a0d74004d5f342468bb5d3","user":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"repo":{"id":59975703,"name":"porttare-frontend","full_name":"noggalito/porttare-frontend","owner":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/noggalito/porttare-frontend","description":"","fork":false,"url":"https://api.github.com/repos/noggalito/porttare-frontend","forks_url":"https://api.github.com/repos/noggalito/porttare-frontend/forks","keys_url":"https://api.github.com/repos/noggalito/porttare-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noggalito/porttare-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noggalito/porttare-frontend/teams","hooks_url":"https://api.github.com/repos/noggalito/porttare-frontend/hooks","issue_events_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/noggalito/porttare-frontend/events","assignees_url":"https://api.github.com/repos/noggalito/porttare-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/noggalito/porttare-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/tags","blobs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/noggalito/porttare-frontend/languages","stargazers_url":"https://api.github.com/repos/noggalito/porttare-frontend/stargazers","contributors_url":"https://api.github.com/repos/noggalito/porttare-frontend/contributors","subscribers_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscribers","subscription_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscription","commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/noggalito/porttare-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/noggalito/porttare-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noggalito/porttare-frontend/merges","archive_url":"https://api.github.com/repos/noggalito/porttare-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noggalito/porttare-frontend/downloads","issues_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/noggalito/porttare-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/noggalito/porttare-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noggalito/porttare-frontend/labels{/name}","releases_url":"https://api.github.com/repos/noggalito/porttare-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/noggalito/porttare-frontend/deployments","created_at":"2016-05-30T02:45:09Z","updated_at":"2016-06-22T13:31:41Z","pushed_at":"2016-09-08T13:25:28Z","git_url":"git://github.com/noggalito/porttare-frontend.git","ssh_url":"git@github.com:noggalito/porttare-frontend.git","clone_url":"https://github.com/noggalito/porttare-frontend.git","svn_url":"https://github.com/noggalito/porttare-frontend","homepage":"https://porttare-frontend.herokuapp.com/","size":2547,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"noggalito:master","ref":"master","sha":"075ffe04b9cbf3c8dd3082db06f4f4239d0c62aa","user":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"repo":{"id":59975703,"name":"porttare-frontend","full_name":"noggalito/porttare-frontend","owner":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/noggalito/porttare-frontend","description":"","fork":false,"url":"https://api.github.com/repos/noggalito/porttare-frontend","forks_url":"https://api.github.com/repos/noggalito/porttare-frontend/forks","keys_url":"https://api.github.com/repos/noggalito/porttare-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noggalito/porttare-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noggalito/porttare-frontend/teams","hooks_url":"https://api.github.com/repos/noggalito/porttare-frontend/hooks","issue_events_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/noggalito/porttare-frontend/events","assignees_url":"https://api.github.com/repos/noggalito/porttare-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/noggalito/porttare-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/tags","blobs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/noggalito/porttare-frontend/languages","stargazers_url":"https://api.github.com/repos/noggalito/porttare-frontend/stargazers","contributors_url":"https://api.github.com/repos/noggalito/porttare-frontend/contributors","subscribers_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscribers","subscription_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscription","commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/noggalito/porttare-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/noggalito/porttare-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noggalito/porttare-frontend/merges","archive_url":"https://api.github.com/repos/noggalito/porttare-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noggalito/porttare-frontend/downloads","issues_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/noggalito/porttare-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/noggalito/porttare-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noggalito/porttare-frontend/labels{/name}","releases_url":"https://api.github.com/repos/noggalito/porttare-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/noggalito/porttare-frontend/deployments","created_at":"2016-05-30T02:45:09Z","updated_at":"2016-06-22T13:31:41Z","pushed_at":"2016-09-08T13:25:28Z","git_url":"git://github.com/noggalito/porttare-frontend.git","ssh_url":"git@github.com:noggalito/porttare-frontend.git","clone_url":"https://github.com/noggalito/porttare-frontend.git","svn_url":"https://github.com/noggalito/porttare-frontend","homepage":"https://porttare-frontend.herokuapp.com/","size":2547,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49"},"html":{"href":"https://github.com/noggalito/porttare-frontend/pull/49"},"issue":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/issues/49"},"comments":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/d2adfc2bb7cebcde93a0d74004d5f342468bb5d3"}}}}
{"actor":{"display_login":"macool"}}