Built xcally-motion-dialpad from commit 7f8e441.|1.0.18 1.0.18
authorDaniele Cinti <daniele.cinti@xcally.com>
Tue, 18 Jul 2017 09:08:50 +0000 (11:08 +0200)
committerDaniele Cinti <daniele.cinti@xcally.com>
Tue, 18 Jul 2017 09:08:50 +0000 (11:08 +0200)
app.7272c9ba.js [deleted file]
app.cc19079b.js [new file with mode: 0644]
index.html

diff --git a/app.7272c9ba.js b/app.7272c9ba.js
deleted file mode 100644 (file)
index 86d34d6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";function IndexController(e,n,o,a,t){function l(e){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:e.recordId}})}function s(e,o){n.parent.postMessage({uniqueid:o,options:{url:e}},"*")}var i,c=this;console.log("$stateParams",a),console.log("$location",t.search()),c.phone="",c.inCall=!1,c.callbacks={},c.compose=function(e){c.phone=c.phone.concat(e)},c.remove=function(){c.phone=c.phone.substring(0,c.phone.length-1)},c.hangup=function(){var e=Date.now();c.callbacks[e]=function(){c.inCall=!1},s("http://localhost:9888/api/hangup",e)},c.dial=function(){var e=Date.now();c.callbacks[e]=function(){c.inCall=!0},s("http://localhost:9888/api/originate/"+c.phone,e)},c.keepalive=function(){var e=Date.now();c.callbacks[e]=function(e){if(e.response&&e.response.status>=200&&e.response.status<300){var n=JSON.parse(e.response.message);c.id=n.id,c.displayName=n.displayName,c.internal=n.internal,c.online=!0,i||c.host&&c.id&&(i=io(c.host,{query:{id:c.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",l),i&&i.disconnected&&i.connect()}else c.online=!1},s("http://localhost:9888/api/agent",e)},c.checkStatus=function(){var e=Date.now();c.callbacks[e]=function(e){if(e.response&&e.response.status>=200&&e.response.status<300){var n=JSON.parse(e.response.message);c.inCall=!!n.length}else c.inCall=!1},s("http://localhost:9888/api/calls",e)},sforce.opencti.getCallCenterSettings({callback:function(e){c.host=e.returnValue["/Motion/Host"]}}),sforce.opencti.enableClickToDial({callback:function(e){console.log("enableClickToDial")}}),sforce.opencti.onClickToDial({listener:function(e){c.online&&e.number&&(c.phone=e.number,c.dial())}}),o(c.keepalive,2e3),o(c.checkStatus,2e3),n.addEventListener("message",function(n){var o=n.data;c.callbacks[o.uniqueid]&&(c.callbacks[o.uniqueid](o),delete c.callbacks[o.uniqueid],e.$apply())},!1)}IndexController.$inject=["$scope","$window","$interval","$stateParams","$location"];var motion=angular.module("motion",["ngMaterial","ui.router"]);motion.controller("IndexController",IndexController);
\ No newline at end of file
diff --git a/app.cc19079b.js b/app.cc19079b.js
new file mode 100644 (file)
index 0000000..a1feb6f
--- /dev/null
@@ -0,0 +1 @@
+"use strict";function config(e){e.html5Mode(!0)}function IndexController(e,n,o,t,a){function l(e){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:e.recordId}})}function i(e,o){n.parent.postMessage({uniqueid:o,options:{url:e}},"*")}var s,c=this;console.log("$stateParams",t),console.log("$location",a.search()),c.phone="",c.inCall=!1,c.callbacks={},c.compose=function(e){c.phone=c.phone.concat(e)},c.remove=function(){c.phone=c.phone.substring(0,c.phone.length-1)},c.hangup=function(){var e=Date.now();c.callbacks[e]=function(){c.inCall=!1},i("http://localhost:9888/api/hangup",e)},c.dial=function(){var e=Date.now();c.callbacks[e]=function(){c.inCall=!0},i("http://localhost:9888/api/originate/"+c.phone,e)},c.keepalive=function(){var e=Date.now();c.callbacks[e]=function(e){if(e.response&&e.response.status>=200&&e.response.status<300){var n=JSON.parse(e.response.message);c.id=n.id,c.displayName=n.displayName,c.internal=n.internal,c.online=!0,s||c.host&&c.id&&(s=io(c.host,{query:{id:c.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",l),s&&s.disconnected&&s.connect()}else c.online=!1},i("http://localhost:9888/api/agent",e)},c.checkStatus=function(){var e=Date.now();c.callbacks[e]=function(e){if(e.response&&e.response.status>=200&&e.response.status<300){var n=JSON.parse(e.response.message);c.inCall=!!n.length}else c.inCall=!1},i("http://localhost:9888/api/calls",e)},sforce.opencti.getCallCenterSettings({callback:function(e){c.host=e.returnValue["/Motion/Host"]}}),sforce.opencti.enableClickToDial({callback:function(e){console.log("enableClickToDial")}}),sforce.opencti.onClickToDial({listener:function(e){c.online&&e.number&&(c.phone=e.number,c.dial())}}),o(c.keepalive,2e3),o(c.checkStatus,2e3),n.addEventListener("message",function(n){var o=n.data;c.callbacks[o.uniqueid]&&(c.callbacks[o.uniqueid](o),delete c.callbacks[o.uniqueid],e.$apply())},!1)}config.$inject=["$locationProvider"],IndexController.$inject=["$scope","$window","$interval","$stateParams","$location"];var motion=angular.module("motion",["ngMaterial","ui.router"]);motion.config(config),motion.controller("IndexController",IndexController);
\ No newline at end of file
index e401b34..c7c647f 100644 (file)
@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html ng-app="motion">
 <head>
+  <base href="/">
   <meta charset="utf-8">
   <title></title>
   <link rel="stylesheet" href="vendor.b5ccb327.css">
@@ -52,7 +53,7 @@
 
   <script src="vendor.b0d8b566.js"></script>
 
-  <script src="app.7272c9ba.js"></script>
+  <script src="app.cc19079b.js"></script>
 
 </body>
 </html>