uawdijnntqw1x1x1
IP : 18.216.60.85
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
b24.axolotl.ru
/
public_html
/
ru
/
..
/
bitrix
/
js
/
mobile
/
mobile_tools.min.js
/
/
(function(e){if(e.BX.MobileTools)return;BX.MobileTools={getTextBlock:function(e){function o(e){var o=document.createElement("textarea");o.innerHTML=e;return o.value}var n=e.innerHTML.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<br\s*[\/]?>/gi,"~~~---~~~").replace(/~~~---~~~/g,"\n");n=n.replace(/<a\s+href="([^"]+)"[^>]*>([^<]+)<\/a>/gi,(function(e,o,n){if(n.match(/^http/gi)){return'<a href="'+o+'">'+o+"</a>"}else{return e}}));return o(BX.util.strip_tags(n))},openChat:function(e,o){o=o||false;if(!e)return false;if(typeof Application=="undefined"){Application=BXMobileAppContext}if(Application.getApiVersion()>=25){console.info("BX.MobileTools.openChat: open chat in JSNative component");BXMobileApp.Events.postToComponent("onOpenDialog",{dialogId:e,dialogTitleParams:o?{name:o.name||"",avatar:o.avatar||"",color:o.color||"",description:o.description||""}:false},"im.recent");const n={dialogId:e};if(o){n.dialogTitleParams=o}BXMobileApp.Events.postToComponent("ImMobile.Messenger.Dialog:open",n,"im.messenger")}else{console.info("BX.MobileTools.openChat: open new browser page (legacy)");BXMobileApp.PageManager.loadPageUnique({url:(BX.message("MobileSiteDir")?BX.message("MobileSiteDir"):"/")+"mobile/im/dialog.php"+(!app.enableInVersion(11)?"?id="+e:""),bx24ModernStyle:true,data:{dialogId:e}})}return true},phoneTo:function(e,o){o=typeof o=="object"?o:{};if(!this.canUseTelephony()){o.callMethod="device"}if(o.callMethod=="telephony"){BXMobileApp.onCustomEvent("onPhoneTo",{number:e,params:o},true)}else if(o.callMethod=="device"){document.location.href="tel:"+this.correctNumberForPstn(e)}else{var n=[];n.push({title:BX.message("MOBILE_CALL_BY_B24"),callback:function(){o.callMethod="telephony";this.phoneTo(e,o)}.bind(this)});n.push({title:BX.message("MOBILE_CALL_BY_MOBILE"),callback:function(){o.callMethod="device";this.phoneTo(e,o)}.bind(this)});new BXMobileApp.UI.ActionSheet({buttons:n},"im-phone-menu").show()}},callTo:function(e,o){o=typeof o=="undefined"?false:o;BXMobileApp.onCustomEvent("onCallInvite",{userId:e,video:o},true)},correctNumberForPstn:function(e){if(!BX.type.isNotEmptyString(e)){return e}if(e.length<10){return e}if(e.substr(0,1)==="+"){return e}if(e.substr(0,3)==="011"){return e}if(e.substr(0,2)==="82"){return"+"+e}else if(e.substr(0,1)==="8"){return e}return"+"+e},canUseTelephony:function(){return BX.message("can_perform_calls")==="Y"},getMobileUrlParams:function(e){var o=[{exp:/\/company\/personal\/user\/(\d+)\/calendar\/\?EVENT_ID=(\d+).*/gi,replace:"/mobile/calendar/view_event.php?event_id=$2",useNewStyle:false},{exp:/\/company\/personal\/user\/(\d+)\/tasks\/task\/view\/(\d+)\//gi,replace:"/mobile/tasks/snmrouter/?routePage=view&USER_ID=$1&GROUP_ID=0&TASK_ID=$2",useNewStyle:true},{exp:/\/company\/personal\/user\/(\d+)\/tasks\/task\/view\/(\d+)\/\?commentAction=([a-zA-z]+)/gi,replace:"/mobile/tasks/snmrouter/?routePage=view&USER_ID=$1&GROUP_ID=0&TASK_ID=$2",useNewStyle:true},{exp:/\/company\/personal\/user\/(\d+)\/tasks\//gi,replace:"/mobile/tasks/snmrouter/?routePage=list&USER_ID=$1",useNewStyle:true},{exp:/\/company\/personal\/user\/(\d+)\/tasks\/effective\//gi,replace:"/mobile/tasks/snmrouter/?routePage=efficiency",useNewStyle:true},{exp:/\/workgroups\/group\/(\d+)\/tasks\/task\/view\/(\d+)\//gi,replace:"/mobile/tasks/snmrouter/?routePage=view&GROUP_ID=$1&TASK_ID=$2",useNewStyle:true},{exp:/\/company\/personal\/user\/(\d+)\/blog\/(\d+)\/\?commentId=(\d+)#com(\d+)/gi,replace:"/mobile/log/?ACTION=CONVERT&ENTITY_TYPE_ID=BLOG_POST&ENTITY_ID=$2&commentId=$3#com$4",useNewStyle:true},{exp:/\/company\/personal\/user\/(\d+)\/blog\/(\d+)\//gi,replace:"/mobile/log/?ACTION=CONVERT&ENTITY_TYPE_ID=BLOG_POST&ENTITY_ID=$2",useNewStyle:true},{exp:/\/company\/personal\/log\/(\d+)\//gi,replace:"/mobile/log/?ACTION=CONVERT&ENTITY_TYPE_ID=LOG_ENTRY&ENTITY_ID=$1",useNewStyle:true},{exp:/\/company\/personal\/user\/(\d+)\/[$|#]/gi,replace:"/mobile/users/?user_id=$1",useNewStyle:true},{exp:/\/crm\/(deal|lead|company|contact)\/(?:show|details)\/(\d+)\//gi,replace:"/mobile/crm/$1/?page=view&$1_id=$2",useNewStyle:true},{exp:/\/workgroups\/group\/(\d+)\//gi,replace:"/mobile/?group_id=$1",useNewStyle:true,params:{useSearchBar:true,cache:false}},{exp:/\/mobile\/log\/\?group_id=(\d+)/gi,replace:"/mobile/?group_id=$1",useNewStyle:true,params:{useSearchBar:true,cache:false}}];var n=null;for(var t=0;t<o.length;t++){var i=e.replace(o[t].exp,o[t].replace);if(i!=e){n={url:i,bx24ModernStyle:o[t].useNewStyle};if(typeof o[t].params=="object"&&o[t].params!=null){n=Object.assign(n,o[t].params)}break}}return n},getOpenFunction:function(e){var o=null;var n=[{resolveFunction:BX.MobileTools.userIdFromUrl,openFunction:function(e){BXMobileApp.Events.postToComponent("onUserProfileOpen",[e])}},{resolveFunction:BX.MobileTools.actionFromTaskActionUrl,openFunction:function(e){BXMobileApp.Events.postToComponent("task.view.onCommentAction",e,"tasks.view")}},{resolveFunction:BX.MobileTools.taskIdFromUrl,openFunction:function(e){BXMobileApp.Events.postToComponent("taskbackground::task::action",e,"background")}},{resolveFunction:BX.MobileTools.userIdFromTaskEfficiencyUrl,openFunction:function(e){BXMobileApp.Events.postToComponent("taskbackground::efficiency::open",e,"background")}},{resolveFunction:BX.MobileTools.diskFolderIdFromUrl,openFunction:function(e){BXMobileApp.Events.postToComponent("onDiskFolderOpen",[{folderId:e}],"background")}},{resolveFunction:BX.MobileTools.diskFileIdFromUrl,openFunction:function(e){BXMobileApp.Document.open({url:"/mobile/ajax.php?mobile_action=disk_download_file&action=downloadFile&fileId="+e})}},{resolveFunction:BX.MobileTools.diskFileKnowledge,openFunction:function(e){BX.ajax.get("/bitrix/services/main/ajax.php?action=landing.api.diskFile.info&fileId="+e,(function(o){if(typeof o==="string"){o=JSON.parse(o)}if(!o.data){return}app.openDocument({url:"/mobile/ajax.php?mobile_action=disk_download_file&action=downloadFile&fileId="+e,filename:o.data.NAME?o.data.NAME:"File"})}));return false}}];if(Application.getApiVersion()>=41){n.push({resolveFunction:BX.MobileTools.projectIdFromUrl,openFunction:function(e){e.siteId=BX.message("SITE_ID");e.siteDir=BX.message("SITE_DIR");BXMobileApp.Events.postToComponent("projectbackground::project::action",e,"background")}})}var t=null;var i=null;for(var r=0;r<n.length;r++){t=n[r];i=t.resolveFunction.apply(null,[e]);if(i){break}}if(i){o=function(){t.openFunction.apply(this,[i])}}return o},resolveOpenFunction:function(e,o={}){let n=BX.MobileTools.getOpenFunction(e);if(!n){const t=BX.MobileTools.getMobileUrlParams(e);const i=t||{url:e,...o};n=()=>BXMobileApp.PageManager.loadPageBlank(i,true);if(!t){n();return}}return n},resolverCrmCondition:{resolveFunction:e=>{const n=BX.type.isString(e)?e:e.url;if(!n||!BX.type.isStringFilled(n.trim())){return null}const t=["onCRMDealList","onCRMCompanyList","onCRMContactList","onCRMDealView","onCRMCompanyView","onCRMContactView"];const i=Object.keys(o).reverse().find((e=>o[e].test(n)));if(t.includes(i)){return{url:n,eventName:i}}const r=/\/crm\/(deal|company|contact)/gi.test(n);if(r){return{url:n}}return null},openFunction:e=>{BXMobileApp.Events.postToComponent("crmbackground::router",e,"background")}},userIdFromUrl:function(e){var o=[/\/company\/personal\/user\/(\d+)\/($|\?)/i,/\/mobile\/users\/\?.*user_id=(\d+)/i];var n="$1";var t=null;for(var i=0;i<o.length;i++){var r=o[i];var a=e.match(r,n);if(a&&a.length>=2){t=a[1];break}}return t},taskIdFromUrl:function(e){var o=0,n=e.match(/\A?MID=([^#&]+)/);if(n){o=parseInt(n[1])}if(o<=0){n=e.match(/\A?commentId=([^#&]+)/);if(n){o=parseInt(n[1])}}var t=[/\/company\/personal\/user\/(\d+)\/tasks\/task\/view\/(\d+)\//i,/\/workgroups\/group\/(\d+)\/tasks\/task\/view\/(\d+)\//i];for(var i=0;i<t.length;i++){var r=e.match(t[i]);if(r){return{taskId:r[2],messageId:o}}}},actionFromTaskActionUrl:function(e){var o=[/\/company\/personal\/user\/(\d+)\/tasks\/task\/view\/(\d+)\/\?commentAction=([a-zA-Z]+)&deadline=([0-9]+)/i,/\/company\/personal\/user\/(\d+)\/tasks\/task\/view\/(\d+)\/\?commentAction=([a-zA-Z]+)/i];for(var n=0;n<o.length;n++){var t=e.match(o[n]);if(t){return{userId:t[1],taskId:t[2],action:t[3],deadline:t[4]}}}return null},userIdFromTaskEfficiencyUrl:function(e){var o=e.match(/\/company\/personal\/user\/(\d+)\/tasks\/effective\//i);if(o){return{userId:o[1],groupId:0}}return null},diskFolderIdFromUrl:function(e){var o=e.match(/\/bitrix\/tools\/disk\/focus.php\?.*(folderId|objectId)=(\d+)/i);if(o){return o[2]}return null},diskFileIdFromUrl:function(e){var o=e.match(/\/disk\/showFile\/(\d+)\//i);if(o){return o[1]}return null},diskFileKnowledge:function(e){let o=e.match(/#diskFile(\d+)/i);if(o){return o[1]}return null},projectIdFromUrl:function(e){var o=[/\/mobile\/log\/\?group_id=(\d+)/i,/\/workgroups\/group\/(\d+)\//i];for(var n=0;n<o.length;n++){var t=e.match(o[n]);if(t){return{projectId:parseInt(t[1]),action:"view"}}}return null},createCardScanner:function(e){return new function o(){this.onError=function(e){console.error("Error",e)};this.stripEmptyFields=e.stripEmptyFields||false;this.options=e;this.imageData=null;if(e["onResult"]){this.onResult=e["onResult"]}if(e["onError"]){this.onError=e["onError"]}if(e["onImageGet"]){this.onImageGet=e["onImageGet"]}this.open=function(){app.exec("openBusinessCardScanner",{callback:BX.proxy((function(e){if(e.canceled!=1&&e.url.length>0){this.imageData=e;if(this.options["onImageGet"]){this.onImageGet(e)}this.send()}}),this)})};this.send=function(){if(this.options.url){var e=new FileUploadOptions;e.fileKey="card_file";e.fileName="image.jpg";e.mimeType="image/jpeg";e.chunkedMode=false;e.params={image:"Y"};var o=new FileTransfer;o.upload(this.imageData.url,this.options.url,BX.proxy((function(e){try{var o=JSON.parse(e.response);this.UNIQUE_ID=o.UNIQUE_ID;if(o.STATUS!="success"){if(o.ERROR){this.onError(o.ERROR)}return}else{this.options["onImageUploaded"](o)}BXMobileApp.addCustomEvent("onPull-bizcard",this.handler)}catch(e){this.onError(e)}}),this),BX.proxy((function(e){this.onError({code:e.code,message:"Can't upload image"})}),this),e)}};this.handler=BX.proxy((function(e){var o=e.params.RESULT;if(!o.ERROR&&o.UNIQUE_ID==this.UNIQUE_ID){BX.removeCustomEvent("onPull-bizcard",this.handler);if(typeof this.onResult=="function"){var n=o.DATA;var t={DATA:{},CARD_ID:o.CARD_ID};if(typeof n=="object"){if(this.stripEmptyFields){var i={};for(var r in n){if(n[r]!=""){i[r]=n[r]}}t.DATA=i}else{t.DATA=n}this.onResult(t)}else{this.onError(o)}}}}),this)}},requestUserCounters:function(){BXMobileApp.onCustomEvent("requestUserCounters",{web:true},true)},getDesktopStatus:function(){return new Promise((function(e){var o=function(o){e(o);BXMobileApp.Events.unsubscribe("onRequestDesktopStatus")};BXMobileApp.Events.addEventListener("onRequestDesktopStatus",o);BXMobileApp.Events.postToComponent("requestDesktopStatus",{web:true},"communication")}))},openDesktopPage:function(e){return BX.rest.callMethod("im.desktop.page.open",{url:e})}};var o={onLiveFeedFavoriteView:/\/mobile\/index.php\?favorites=Y/gi,onCalendarEventView:/\/mobile\/calendar\/view_event.php\?event_id=(\d+)*/gi,onTaskView:/\/mobile\/tasks\/snmrouter\/\?routePage=view(.*)TASK_ID=/gi,onTaskListView:/\/mobile\/tasks\/snmrouter\/\?routePage=roles/gi,onTaskCreate:/\/mobile\/tasks\/snmrouter\/\?routePage=edit(.*)TASK_ID=0/gi,onTaskEdit:/\/mobile\/tasks\/snmrouter\/\?routePage=edit(.*)TASK_ID=(\d+)/gi,onUserProfileView:/\/mobile\/users\/\?user_id=(.*)/gi,onCRMInvoiceList:/\/mobile\/crm\/invoice/gi,onCRMLeadList:/\/mobile\/crm\/lead/gi,onCRMDealList:/\/mobile\/crm\/deal/gi,onCRMContactList:/\/mobile\/crm\/contact/gi,onCRMActivityList:/\/mobile\/crm\/activity\/list.php/gi,onCRMContactView:/\/mobile\/crm\/contact\/\?page=view&contact_id=/gi,onCRMDealView:/\/mobile\/crm\/deal\/\?page=view&deal_id=/gi,onCRMCompanyView:/\/mobile\/crm\/company\/\?page=view&company_id=/gi,onCRMLeadView:/\/mobile\/crm\/lead\/\?page=view&lead_id=/gi,onCRMQuoteView:/\/mobile\/crm\/quote\/\?page=view"e_id=/gi,onCRMProductView:/\/mobile\/crm\/product\/\?page=view&product_id=/gi,onGroupView:/\/mobile\/\?group_id=(.*)/gi,onBizProcListView:/\/mobile\/bp\/\?USER_STATUS=0$/gi};var n=function(e){for(var n in o){if(e.match(o[n])){return n}}return null};var t=app.loadPageBlank;var i=app.loadPageStart;var r=app.showModalDialog;if(e.mwebrtc){var a=e.mwebrtc.callInvite;e.mwebrtc.callInvite=function(){var o="Outgoing"+(arguments[1]===true?"Video":"Audio")+"Call";a.apply(e.mwebrtc,arguments);if(o&&typeof fabric!="undefined"){fabric.Answers.sendCustomEvent(o,{})}}}var s=function(e){var o=typeof e=="object"?e.url:e;var t=n(o);if(t&&typeof fabric!="undefined"){fabric.Answers.sendCustomEvent(t,{})}};app.showModalDialog=function(e){BX.proxy(r,app)(e);s(e)};app.loadPageBlank=function(e){BX.proxy(t,app)(e);s(e)};app.loadPageStart=function(e){BX.proxy(i,app)(e);s(e)}})(window); //# sourceMappingURL=mobile_tools.map.js
/var/www/axolotl/data/www/b24.axolotl.ru/public_html/ru/../bitrix/js/mobile/mobile_tools.min.js