Built xcally-motion-dialpad from commit 7f8e441.|1.0.16 1.0.16
authorDaniele Cinti <daniele.cinti@xcally.com>
Tue, 18 Jul 2017 08:44:31 +0000 (10:44 +0200)
committerDaniele Cinti <daniele.cinti@xcally.com>
Tue, 18 Jul 2017 08:44:31 +0000 (10:44 +0200)
app.6d1e51fb.js [moved from app.92273d85.js with 93% similarity]
index.html

similarity index 93%
rename from app.92273d85.js
rename to app.6d1e51fb.js
index a5e8150..510d5a3 100644 (file)
@@ -1 +1 @@
-"use strict";function IndexController(e,n,o,t){function a(e){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:e.recordId}})}function l(e,o){n.parent.postMessage({uniqueid:o,options:{url:e}},"*")}var s,i=this;console.log("$stateParams",t),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},l("http://localhost:9888/api/hangup",e)},i.dial=function(){var e=Date.now();i.callbacks[e]=function(){i.inCall=!0},l("http://localhost:9888/api/originate/"+i.phone,e)},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,s||i.host&&i.id&&(s=io(i.host,{query:{id:i.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",a),s&&s.disconnected&&s.connect()}else i.online=!1},l("http://localhost:9888/api/agent",e)},i.checkStatus=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.inCall=!!n.length}else i.inCall=!1},l("http://localhost:9888/api/calls",e)},sforce.opencti.getCallCenterSettings({callback:function(e){i.host=e.returnValue["/Motion/Host"]}}),sforce.opencti.enableClickToDial({callback:function(e){console.log("enableClickToDial")}}),sforce.opencti.onClickToDial({listener:function(e){i.online&&e.number&&(i.phone=e.number,i.dial())}}),o(i.keepalive,2e3),o(i.checkStatus,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","$stateProvider"];var motion=angular.module("motion",["ngMaterial"]);motion.controller("IndexController",IndexController);
\ No newline at end of file
+"use strict";function IndexController(e,n,o,t){function a(e){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:e.recordId}})}function l(e,o){n.parent.postMessage({uniqueid:o,options:{url:e}},"*")}var s,i=this;console.log("$stateParams",t),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},l("http://localhost:9888/api/hangup",e)},i.dial=function(){var e=Date.now();i.callbacks[e]=function(){i.inCall=!0},l("http://localhost:9888/api/originate/"+i.phone,e)},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,s||i.host&&i.id&&(s=io(i.host,{query:{id:i.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",a),s&&s.disconnected&&s.connect()}else i.online=!1},l("http://localhost:9888/api/agent",e)},i.checkStatus=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.inCall=!!n.length}else i.inCall=!1},l("http://localhost:9888/api/calls",e)},sforce.opencti.getCallCenterSettings({callback:function(e){i.host=e.returnValue["/Motion/Host"]}}),sforce.opencti.enableClickToDial({callback:function(e){console.log("enableClickToDial")}}),sforce.opencti.onClickToDial({listener:function(e){i.online&&e.number&&(i.phone=e.number,i.dial())}}),o(i.keepalive,2e3),o(i.checkStatus,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","$stateParams"];var motion=angular.module("motion",["ngMaterial","ui.router"]);motion.controller("IndexController",IndexController);
\ No newline at end of file
index 2ad7ab2..d1a0057 100644 (file)
@@ -52,7 +52,7 @@
 
   <script src="vendor.b0d8b566.js"></script>
 
-  <script src="app.92273d85.js"></script>
+  <script src="app.6d1e51fb.js"></script>
 
 </body>
 </html>