Built xcally-motion-dialpad from commit 44b76b8.|1.0.4 1.0.4
authorDaniele Cinti <daniele.cinti@xcally.com>
Wed, 5 Jul 2017 15:03:30 +0000 (17:03 +0200)
committerDaniele Cinti <daniele.cinti@xcally.com>
Wed, 5 Jul 2017 15:03:30 +0000 (17:03 +0200)
app.78cc4d9a.js [deleted file]
app.b7afceed.js [new file with mode: 0644]
index.html

diff --git a/app.78cc4d9a.js b/app.78cc4d9a.js
deleted file mode 100644 (file)
index 188e503..0000000
+++ /dev/null
@@ -1 +0,0 @@
-function IndexController(e,n,o){function t(e){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:e.id}})}var a,i=this;i.phone="",i.inCall=!1,i.callbacks={},i.compose=function(e){i.phone=i.phone.concat(e)},i.remove=function(){i.phone=i.phone.substring(0,i.phone.length-1)},i.hangup=function(){var e=Date.now();i.callbacks[e]=function(){i.inCall=!1},n.parent.postMessage({uniqueid:e,options:{url:"http://localhost:9888/api/hangup"}},"*")},i.dial=function(){var e=Date.now();i.callbacks[e]=function(){i.inCall=!0},n.parent.postMessage({uniqueid:e,options:{url:"http://localhost:9888/api/originate/"+i.phone}},"*")},i.keepalive=function(){var e=Date.now();i.callbacks[e]=function(e){if(e.response&&e.response.status>=200&&e.response.status<300){var n=JSON.parse(e.response.message);i.id=n.id,i.displayName=n.displayName,i.internal=n.internal,i.online=!0,a||i.host&&i.id&&(a=io(i.host,{query:{id:i.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",t),a&&a.disconnected&&a.connect()}else i.online=!1},n.parent.postMessage({uniqueid:e,options:{url:"http://localhost:9888/api/agent"}},"*")},sforce.opencti.getCallCenterSettings({callback:function(e){i.host=e.returnValue["/Motion/Host"]}}),o(i.keepalive,2e3),n.addEventListener("message",function(n){var o=n.data;i.callbacks[o.uniqueid]&&(i.callbacks[o.uniqueid](o),delete i.callbacks[o.uniqueid],e.$apply())},!1)}IndexController.$inject=["$scope","$window","$interval"];var motion=angular.module("motion",["ngMaterial"]);motion.controller("IndexController",IndexController);
\ No newline at end of file
diff --git a/app.b7afceed.js b/app.b7afceed.js
new file mode 100644 (file)
index 0000000..dd547fc
--- /dev/null
@@ -0,0 +1 @@
+"use strict";function IndexController(e,n,o){function t(e){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:e.recordId}})}var a,i=this;i.phone="",i.inCall=!1,i.callbacks={},i.compose=function(e){i.phone=i.phone.concat(e)},i.remove=function(){i.phone=i.phone.substring(0,i.phone.length-1)},i.hangup=function(){var e=Date.now();i.callbacks[e]=function(){i.inCall=!1},n.parent.postMessage({uniqueid:e,options:{url:"http://localhost:9888/api/hangup"}},"*")},i.dial=function(){var e=Date.now();i.callbacks[e]=function(){i.inCall=!0},n.parent.postMessage({uniqueid:e,options:{url:"http://localhost:9888/api/originate/"+i.phone}},"*")},i.keepalive=function(){var e=Date.now();i.callbacks[e]=function(e){if(e.response&&e.response.status>=200&&e.response.status<300){var n=JSON.parse(e.response.message);i.id=n.id,i.displayName=n.displayName,i.internal=n.internal,i.online=!0,a||i.host&&i.id&&(a=io(i.host,{query:{id:i.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",t),a&&a.disconnected&&a.connect()}else i.online=!1},n.parent.postMessage({uniqueid:e,options:{url:"http://localhost:9888/api/agent"}},"*")},sforce.opencti.getCallCenterSettings({callback:function(e){i.host=e.returnValue["/Motion/Host"]}}),o(i.keepalive,2e3),n.addEventListener("message",function(n){var o=n.data;i.callbacks[o.uniqueid]&&(i.callbacks[o.uniqueid](o),delete i.callbacks[o.uniqueid],e.$apply())},!1)}IndexController.$inject=["$scope","$window","$interval"];var motion=angular.module("motion",["ngMaterial"]);motion.controller("IndexController",IndexController);
\ No newline at end of file
index 0e6f972..5521a05 100644 (file)
@@ -52,7 +52,7 @@
 
   <script src="vendor.621f9edf.js"></script>
 
-  <script src="app.78cc4d9a.js"></script>
+  <script src="app.b7afceed.js"></script>
 
 </body>
 </html>