1 line
3.9 KiB
JavaScript
1 line
3.9 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.removeCustomer=t():(e.ntt=e.ntt||{},e.ntt.smartit=e.ntt.smartit||{},e.ntt.smartit.removeCustomer=t())}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"removeCreateCustomer",function(){return a}),r(1);var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,i(t).apply(this,arguments))}var r,n,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,ntt.smartit.api.ICustomModule),r=t,(n=[{key:"name",value:function(){return"removeCreateCustomer"}},{key:"injectTemplates",value:function(){return{"views/custom-widgets/person-name.html":[{id:"scopeControllerRemoveCustomer",method:"add",mode:"partial",type:"jquery",selector:function(e){return e.find("div.person-name__editor")[0]},snippet:'<scope-controller-remove-customer ng-if="data.value"></scope-controller-remove-customer>'}],"views/create/custom-add-user-dropdown.html":[{id:"removeCustomer",mode:"attribute",attributes:{replace:{"ng-If":"false"}},method:"replace",type:"jquery",selector:function(e){return e.find("div.create-new-customer__popup")}}],"views/smart-recorder/smart-recorder-search.html":[{id:"removeCustomer",mode:"attribute",attributes:{replace:{"ng-If":"false"}},method:"replace",type:"jquery",selector:function(e){return e.find("div.smart-recorder__popup-header_create_customer")}}]}}},{key:"templates",value:function(){return[]}},{key:"i18nLocales",value:function(){return[]}}])&&o(r.prototype,n),a&&o(r,a),t}();ntt.smartit.api.nttSmartitModules.push(new a)},function(e,t){angular.module("ticketModule").directive("scopeControllerRemoveCustomer",["i18nService","nttGenericService","events","objectValueMapperService",function(e,t,r,n){return{restrict:"E",template:"",replace:!1,link:function(e,t,r){},controller:["$scope","$element","$attrs",function(e,t,r){var n=e.$parent.update;e.$parent.update=function(e){e.isEmptyResult||n(e)}}]}}])}])}); |