HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_new/buyercall/build/public/contact_lead_js.930d5a9617fae7148c0e.js
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "https://buyercalltmp.spericorn.com/static/assets/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 25);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./buyercall/assets/scripts/mobile/contact_leads.js":
/*!**********************************************************!*\
  !*** ./buyercall/assets/scripts/mobile/contact_leads.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("$(function () {\n  var call_uri;\n  getContactList();\n  $(\".add-btn\").attr(\"href\", \"/mobile/contact_add/\" + location.search);\n  $(\"#leadspickerFrom\").datepicker({\n    format: \"mm/dd/yyyy\",\n    autoclose: true\n  });\n  $(\"#leadspickerTo\").datepicker({\n    format: \"mm/dd/yyyy\",\n    autoclose: true\n  });\n});\nfunction getContactList() {\n  params = new URLSearchParams(location.search);\n  search = $('#search').val();\n  username = params.get('username');\n  password = params.get('password');\n  status = $(\"#status-filter\").val();\n  agent = $(\"#agent-filter\").val();\n  start_date = $(\"#leadspickerFrom\").val();\n  end_date = $(\"#leadspickerTo\").val();\n  unassigned_agent = $(\"#unassigned-contacts\").hasClass(\"active\");\n  $.ajax({\n    type: \"GET\",\n    url: \"/mobile/contact_leads_list/\",\n    data: {\n      \"username\": username,\n      \"password\": password,\n      \"search\": search,\n      \"agent\": agent,\n      \"status\": status,\n      \"start_date\": start_date,\n      \"end_date\": end_date,\n      \"unassigned_agent\": unassigned_agent\n    },\n    success: function success(result) {\n      $(\"#contactsList\").html(result.html_content);\n      call_uri = result.call_uri;\n      $(\".add-btn\").attr(\"href\", \"/mobile/contact_add/\" + location.search);\n    }\n  });\n}\n$('#search').on(\"keyup\", function () {\n  getContactList();\n});\n$('.clr-search').on(\"click\", function () {\n  $('#search').val(\"\");\n  getContactList();\n});\n$('#filter-apply').on(\"click\", function () {\n  getContactList();\n  $('#filter-span').addClass(\"active\");\n  $('#filterLeadsModal').modal('hide');\n});\n$('#reset-filter').on(\"click\", function () {\n  $('#filter-span').removeClass(\"active\");\n  $('#filterLeadsModal').find(\"input, select[name='agent']\").val('');\n  $('#filterLeadsModal').find(\"select[name='status']\").val('no status');\n  $('#filterLeadsModal').modal('hide');\n  getContactList();\n});\n$('#viewLeadsModal').on('shown.bs.modal', function (event) {\n  phoneNumber = event.relatedTarget.dataset.attr;\n  contact_id = event.relatedTarget.dataset.id;\n  $(\"#modal-call\").attr(\"href\", call_uri + \":\" + phoneNumber + '?dialAction=voiceCall');\n  $(\"#modal-text\").attr(\"href\", call_uri + \":\" + phoneNumber + '?dialAction=text');\n  $(\"#modal-detail\").attr(\"href\", \"/mobile/contact_detail/\" + contact_id + \"/\" + location.search);\n});\n$('#unassigned-contacts').on(\"click\", function () {\n  if ($(\"#unassigned-contacts\").hasClass('active') == false) {\n    $(\"#unassigned-contacts\").addClass('active');\n    $(\"#my-contacts\").removeClass('active');\n    getContactList();\n  }\n});\n$('#my-contacts').on(\"click\", function () {\n  if ($(\"#my-contacts\").hasClass('active') == false) {\n    $(\"#my-contacts\").addClass('active');\n    $(\"#unassigned-contacts\").removeClass('active');\n    getContactList();\n  }\n});\n\n//# sourceURL=webpack:///./buyercall/assets/scripts/mobile/contact_leads.js?");

/***/ }),

/***/ 25:
/*!****************************************************************!*\
  !*** multi ./buyercall/assets/scripts/mobile/contact_leads.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("module.exports = __webpack_require__(/*! /home/arjun/projects/buyercall_new/buyercall/buyercall/assets/scripts/mobile/contact_leads.js */\"./buyercall/assets/scripts/mobile/contact_leads.js\");\n\n\n//# sourceURL=webpack:///multi_./buyercall/assets/scripts/mobile/contact_leads.js?");

/***/ })

/******/ });