1(function () { 2 3 angular 4 .module('pipelbiz.Services') 5 .factory('contactService', contactService); 6 7 contactService.$inject = ['httpService']; 8 9 function contactService(httpService) { 10 11 var contactDomain = 'contact.php'; 12 13 var service = { 14 createContact : createContact, 15 deleteContact: deleteContact 16 }; 17 18 return service; 19 20 //////////////////////////////////////////////////////////////// 21 22 // Creates contact 23 function createContact(details) { 24 var fd = new FormData(); 25 26 var oper = "createContact"; 27 28 fd.append('oper', oper); 29 fd.append('cnt_fullname', details.cnt_fullname); 30 fd.append('cnt_phone', details.cnt_phone); 31 fd.append('cnt_email', details.cnt_email); 32 fd.append('cnt_topic', details.cnt_topic); 33 fd.append('cnt_message', details.cnt_message); 34 35 return httpService.sendRequest(contactDomain,'post',fd,''); 36 } 37 38 // Delete contact 39 function deleteContact(cntId) { 40 var fd = new FormData(); 41 42 var oper = "deleteContact"; 43 44 fd.append('oper', oper); 45 fd.append('cnt_id', cntId); 46 47 return httpService.sendRequest(contactDomain,'post',fd,''); 48 } 49 } 50})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.