Built xcally-motion-dialpad from commit d97975e.|1.0.49 1.0.49
authorDaniele Cinti <daniele.cinti@xcally.com>
Wed, 16 Aug 2017 15:08:12 +0000 (17:08 +0200)
committerDaniele Cinti <daniele.cinti@xcally.com>
Wed, 16 Aug 2017 15:08:12 +0000 (17:08 +0200)
app.15eb4a8f.js [moved from app.657bacb6.js with 82% similarity]
index.html

similarity index 82%
rename from app.657bacb6.js
rename to app.15eb4a8f.js
index 4b4740a..5203744 100644 (file)
@@ -1 +1 @@
-"use strict";function config(n){n.html5Mode(!0)}function IndexController(n,e,o,t,i){function a(n){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:n.recordId}})}function l(n,o){e.postMessage({className:s.lightning?"openctiSoftPhone":"cti_widget_window",uniqueid:o,options:{url:n}},"*")}var c,s=this;console.log("$location",t.search()),s.phone="",s.inCall=!1,s.lightning=t.search().mode&&"lightning"===t.search().mode.toLowerCase(),s.callbacks={},s.compose=function(n){s.phone=s.phone.concat(n)},s.remove=function(){s.phone=s.phone.substring(0,s.phone.length-1)},s.hangup=function(){var n=Date.now();s.callbacks[n]=function(){s.inCall=!1},l("http://localhost:9888/api/hangup",n)},s.dial=function(){var n=Date.now();s.callbacks[n]=function(){s.inCall=!0},l("http://localhost:9888/api/originate/"+s.phone,n)},s.keepalive=function(){var n=Date.now();s.callbacks[n]=function(n){if(n.response&&n.response.status>=200&&n.response.status<300){var e=JSON.parse(n.response.message);s.id=e.id,s.displayName=e.displayName,s.internal=e.internal,s.online=!0,c||s.host&&s.id&&(c=io(s.host,{query:{id:s.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",a),c&&c.disconnected&&c.connect()}else s.online=!1},l("http://localhost:9888/api/agent",n)},s.checkStatus=function(){var n=Date.now();s.callbacks[n]=function(n){if(n.response&&n.response.status>=200&&n.response.status<300){var e=JSON.parse(n.response.message);s.inCall=!!e.length}else s.inCall=!1}},angular.element(document.createElement("base")).href=window.location.pathname,i.loadScript(s.lightning?"js/salesforce/lightning.js":"js/salesforce/interaction.js").then(function(){console.log("Script loaded succesfully"),s.lightning?sforce.opencti.getCallCenterSettings({callback:function(n){s.host=n.returnValue["/Motion/Host"]}}):sforce.interaction.cti.getCallCenterSettings({callback:function(n){s.host=n.returnValue["/Motion/Host"]}}),s.lightning?sforce.opencti.enableClickToDial({callback:function(n){console.log("enableClickToDial")}}):sforce.interaction.cti.enableClickToDial({callback:function(n){console.log("enableClickToDial")}}),s.lightning?sforce.opencti.onClickToDial({listener:function(n){s.online&&n.number&&(s.phone=n.number,s.dial())}}):sforce.interaction.cti.onClickToDial({listener:function(n){s.online&&n.number&&(s.phone=n.number,s.dial())}})}).catch(function(n){console.error(n)}),o(s.checkStatus,2e3),e.addEventListener("message",function(e){var o=e.data;s.callbacks[o.uniqueid]&&(s.callbacks[o.uniqueid](o),delete s.callbacks[o.uniqueid],n.$apply())},!1)}config.$inject=["$locationProvider"],IndexController.$inject=["$scope","$window","$interval","$location","angularLoad"];var motion=angular.module("motion",["ngMaterial","angularLoad"]);motion.config(config),motion.controller("IndexController",IndexController);
\ No newline at end of file
+"use strict";function config(n){n.html5Mode(!0)}function IndexController(n,e,o,t,i){function a(n){sforce.opencti.screenPop({type:sforce.opencti.SCREENPOP_TYPE.SOBJECT,params:{recordId:n.recordId}})}function l(n,o){e.postMessage({className:s.lightning?"openctiSoftPhone":"cti_widget_window",uniqueid:o,options:{url:n}},"*")}var c,s=this;console.log("$location",t.search()),s.phone="",s.inCall=!1,s.lightning=t.search().mode&&"lightning"===t.search().mode.toLowerCase(),s.callbacks={},s.compose=function(n){s.phone=s.phone.concat(n)},s.remove=function(){s.phone=s.phone.substring(0,s.phone.length-1)},s.hangup=function(){var n=Date.now();s.callbacks[n]=function(){s.inCall=!1},l("http://localhost:9888/api/hangup",n)},s.dial=function(){var n=Date.now();s.callbacks[n]=function(){s.inCall=!0},l("http://localhost:9888/api/originate/"+s.phone,n)},s.keepalive=function(){var n=Date.now();s.callbacks[n]=function(n){if(n.response&&n.response.status>=200&&n.response.status<300){var e=JSON.parse(n.response.message);s.id=e.id,s.displayName=e.displayName,s.internal=e.internal,s.online=!0,c||s.host&&s.id&&(c=io(s.host,{query:{id:s.id},autoConnect:!1,transports:["websocket","polling"]})).on("trigger:salesforce:display",a),c&&c.disconnected&&c.connect()}else s.online=!1},l("http://localhost:9888/api/agent",n)},s.checkStatus=function(){var n=Date.now();s.callbacks[n]=function(n){if(n.response&&n.response.status>=200&&n.response.status<300){var e=JSON.parse(n.response.message);s.inCall=!!e.length}else s.inCall=!1}},angular.element(document.createElement("base")).href=window.location.pathname,i.loadScript(s.lightning?"js/salesforce/lightning.js":"js/salesforce/interaction.js").then(function(){console.log("Script loaded succesfully"),s.lightning?sforce.opencti.getCallCenterSettings({callback:function(n){s.host=n.returnValue["/Motion/Host"]}}):sforce.interaction.cti.getCallCenterSettings({callback:function(n){s.host=n.returnValue["/Motion/Host"]}}),s.lightning?sforce.opencti.enableClickToDial({callback:function(n){console.log("enableClickToDial")}}):sforce.interaction.cti.enableClickToDial({callback:function(n){console.log("enableClickToDial")}}),s.lightning?sforce.opencti.onClickToDial({listener:function(n){s.online&&n.number&&(s.phone=n.number,s.dial())}}):sforce.interaction.cti.onClickToDial({listener:function(n){s.online&&n.number&&(s.phone=n.number,s.dial())}})}).catch(function(n){console.error(n)}),o(s.keepalive,2e3),o(s.checkStatus,2e3),e.addEventListener("message",function(e){var o=e.data;s.callbacks[o.uniqueid]&&(s.callbacks[o.uniqueid](o),delete s.callbacks[o.uniqueid],n.$apply())},!1)}config.$inject=["$locationProvider"],IndexController.$inject=["$scope","$window","$interval","$location","angularLoad"];var motion=angular.module("motion",["ngMaterial","angularLoad"]);motion.config(config),motion.controller("IndexController",IndexController);
\ No newline at end of file
index 178d913..fdad25d 100644 (file)
@@ -56,7 +56,7 @@
     document.write("<base href='" + window.location.pathname + "' />");
   </script>
 
-  <script src="app.657bacb6.js"></script>
+  <script src="app.15eb4a8f.js"></script>
 
 </body>
 </html>