{"action":"created","comment":{"url":"https://api.github.com/repos/urbanladder/ozonetel/pulls/comments/89719672","pull_request_review_id":10256729,"id":89719672,"diff_hunk":"@@ -6,13 +6,49 @@ class Client\n     MANUAL_DIAL_URL = \"http://cloudagent.in/CAServices/AgentManualDial.php\"\n     ADD_DATA_URL = \"http://cloudagent.in/cloudAgentRestAPI/index.php/CloudAgent/CloudAgentAPI/addCamapaignData\"\n \n-    def initialize(customer, api_key, campaign_name)\n+    def initialize(customer, api_key, campaign_name, did = nil)\n       @user_name = customer\n       @api_key = api_key\n       @campaign_name = campaign_name\n+      @did = did\n     end\n \n-    def manual_dial_online(agent_id, customer_number)\n+    def trigger_cod_confirmation_call(call_data)\n+      call_data.merge!({ 'api_key' => @api_key, 'campaign_name' => @campaign_name })\n+      call_response = HTTParty.get(ADD_DATA_URL, :query => call_data)\n+    end\n+\n+    def manual_dial_online(type, customer_number, skill = nil, agent_id = nil, uui = nil)\n+      if type == \"skill_to_phone\"\n+        raise StandardError.new(\"Wrong arguments passed\") if (skill.nil? or customer_number.nil?)\n+        skill_to_phone_dial(customer_number, skill, uui)\n+\n+      elsif type == \"phone_to_skill\"\n+        raise StandardError.new(\"Wrong arguments passed\") if (agent_id.nil? or customer_number.nil?)\n+        skill_to_phone_dial(customer_number, agent_id)","path":"lib/ozonetel/client.rb","position":25,"original_position":25,"commit_id":"3a8336a1f700a6e0dff192949bbece6751cda318","original_commit_id":"3a8336a1f700a6e0dff192949bbece6751cda318","user":{"login":"lalitchandnani","id":1826782,"avatar_url":"https://avatars.githubusercontent.com/u/1826782?v=3","gravatar_id":"","url":"https://api.github.com/users/lalitchandnani","html_url":"https://github.com/lalitchandnani","followers_url":"https://api.github.com/users/lalitchandnani/followers","following_url":"https://api.github.com/users/lalitchandnani/following{/other_user}","gists_url":"https://api.github.com/users/lalitchandnani/gists{/gist_id}","starred_url":"https://api.github.com/users/lalitchandnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalitchandnani/subscriptions","organizations_url":"https://api.github.com/users/lalitchandnani/orgs","repos_url":"https://api.github.com/users/lalitchandnani/repos","events_url":"https://api.github.com/users/lalitchandnani/events{/privacy}","received_events_url":"https://api.github.com/users/lalitchandnani/received_events","type":"User","site_admin":false},"body":"How this would work if `skill_to_phone_dial` accept second parameter as skill?","created_at":"2016-11-28T05:29:50Z","updated_at":"2016-11-28T05:29:50Z","html_url":"https://github.com/urbanladder/ozonetel/pull/4#discussion_r89719672","pull_request_url":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/urbanladder/ozonetel/pulls/comments/89719672"},"html":{"href":"https://github.com/urbanladder/ozonetel/pull/4#discussion_r89719672"},"pull_request":{"href":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4","id":94104668,"html_url":"https://github.com/urbanladder/ozonetel/pull/4","diff_url":"https://github.com/urbanladder/ozonetel/pull/4.diff","patch_url":"https://github.com/urbanladder/ozonetel/pull/4.patch","issue_url":"https://api.github.com/repos/urbanladder/ozonetel/issues/4","number":4,"state":"open","locked":false,"title":"CRMS-72 #make manual dial based on skill ","user":{"login":"Adithigs","id":16588765,"avatar_url":"https://avatars.githubusercontent.com/u/16588765?v=3","gravatar_id":"","url":"https://api.github.com/users/Adithigs","html_url":"https://github.com/Adithigs","followers_url":"https://api.github.com/users/Adithigs/followers","following_url":"https://api.github.com/users/Adithigs/following{/other_user}","gists_url":"https://api.github.com/users/Adithigs/gists{/gist_id}","starred_url":"https://api.github.com/users/Adithigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adithigs/subscriptions","organizations_url":"https://api.github.com/users/Adithigs/orgs","repos_url":"https://api.github.com/users/Adithigs/repos","events_url":"https://api.github.com/users/Adithigs/events{/privacy}","received_events_url":"https://api.github.com/users/Adithigs/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-17T05:28:04Z","updated_at":"2016-11-28T05:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba51ded6add7952a5a6d81e3cc3126ba992d3ebd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4/commits","review_comments_url":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4/comments","review_comment_url":"https://api.github.com/repos/urbanladder/ozonetel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urbanladder/ozonetel/issues/4/comments","statuses_url":"https://api.github.com/repos/urbanladder/ozonetel/statuses/3a8336a1f700a6e0dff192949bbece6751cda318","head":{"label":"Adithigs:master","ref":"master","sha":"3a8336a1f700a6e0dff192949bbece6751cda318","user":{"login":"Adithigs","id":16588765,"avatar_url":"https://avatars.githubusercontent.com/u/16588765?v=3","gravatar_id":"","url":"https://api.github.com/users/Adithigs","html_url":"https://github.com/Adithigs","followers_url":"https://api.github.com/users/Adithigs/followers","following_url":"https://api.github.com/users/Adithigs/following{/other_user}","gists_url":"https://api.github.com/users/Adithigs/gists{/gist_id}","starred_url":"https://api.github.com/users/Adithigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adithigs/subscriptions","organizations_url":"https://api.github.com/users/Adithigs/orgs","repos_url":"https://api.github.com/users/Adithigs/repos","events_url":"https://api.github.com/users/Adithigs/events{/privacy}","received_events_url":"https://api.github.com/users/Adithigs/received_events","type":"User","site_admin":false},"repo":{"id":73674691,"name":"ozonetel","full_name":"Adithigs/ozonetel","owner":{"login":"Adithigs","id":16588765,"avatar_url":"https://avatars.githubusercontent.com/u/16588765?v=3","gravatar_id":"","url":"https://api.github.com/users/Adithigs","html_url":"https://github.com/Adithigs","followers_url":"https://api.github.com/users/Adithigs/followers","following_url":"https://api.github.com/users/Adithigs/following{/other_user}","gists_url":"https://api.github.com/users/Adithigs/gists{/gist_id}","starred_url":"https://api.github.com/users/Adithigs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adithigs/subscriptions","organizations_url":"https://api.github.com/users/Adithigs/orgs","repos_url":"https://api.github.com/users/Adithigs/repos","events_url":"https://api.github.com/users/Adithigs/events{/privacy}","received_events_url":"https://api.github.com/users/Adithigs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Adithigs/ozonetel","description":"Ruby client for Ozonetel APIs","fork":true,"url":"https://api.github.com/repos/Adithigs/ozonetel","forks_url":"https://api.github.com/repos/Adithigs/ozonetel/forks","keys_url":"https://api.github.com/repos/Adithigs/ozonetel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adithigs/ozonetel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adithigs/ozonetel/teams","hooks_url":"https://api.github.com/repos/Adithigs/ozonetel/hooks","issue_events_url":"https://api.github.com/repos/Adithigs/ozonetel/issues/events{/number}","events_url":"https://api.github.com/repos/Adithigs/ozonetel/events","assignees_url":"https://api.github.com/repos/Adithigs/ozonetel/assignees{/user}","branches_url":"https://api.github.com/repos/Adithigs/ozonetel/branches{/branch}","tags_url":"https://api.github.com/repos/Adithigs/ozonetel/tags","blobs_url":"https://api.github.com/repos/Adithigs/ozonetel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adithigs/ozonetel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adithigs/ozonetel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adithigs/ozonetel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adithigs/ozonetel/statuses/{sha}","languages_url":"https://api.github.com/repos/Adithigs/ozonetel/languages","stargazers_url":"https://api.github.com/repos/Adithigs/ozonetel/stargazers","contributors_url":"https://api.github.com/repos/Adithigs/ozonetel/contributors","subscribers_url":"https://api.github.com/repos/Adithigs/ozonetel/subscribers","subscription_url":"https://api.github.com/repos/Adithigs/ozonetel/subscription","commits_url":"https://api.github.com/repos/Adithigs/ozonetel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adithigs/ozonetel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adithigs/ozonetel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adithigs/ozonetel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adithigs/ozonetel/contents/{+path}","compare_url":"https://api.github.com/repos/Adithigs/ozonetel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adithigs/ozonetel/merges","archive_url":"https://api.github.com/repos/Adithigs/ozonetel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adithigs/ozonetel/downloads","issues_url":"https://api.github.com/repos/Adithigs/ozonetel/issues{/number}","pulls_url":"https://api.github.com/repos/Adithigs/ozonetel/pulls{/number}","milestones_url":"https://api.github.com/repos/Adithigs/ozonetel/milestones{/number}","notifications_url":"https://api.github.com/repos/Adithigs/ozonetel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adithigs/ozonetel/labels{/name}","releases_url":"https://api.github.com/repos/Adithigs/ozonetel/releases{/id}","deployments_url":"https://api.github.com/repos/Adithigs/ozonetel/deployments","created_at":"2016-11-14T06:37:46Z","updated_at":"2016-11-14T06:37:48Z","pushed_at":"2016-11-18T11:28:22Z","git_url":"git://github.com/Adithigs/ozonetel.git","ssh_url":"git@github.com:Adithigs/ozonetel.git","clone_url":"https://github.com/Adithigs/ozonetel.git","svn_url":"https://github.com/Adithigs/ozonetel","homepage":"","size":9,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urbanladder:master","ref":"master","sha":"98c9c8fce676196513f28bf48321563f8bcd9c99","user":{"login":"urbanladder","id":4828844,"avatar_url":"https://avatars.githubusercontent.com/u/4828844?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanladder","html_url":"https://github.com/urbanladder","followers_url":"https://api.github.com/users/urbanladder/followers","following_url":"https://api.github.com/users/urbanladder/following{/other_user}","gists_url":"https://api.github.com/users/urbanladder/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanladder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanladder/subscriptions","organizations_url":"https://api.github.com/users/urbanladder/orgs","repos_url":"https://api.github.com/users/urbanladder/repos","events_url":"https://api.github.com/users/urbanladder/events{/privacy}","received_events_url":"https://api.github.com/users/urbanladder/received_events","type":"Organization","site_admin":false},"repo":{"id":40002850,"name":"ozonetel","full_name":"urbanladder/ozonetel","owner":{"login":"urbanladder","id":4828844,"avatar_url":"https://avatars.githubusercontent.com/u/4828844?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanladder","html_url":"https://github.com/urbanladder","followers_url":"https://api.github.com/users/urbanladder/followers","following_url":"https://api.github.com/users/urbanladder/following{/other_user}","gists_url":"https://api.github.com/users/urbanladder/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanladder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanladder/subscriptions","organizations_url":"https://api.github.com/users/urbanladder/orgs","repos_url":"https://api.github.com/users/urbanladder/repos","events_url":"https://api.github.com/users/urbanladder/events{/privacy}","received_events_url":"https://api.github.com/users/urbanladder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urbanladder/ozonetel","description":"Ruby client for Ozonetel APIs","fork":false,"url":"https://api.github.com/repos/urbanladder/ozonetel","forks_url":"https://api.github.com/repos/urbanladder/ozonetel/forks","keys_url":"https://api.github.com/repos/urbanladder/ozonetel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urbanladder/ozonetel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urbanladder/ozonetel/teams","hooks_url":"https://api.github.com/repos/urbanladder/ozonetel/hooks","issue_events_url":"https://api.github.com/repos/urbanladder/ozonetel/issues/events{/number}","events_url":"https://api.github.com/repos/urbanladder/ozonetel/events","assignees_url":"https://api.github.com/repos/urbanladder/ozonetel/assignees{/user}","branches_url":"https://api.github.com/repos/urbanladder/ozonetel/branches{/branch}","tags_url":"https://api.github.com/repos/urbanladder/ozonetel/tags","blobs_url":"https://api.github.com/repos/urbanladder/ozonetel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urbanladder/ozonetel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urbanladder/ozonetel/git/refs{/sha}","trees_url":"https://api.github.com/repos/urbanladder/ozonetel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urbanladder/ozonetel/statuses/{sha}","languages_url":"https://api.github.com/repos/urbanladder/ozonetel/languages","stargazers_url":"https://api.github.com/repos/urbanladder/ozonetel/stargazers","contributors_url":"https://api.github.com/repos/urbanladder/ozonetel/contributors","subscribers_url":"https://api.github.com/repos/urbanladder/ozonetel/subscribers","subscription_url":"https://api.github.com/repos/urbanladder/ozonetel/subscription","commits_url":"https://api.github.com/repos/urbanladder/ozonetel/commits{/sha}","git_commits_url":"https://api.github.com/repos/urbanladder/ozonetel/git/commits{/sha}","comments_url":"https://api.github.com/repos/urbanladder/ozonetel/comments{/number}","issue_comment_url":"https://api.github.com/repos/urbanladder/ozonetel/issues/comments{/number}","contents_url":"https://api.github.com/repos/urbanladder/ozonetel/contents/{+path}","compare_url":"https://api.github.com/repos/urbanladder/ozonetel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urbanladder/ozonetel/merges","archive_url":"https://api.github.com/repos/urbanladder/ozonetel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urbanladder/ozonetel/downloads","issues_url":"https://api.github.com/repos/urbanladder/ozonetel/issues{/number}","pulls_url":"https://api.github.com/repos/urbanladder/ozonetel/pulls{/number}","milestones_url":"https://api.github.com/repos/urbanladder/ozonetel/milestones{/number}","notifications_url":"https://api.github.com/repos/urbanladder/ozonetel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urbanladder/ozonetel/labels{/name}","releases_url":"https://api.github.com/repos/urbanladder/ozonetel/releases{/id}","deployments_url":"https://api.github.com/repos/urbanladder/ozonetel/deployments","created_at":"2015-07-31T11:45:58Z","updated_at":"2016-02-05T06:54:47Z","pushed_at":"2016-11-18T11:28:22Z","git_url":"git://github.com/urbanladder/ozonetel.git","ssh_url":"git@github.com:urbanladder/ozonetel.git","clone_url":"https://github.com/urbanladder/ozonetel.git","svn_url":"https://github.com/urbanladder/ozonetel","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4"},"html":{"href":"https://github.com/urbanladder/ozonetel/pull/4"},"issue":{"href":"https://api.github.com/repos/urbanladder/ozonetel/issues/4"},"comments":{"href":"https://api.github.com/repos/urbanladder/ozonetel/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/urbanladder/ozonetel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urbanladder/ozonetel/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/urbanladder/ozonetel/statuses/3a8336a1f700a6e0dff192949bbece6751cda318"}}}}
{"actor":{"display_login":"lalitchandnani"}}