let path = '/__browser/'; window.$m = window.$m || {}; $m.api = $m.api || {}; window['__templateBlockLoader'] = (new function () { var __range = document.createRange(); var __subscribers = []; this.append = function (buid, props) { if (!buid) { console.warn('buid not passed!'); return; } var container = document.getElementById(buid); $m.api.callDynamicBlock(buid, props).then(function (html) { let frag = __range.createContextualFragment(html); container.innerHTML = ''; container.appendChild(frag); __subscribers.map( function(fn) { fn(buid, container); }); }); }; this.onLoad = function (fn) { __subscribers.push(fn); }; }()); /** * just a simple fetch wrapper */ var post = function(url, opts) { var data = { headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, method: 'POST', credentials: 'same-origin', body: JSON.stringify(opts) }; return fetch(url, data) .then(function (resp) { if (!resp.ok) { // TODO handle !resp.ok throw new Error('wrapped fetch wrong'); } var contentType = resp.headers.get('content-type'); if (contentType && contentType.includes('application/json')) { return resp.json(); }; return resp.text(); // TODO type BLOB is not handled yet. }) .catch(function(err){return err; }); //todo throw err }; /** * Server function wrapper "sendRecoveryLink" */ $m.api['sendRecoveryLink'] = function sendRecoveryLink(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function sendRecoveryLink; \n Expected arguments count is 2 '); } return post(path, {fnName: 'sendRecoveryLink', args: args}); }; // was here /** * Server function wrapper "addObjectAccess" */ $m.api['addObjectAccess'] = function addObjectAccess(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addObjectAccess; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addObjectAccess', args: args}); }; // was here /** * Server function wrapper "addTaskAccess" */ $m.api['addTaskAccess'] = function addTaskAccess(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addTaskAccess; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addTaskAccess', args: args}); }; // was here /** * Server function wrapper "addObjectListAccess" */ $m.api['addObjectListAccess'] = function addObjectListAccess(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addObjectListAccess; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addObjectListAccess', args: args}); }; // was here /** * Server function wrapper "getObjectAccess" */ $m.api['getObjectAccess'] = function getObjectAccess(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getObjectAccess; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getObjectAccess', args: args}); }; // was here /** * Server function wrapper "getTaskAccess" */ $m.api['getTaskAccess'] = function getTaskAccess(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getTaskAccess; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getTaskAccess', args: args}); }; // was here /** * Server function wrapper "deleteAccessLink" */ $m.api['deleteAccessLink'] = function deleteAccessLink(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function deleteAccessLink; \n Expected arguments count is 3 '); } return post(path, {fnName: 'deleteAccessLink', args: args}); }; // was here /** * Server function wrapper "deleteTaskLink1" */ $m.api['deleteTaskLink1'] = function deleteTaskLink1(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function deleteTaskLink1; \n Expected arguments count is 3 '); } return post(path, {fnName: 'deleteTaskLink1', args: args}); }; // was here /** * Server function wrapper "getBuilding" */ $m.api['getBuilding'] = function getBuilding(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getBuilding; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getBuilding', args: args}); }; // was here /** * Server function wrapper "addBuilding" */ $m.api['addBuilding'] = function addBuilding(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addBuilding; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addBuilding', args: args}); }; // was here /** * Server function wrapper "getBuildingList" */ $m.api['getBuildingList'] = function getBuildingList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getBuildingList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getBuildingList', args: args}); }; // was here /** * Server function wrapper "addArea" */ $m.api['addArea'] = function addArea(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addArea; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addArea', args: args}); }; // was here /** * Server function wrapper "getArea" */ $m.api['getArea'] = function getArea(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getArea; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getArea', args: args}); }; // was here /** * Server function wrapper "getAreaList" */ $m.api['getAreaList'] = function getAreaList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getAreaList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getAreaList', args: args}); }; // was here /** * Server function wrapper "getFilterPlanningList" */ $m.api['getFilterPlanningList'] = function getFilterPlanningList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFilterPlanningList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFilterPlanningList', args: args}); }; // was here /** * Server function wrapper "getFilterAdsList" */ $m.api['getFilterAdsList'] = function getFilterAdsList(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getFilterAdsList; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getFilterAdsList', args: args}); }; // was here /** * Server function wrapper "addPlanning" */ $m.api['addPlanning'] = function addPlanning(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addPlanning; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addPlanning', args: args}); }; // was here /** * Server function wrapper "getPlanning" */ $m.api['getPlanning'] = function getPlanning(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getPlanning; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getPlanning', args: args}); }; // was here /** * Server function wrapper "getPlanningList" */ $m.api['getPlanningList'] = function getPlanningList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getPlanningList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getPlanningList', args: args}); }; // was here /** * Server function wrapper "searchAreaList" */ $m.api['searchAreaList'] = function searchAreaList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function searchAreaList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'searchAreaList', args: args}); }; // was here /** * Server function wrapper "getPaginationArea" */ $m.api['getPaginationArea'] = function getPaginationArea(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPaginationArea; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPaginationArea', args: args}); }; // was here /** * Server function wrapper "addContent" */ $m.api['addContent'] = function addContent(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addContent; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addContent', args: args}); }; // was here /** * Server function wrapper "getContentList" */ $m.api['getContentList'] = function getContentList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getContentList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getContentList', args: args}); }; // was here /** * Server function wrapper "getContent" */ $m.api['getContent'] = function getContent(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getContent; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getContent', args: args}); }; // was here /** * Server function wrapper "addToFavorites" */ $m.api['addToFavorites'] = function addToFavorites(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function addToFavorites; \n Expected arguments count is 3 '); } return post(path, {fnName: 'addToFavorites', args: args}); }; // was here /** * Server function wrapper "deleteFromFavorites" */ $m.api['deleteFromFavorites'] = function deleteFromFavorites(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function deleteFromFavorites; \n Expected arguments count is 3 '); } return post(path, {fnName: 'deleteFromFavorites', args: args}); }; // was here /** * Server function wrapper "getTender" */ $m.api['getTender'] = function getTender(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTender; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTender', args: args}); }; // was here /** * Server function wrapper "addTender" */ $m.api['addTender'] = function addTender(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addTender; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addTender', args: args}); }; // was here /** * Server function wrapper "getRefList" */ $m.api['getRefList'] = function getRefList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getRefList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getRefList', args: args}); }; // was here /** * Server function wrapper "itemSearch" */ $m.api['itemSearch'] = function itemSearch(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function itemSearch; \n Expected arguments count is 2 '); } return post(path, {fnName: 'itemSearch', args: args}); }; // was here /** * Server function wrapper "getItemsByProp" */ $m.api['getItemsByProp'] = function getItemsByProp(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function getItemsByProp; \n Expected arguments count is 3 '); } return post(path, {fnName: 'getItemsByProp', args: args}); }; // was here /** * Server function wrapper "getPropList" */ $m.api['getPropList'] = function getPropList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPropList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPropList', args: args}); }; // was here /** * Server function wrapper "getServicePropsList" */ $m.api['getServicePropsList'] = function getServicePropsList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getServicePropsList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getServicePropsList', args: args}); }; // was here /** * Server function wrapper "deleteAvatar" */ $m.api['deleteAvatar'] = function deleteAvatar(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function deleteAvatar; \n Expected arguments count is 2 '); } return post(path, {fnName: 'deleteAvatar', args: args}); }; // was here /** * Server function wrapper "addFolder" */ $m.api['addFolder'] = function addFolder(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addFolder; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addFolder', args: args}); }; // was here /** * Server function wrapper "renameFolder" */ $m.api['renameFolder'] = function renameFolder(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function renameFolder; \n Expected arguments count is 2 '); } return post(path, {fnName: 'renameFolder', args: args}); }; // was here /** * Server function wrapper "addFlat" */ $m.api['addFlat'] = function addFlat(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addFlat; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addFlat', args: args}); }; // was here /** * Server function wrapper "getFlatList" */ $m.api['getFlatList'] = function getFlatList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFlatList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFlatList', args: args}); }; // was here /** * Server function wrapper "getFlat" */ $m.api['getFlat'] = function getFlat(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getFlat; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getFlat', args: args}); }; // was here /** * Server function wrapper "addFlatListChess" */ $m.api['addFlatListChess'] = function addFlatListChess(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function addFlatListChess; \n Expected arguments count is 3 '); } return post(path, {fnName: 'addFlatListChess', args: args}); }; // was here /** * Server function wrapper "addRating" */ $m.api['addRating'] = function addRating(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function addRating; \n Expected arguments count is 3 '); } return post(path, {fnName: 'addRating', args: args}); }; // was here /** * Server function wrapper "getRating" */ $m.api['getRating'] = function getRating(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getRating; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getRating', args: args}); }; // was here /** * Server function wrapper "getSubjectsList" */ $m.api['getSubjectsList'] = function getSubjectsList(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getSubjectsList; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getSubjectsList', args: args}); }; // was here /** * Server function wrapper "getSubjectsList2" */ $m.api['getSubjectsList2'] = function getSubjectsList2(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getSubjectsList2; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getSubjectsList2', args: args}); }; // was here /** * Server function wrapper "getSubjectsIdList" */ $m.api['getSubjectsIdList'] = function getSubjectsIdList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubjectsIdList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubjectsIdList', args: args}); }; // was here /** * Server function wrapper "addSubjectLink" */ $m.api['addSubjectLink'] = function addSubjectLink(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addSubjectLink; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addSubjectLink', args: args}); }; // was here /** * Server function wrapper "addSubjectLinkList" */ $m.api['addSubjectLinkList'] = function addSubjectLinkList(...args) { if ( arguments.length !== 4 ) { console.warn(' Server function addSubjectLinkList; \n Expected arguments count is 4 '); } return post(path, {fnName: 'addSubjectLinkList', args: args}); }; // was here /** * Server function wrapper "getCompanyList" */ $m.api['getCompanyList'] = function getCompanyList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCompanyList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCompanyList', args: args}); }; // was here /** * Server function wrapper "getCompany" */ $m.api['getCompany'] = function getCompany(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCompany; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCompany', args: args}); }; // was here /** * Server function wrapper "addCompany" */ $m.api['addCompany'] = function addCompany(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addCompany; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addCompany', args: args}); }; // was here /** * Server function wrapper "getFilterCompanyList" */ $m.api['getFilterCompanyList'] = function getFilterCompanyList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFilterCompanyList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFilterCompanyList', args: args}); }; // was here /** * Server function wrapper "getDataPropertyCompany" */ $m.api['getDataPropertyCompany'] = function getDataPropertyCompany(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getDataPropertyCompany; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getDataPropertyCompany', args: args}); }; // was here /** * Server function wrapper "getBuildList" */ $m.api['getBuildList'] = function getBuildList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getBuildList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getBuildList', args: args}); }; // was here /** * Server function wrapper "setCompanyType" */ $m.api['setCompanyType'] = function setCompanyType(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setCompanyType; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setCompanyType', args: args}); }; // was here /** * Server function wrapper "getSubjectsIdByTaskId" */ $m.api['getSubjectsIdByTaskId'] = function getSubjectsIdByTaskId(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubjectsIdByTaskId; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubjectsIdByTaskId', args: args}); }; // was here /** * Server function wrapper "addComment" */ $m.api['addComment'] = function addComment(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addComment; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addComment', args: args}); }; // was here /** * Server function wrapper "getComments" */ $m.api['getComments'] = function getComments(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getComments; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getComments', args: args}); }; // was here /** * Server function wrapper "getCommentsUnder" */ $m.api['getCommentsUnder'] = function getCommentsUnder(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCommentsUnder; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCommentsUnder', args: args}); }; // was here /** * Server function wrapper "addLead" */ $m.api['addLead'] = function addLead(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLead; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLead', args: args}); }; // was here /** * Server function wrapper "getItem" */ $m.api['getItem'] = function getItem(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getItem; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getItem', args: args}); }; // was here /** * Server function wrapper "addLeadService" */ $m.api['addLeadService'] = function addLeadService(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLeadService; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLeadService', args: args}); }; // was here /** * Server function wrapper "getPaginationEmployees" */ $m.api['getPaginationEmployees'] = function getPaginationEmployees(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPaginationEmployees; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPaginationEmployees', args: args}); }; // was here /** * Server function wrapper "addLeadSupply" */ $m.api['addLeadSupply'] = function addLeadSupply(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLeadSupply; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLeadSupply', args: args}); }; // was here /** * Server function wrapper "addTask" */ $m.api['addTask'] = function addTask(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addTask; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addTask', args: args}); }; // was here /** * Server function wrapper "updateStatusLead" */ $m.api['updateStatusLead'] = function updateStatusLead(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function updateStatusLead; \n Expected arguments count is 1 '); } return post(path, {fnName: 'updateStatusLead', args: args}); }; // was here /** * Server function wrapper "addSubTask" */ $m.api['addSubTask'] = function addSubTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addSubTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addSubTask', args: args}); }; // was here /** * Server function wrapper "getSubTaskList" */ $m.api['getSubTaskList'] = function getSubTaskList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubTaskList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubTaskList', args: args}); }; // was here /** * Server function wrapper "addLeadBeton" */ $m.api['addLeadBeton'] = function addLeadBeton(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLeadBeton; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLeadBeton', args: args}); }; // was here /** * Server function wrapper "addLeadVehicle" */ $m.api['addLeadVehicle'] = function addLeadVehicle(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLeadVehicle; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLeadVehicle', args: args}); }; // was here /** * Server function wrapper "addLeadCompany" */ $m.api['addLeadCompany'] = function addLeadCompany(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLeadCompany; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLeadCompany', args: args}); }; // was here /** * Server function wrapper "addHelpTask" */ $m.api['addHelpTask'] = function addHelpTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addHelpTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addHelpTask', args: args}); }; // was here /** * Server function wrapper "rewriteLeadService" */ $m.api['rewriteLeadService'] = function rewriteLeadService(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function rewriteLeadService; \n Expected arguments count is 1 '); } return post(path, {fnName: 'rewriteLeadService', args: args}); }; // was here /** * Server function wrapper "addLeadRequest" */ $m.api['addLeadRequest'] = function addLeadRequest(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addLeadRequest; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addLeadRequest', args: args}); }; // was here /** * Server function wrapper "getTaskList" */ $m.api['getTaskList'] = function getTaskList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getTaskList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getTaskList', args: args}); }; // was here /** * Server function wrapper "getFaktList" */ $m.api['getFaktList'] = function getFaktList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFaktList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFaktList', args: args}); }; // was here /** * Server function wrapper "getTask" */ $m.api['getTask'] = function getTask(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getTask; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getTask', args: args}); }; // was here /** * Server function wrapper "getTaskStatus" */ $m.api['getTaskStatus'] = function getTaskStatus(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTaskStatus; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTaskStatus', args: args}); }; // was here /** * Server function wrapper "getMyTasks" */ $m.api['getMyTasks'] = function getMyTasks(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getMyTasks; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getMyTasks', args: args}); }; // was here /** * Server function wrapper "addTaskList" */ $m.api['addTaskList'] = function addTaskList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addTaskList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addTaskList', args: args}); }; // was here /** * Server function wrapper "addTaskHomeConstruction" */ $m.api['addTaskHomeConstruction'] = function addTaskHomeConstruction(...args) { if ( arguments.length !== 4 ) { console.warn(' Server function addTaskHomeConstruction; \n Expected arguments count is 4 '); } return post(path, {fnName: 'addTaskHomeConstruction', args: args}); }; // was here /** * Server function wrapper "deleteTask" */ $m.api['deleteTask'] = function deleteTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteTask', args: args}); }; // was here /** * Server function wrapper "setValueTask" */ $m.api['setValueTask'] = function setValueTask(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function setValueTask; \n Expected arguments count is 3 '); } return post(path, {fnName: 'setValueTask', args: args}); }; // was here /** * Server function wrapper "getTaskLink" */ $m.api['getTaskLink'] = function getTaskLink(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTaskLink; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTaskLink', args: args}); }; // was here /** * Server function wrapper "addTaskLink" */ $m.api['addTaskLink'] = function addTaskLink(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addTaskLink; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addTaskLink', args: args}); }; // was here /** * Server function wrapper "setTimeTask" */ $m.api['setTimeTask'] = function setTimeTask(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function setTimeTask; \n Expected arguments count is 3 '); } return post(path, {fnName: 'setTimeTask', args: args}); }; // was here /** * Server function wrapper "addFactTask" */ $m.api['addFactTask'] = function addFactTask(...args) { if ( arguments.length !== 7 ) { console.warn(' Server function addFactTask; \n Expected arguments count is 7 '); } return post(path, {fnName: 'addFactTask', args: args}); }; // was here /** * Server function wrapper "deleteTaskLink" */ $m.api['deleteTaskLink'] = function deleteTaskLink(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteTaskLink; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteTaskLink', args: args}); }; // was here /** * Server function wrapper "updateOwnerOfTask" */ $m.api['updateOwnerOfTask'] = function updateOwnerOfTask(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function updateOwnerOfTask; \n Expected arguments count is 3 '); } return post(path, {fnName: 'updateOwnerOfTask', args: args}); }; // was here /** * Server function wrapper "addContractor" */ $m.api['addContractor'] = function addContractor(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addContractor; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addContractor', args: args}); }; // was here /** * Server function wrapper "getTaskListByCompanyId" */ $m.api['getTaskListByCompanyId'] = function getTaskListByCompanyId(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTaskListByCompanyId; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTaskListByCompanyId', args: args}); }; // was here /** * Server function wrapper "duplicateProject" */ $m.api['duplicateProject'] = function duplicateProject(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function duplicateProject; \n Expected arguments count is 1 '); } return post(path, {fnName: 'duplicateProject', args: args}); }; // was here /** * Server function wrapper "duplicateTask" */ $m.api['duplicateTask'] = function duplicateTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function duplicateTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'duplicateTask', args: args}); }; // was here /** * Server function wrapper "getTaskListByText" */ $m.api['getTaskListByText'] = function getTaskListByText(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getTaskListByText; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getTaskListByText', args: args}); }; // was here /** * Server function wrapper "getJoinCompany" */ $m.api['getJoinCompany'] = function getJoinCompany(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getJoinCompany; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getJoinCompany', args: args}); }; // was here /** * Server function wrapper "addService" */ $m.api['addService'] = function addService(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addService; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addService', args: args}); }; // was here /** * Server function wrapper "getService" */ $m.api['getService'] = function getService(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getService; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getService', args: args}); }; // was here /** * Server function wrapper "getServiceList" */ $m.api['getServiceList'] = function getServiceList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getServiceList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getServiceList', args: args}); }; // was here /** * Server function wrapper "getFilterServiceList" */ $m.api['getFilterServiceList'] = function getFilterServiceList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFilterServiceList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFilterServiceList', args: args}); }; // was here /** * Server function wrapper "addEquipment" */ $m.api['addEquipment'] = function addEquipment(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addEquipment; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addEquipment', args: args}); }; // was here /** * Server function wrapper "getEquipmentList" */ $m.api['getEquipmentList'] = function getEquipmentList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getEquipmentList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getEquipmentList', args: args}); }; // was here /** * Server function wrapper "getEquipment" */ $m.api['getEquipment'] = function getEquipment(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getEquipment; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getEquipment', args: args}); }; // was here /** * Server function wrapper "addVehicle" */ $m.api['addVehicle'] = function addVehicle(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addVehicle; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addVehicle', args: args}); }; // was here /** * Server function wrapper "getSubjectAccess" */ $m.api['getSubjectAccess'] = function getSubjectAccess(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubjectAccess; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubjectAccess', args: args}); }; // was here /** * Server function wrapper "getFilterVehicleList" */ $m.api['getFilterVehicleList'] = function getFilterVehicleList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFilterVehicleList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFilterVehicleList', args: args}); }; // was here /** * Server function wrapper "getVehicleList" */ $m.api['getVehicleList'] = function getVehicleList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getVehicleList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getVehicleList', args: args}); }; // was here /** * Server function wrapper "getVehicles" */ $m.api['getVehicles'] = function getVehicles(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getVehicles; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getVehicles', args: args}); }; // was here /** * Server function wrapper "addSupply" */ $m.api['addSupply'] = function addSupply(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addSupply; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addSupply', args: args}); }; // was here /** * Server function wrapper "getSupplyList" */ $m.api['getSupplyList'] = function getSupplyList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getSupplyList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getSupplyList', args: args}); }; // was here /** * Server function wrapper "getFilterSupplyList" */ $m.api['getFilterSupplyList'] = function getFilterSupplyList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFilterSupplyList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFilterSupplyList', args: args}); }; // was here /** * Server function wrapper "addProduct" */ $m.api['addProduct'] = function addProduct(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addProduct; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addProduct', args: args}); }; // was here /** * Server function wrapper "addMaterial" */ $m.api['addMaterial'] = function addMaterial(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addMaterial; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addMaterial', args: args}); }; // was here /** * Server function wrapper "addJob" */ $m.api['addJob'] = function addJob(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addJob; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addJob', args: args}); }; // was here /** * Server function wrapper "getJobList" */ $m.api['getJobList'] = function getJobList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getJobList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getJobList', args: args}); }; // was here /** * Server function wrapper "getJobListOfTaskLink" */ $m.api['getJobListOfTaskLink'] = function getJobListOfTaskLink(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getJobListOfTaskLink; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getJobListOfTaskLink', args: args}); }; // was here /** * Server function wrapper "getJobTenders" */ $m.api['getJobTenders'] = function getJobTenders(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getJobTenders; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getJobTenders', args: args}); }; // was here /** * Server function wrapper "getRefSelect" */ $m.api['getRefSelect'] = function getRefSelect(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getRefSelect; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getRefSelect', args: args}); }; // was here /** * Server function wrapper "getProp" */ $m.api['getProp'] = function getProp(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getProp; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getProp', args: args}); }; // was here /** * Server function wrapper "getPropFilter" */ $m.api['getPropFilter'] = function getPropFilter(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPropFilter; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPropFilter', args: args}); }; // was here /** * Server function wrapper "deleteItem" */ $m.api['deleteItem'] = function deleteItem(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteItem; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteItem', args: args}); }; // was here /** * Server function wrapper "deleteImg" */ $m.api['deleteImg'] = function deleteImg(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteImg; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteImg', args: args}); }; // was here /** * Server function wrapper "publishItem" */ $m.api['publishItem'] = function publishItem(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function publishItem; \n Expected arguments count is 2 '); } return post(path, {fnName: 'publishItem', args: args}); }; // was here /** * Server function wrapper "getPerson" */ $m.api['getPerson'] = function getPerson(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPerson; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPerson', args: args}); }; // was here /** * Server function wrapper "getFilterItemList" */ $m.api['getFilterItemList'] = function getFilterItemList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFilterItemList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFilterItemList', args: args}); }; // was here /** * Server function wrapper "transferItem" */ $m.api['transferItem'] = function transferItem(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function transferItem; \n Expected arguments count is 1 '); } return post(path, {fnName: 'transferItem', args: args}); }; // was here /** * Server function wrapper "addItemLink" */ $m.api['addItemLink'] = function addItemLink(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addItemLink; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addItemLink', args: args}); }; // was here /** * Server function wrapper "searchItemList" */ $m.api['searchItemList'] = function searchItemList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function searchItemList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'searchItemList', args: args}); }; // was here /** * Server function wrapper "addCommercial" */ $m.api['addCommercial'] = function addCommercial(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addCommercial; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addCommercial', args: args}); }; // was here /** * Server function wrapper "getUnitList" */ $m.api['getUnitList'] = function getUnitList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getUnitList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getUnitList', args: args}); }; // was here /** * Server function wrapper "getPersonsList" */ $m.api['getPersonsList'] = function getPersonsList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getPersonsList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getPersonsList', args: args}); }; // was here /** * Server function wrapper "addEmployee" */ $m.api['addEmployee'] = function addEmployee(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addEmployee; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addEmployee', args: args}); }; // was here /** * Server function wrapper "setPhone" */ $m.api['setPhone'] = function setPhone(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setPhone; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setPhone', args: args}); }; // was here /** * Server function wrapper "getEmployeesList" */ $m.api['getEmployeesList'] = function getEmployeesList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getEmployeesList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getEmployeesList', args: args}); }; // was here /** * Server function wrapper "getContractorList" */ $m.api['getContractorList'] = function getContractorList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getContractorList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getContractorList', args: args}); }; // was here /** * Server function wrapper "editEmployeePost" */ $m.api['editEmployeePost'] = function editEmployeePost(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function editEmployeePost; \n Expected arguments count is 1 '); } return post(path, {fnName: 'editEmployeePost', args: args}); }; // was here /** * Server function wrapper "getSubjectLinkList" */ $m.api['getSubjectLinkList'] = function getSubjectLinkList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubjectLinkList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubjectLinkList', args: args}); }; // was here /** * Server function wrapper "searchSubject" */ $m.api['searchSubject'] = function searchSubject(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function searchSubject; \n Expected arguments count is 1 '); } return post(path, {fnName: 'searchSubject', args: args}); }; // was here /** * Server function wrapper "getFavoriteLink" */ $m.api['getFavoriteLink'] = function getFavoriteLink(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getFavoriteLink; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getFavoriteLink', args: args}); }; // was here /** * Server function wrapper "updateFileName" */ $m.api['updateFileName'] = function updateFileName(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function updateFileName; \n Expected arguments count is 1 '); } return post(path, {fnName: 'updateFileName', args: args}); }; // was here /** * Server function wrapper "getFileList" */ $m.api['getFileList'] = function getFileList(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getFileList; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getFileList', args: args}); }; // was here /** * Server function wrapper "deleteSubjectLink" */ $m.api['deleteSubjectLink'] = function deleteSubjectLink(...args) { if ( arguments.length !== 4 ) { console.warn(' Server function deleteSubjectLink; \n Expected arguments count is 4 '); } return post(path, {fnName: 'deleteSubjectLink', args: args}); }; // was here /** * Server function wrapper "deleteSubject" */ $m.api['deleteSubject'] = function deleteSubject(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteSubject; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteSubject', args: args}); }; // was here /** * Server function wrapper "addMainImages" */ $m.api['addMainImages'] = function addMainImages(...args) { if ( arguments.length !== 4 ) { console.warn(' Server function addMainImages; \n Expected arguments count is 4 '); } return post(path, {fnName: 'addMainImages', args: args}); }; // was here /** * Server function wrapper "getCity" */ $m.api['getCity'] = function getCity(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCity; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCity', args: args}); }; // was here /** * Server function wrapper "addRequest" */ $m.api['addRequest'] = function addRequest(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addRequest; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addRequest', args: args}); }; // was here /** * Server function wrapper "getPaginationRequest" */ $m.api['getPaginationRequest'] = function getPaginationRequest(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPaginationRequest; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPaginationRequest', args: args}); }; // was here /** * Server function wrapper "getPropValue" */ $m.api['getPropValue'] = function getPropValue(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function getPropValue; \n Expected arguments count is 3 '); } return post(path, {fnName: 'getPropValue', args: args}); }; // was here /** * Server function wrapper "getSubjectJob" */ $m.api['getSubjectJob'] = function getSubjectJob(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getSubjectJob; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getSubjectJob', args: args}); }; // was here /** * Server function wrapper "getSubjectResponse" */ $m.api['getSubjectResponse'] = function getSubjectResponse(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getSubjectResponse; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getSubjectResponse', args: args}); }; // was here /** * Server function wrapper "getSumSubTask" */ $m.api['getSumSubTask'] = function getSumSubTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSumSubTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSumSubTask', args: args}); }; // was here /** * Server function wrapper "updateVehicleTypeLink" */ $m.api['updateVehicleTypeLink'] = function updateVehicleTypeLink(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function updateVehicleTypeLink; \n Expected arguments count is 2 '); } return post(path, {fnName: 'updateVehicleTypeLink', args: args}); }; // was here /** * Server function wrapper "getPropTreeList" */ $m.api['getPropTreeList'] = function getPropTreeList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getPropTreeList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getPropTreeList', args: args}); }; // was here /** * Server function wrapper "setParentProp" */ $m.api['setParentProp'] = function setParentProp(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setParentProp; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setParentProp', args: args}); }; // was here /** * Server function wrapper "addPropValue" */ $m.api['addPropValue'] = function addPropValue(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function addPropValue; \n Expected arguments count is 0 '); } return post(path, {fnName: 'addPropValue', args: args}); }; // was here /** * Server function wrapper "ganttTask" */ $m.api['ganttTask'] = function ganttTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function ganttTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'ganttTask', args: args}); }; // was here /** * Server function wrapper "getProject" */ $m.api['getProject'] = function getProject(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getProject; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getProject', args: args}); }; // was here /** * Server function wrapper "setWeight" */ $m.api['setWeight'] = function setWeight(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setWeight; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setWeight', args: args}); }; // was here /** * Server function wrapper "getAssigmentList" */ $m.api['getAssigmentList'] = function getAssigmentList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getAssigmentList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getAssigmentList', args: args}); }; // was here /** * Server function wrapper "getSubject" */ $m.api['getSubject'] = function getSubject(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubject; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubject', args: args}); }; // was here /** * Server function wrapper "getLeadsList" */ $m.api['getLeadsList'] = function getLeadsList(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getLeadsList; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getLeadsList', args: args}); }; // was here /** * Server function wrapper "getLead" */ $m.api['getLead'] = function getLead(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getLead; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getLead', args: args}); }; // was here /** * Server function wrapper "addRequestItem" */ $m.api['addRequestItem'] = function addRequestItem(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addRequestItem; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addRequestItem', args: args}); }; // was here /** * Server function wrapper "getRequestList" */ $m.api['getRequestList'] = function getRequestList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getRequestList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getRequestList', args: args}); }; // was here /** * Server function wrapper "addAcceptRequest" */ $m.api['addAcceptRequest'] = function addAcceptRequest(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addAcceptRequest; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addAcceptRequest', args: args}); }; // was here /** * Server function wrapper "declineRequest" */ $m.api['declineRequest'] = function declineRequest(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function declineRequest; \n Expected arguments count is 1 '); } return post(path, {fnName: 'declineRequest', args: args}); }; // was here /** * Server function wrapper "getRequestCompanies" */ $m.api['getRequestCompanies'] = function getRequestCompanies(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getRequestCompanies; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getRequestCompanies', args: args}); }; // was here /** * Server function wrapper "getCatOfVehicle" */ $m.api['getCatOfVehicle'] = function getCatOfVehicle(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCatOfVehicle; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCatOfVehicle', args: args}); }; // was here /** * Server function wrapper "addSecondaryFlat" */ $m.api['addSecondaryFlat'] = function addSecondaryFlat(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addSecondaryFlat; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addSecondaryFlat', args: args}); }; // was here /** * Server function wrapper "getTasksWithMessages" */ $m.api['getTasksWithMessages'] = function getTasksWithMessages(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTasksWithMessages; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTasksWithMessages', args: args}); }; // was here /** * Server function wrapper "getTime" */ $m.api['getTime'] = function getTime(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTime; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTime', args: args}); }; // was here /** * Server function wrapper "addTime" */ $m.api['addTime'] = function addTime(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addTime; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addTime', args: args}); }; // was here /** * Server function wrapper "endTime" */ $m.api['endTime'] = function endTime(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function endTime; \n Expected arguments count is 1 '); } return post(path, {fnName: 'endTime', args: args}); }; // was here /** * Server function wrapper "setSubjectGuid" */ $m.api['setSubjectGuid'] = function setSubjectGuid(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setSubjectGuid; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setSubjectGuid', args: args}); }; // was here /** * Server function wrapper "setSubjectIdDevice" */ $m.api['setSubjectIdDevice'] = function setSubjectIdDevice(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setSubjectIdDevice; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setSubjectIdDevice', args: args}); }; // was here /** * Server function wrapper "addItemProp" */ $m.api['addItemProp'] = function addItemProp(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addItemProp; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addItemProp', args: args}); }; // was here /** * Server function wrapper "getFloorLayoutList" */ $m.api['getFloorLayoutList'] = function getFloorLayoutList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getFloorLayoutList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getFloorLayoutList', args: args}); }; // was here /** * Server function wrapper "getChatList" */ $m.api['getChatList'] = function getChatList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getChatList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getChatList', args: args}); }; // was here /** * Server function wrapper "getProjectFactList" */ $m.api['getProjectFactList'] = function getProjectFactList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getProjectFactList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getProjectFactList', args: args}); }; // was here /** * Server function wrapper "getTaskListMobile" */ $m.api['getTaskListMobile'] = function getTaskListMobile(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTaskListMobile; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTaskListMobile', args: args}); }; // was here /** * Server function wrapper "getTaskMobile" */ $m.api['getTaskMobile'] = function getTaskMobile(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getTaskMobile; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getTaskMobile', args: args}); }; // was here /** * Server function wrapper "getAccessData" */ $m.api['getAccessData'] = function getAccessData(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getAccessData; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getAccessData', args: args}); }; // was here /** * Server function wrapper "getSubTaskListMobile" */ $m.api['getSubTaskListMobile'] = function getSubTaskListMobile(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getSubTaskListMobile; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getSubTaskListMobile', args: args}); }; // was here /** * Server function wrapper "addTaskCheckByStroykontr" */ $m.api['addTaskCheckByStroykontr'] = function addTaskCheckByStroykontr(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addTaskCheckByStroykontr; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addTaskCheckByStroykontr', args: args}); }; // was here /** * Server function wrapper "addTaskAcceptByProrab" */ $m.api['addTaskAcceptByProrab'] = function addTaskAcceptByProrab(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addTaskAcceptByProrab; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addTaskAcceptByProrab', args: args}); }; // was here /** * Server function wrapper "getManagerTaskList" */ $m.api['getManagerTaskList'] = function getManagerTaskList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getManagerTaskList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getManagerTaskList', args: args}); }; // was here /** * Server function wrapper "deleteProject" */ $m.api['deleteProject'] = function deleteProject(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteProject; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteProject', args: args}); }; // was here /** * Server function wrapper "getChart" */ $m.api['getChart'] = function getChart(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getChart; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getChart', args: args}); }; // was here /** * Server function wrapper "setChart" */ $m.api['setChart'] = function setChart(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setChart; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setChart', args: args}); }; // was here /** * Server function wrapper "setParentId" */ $m.api['setParentId'] = function setParentId(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setParentId; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setParentId', args: args}); }; // was here /** * Server function wrapper "getAssignments" */ $m.api['getAssignments'] = function getAssignments(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getAssignments; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getAssignments', args: args}); }; // was here /** * Server function wrapper "getManagers" */ $m.api['getManagers'] = function getManagers(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getManagers; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getManagers', args: args}); }; // was here /** * Server function wrapper "getCat" */ $m.api['getCat'] = function getCat(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCat; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCat', args: args}); }; // was here /** * Server function wrapper "getTaskFilter" */ $m.api['getTaskFilter'] = function getTaskFilter(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTaskFilter; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTaskFilter', args: args}); }; // was here /** * Server function wrapper "setTaskFilter" */ $m.api['setTaskFilter'] = function setTaskFilter(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setTaskFilter; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setTaskFilter', args: args}); }; // was here /** * Server function wrapper "getManagersTaskTree" */ $m.api['getManagersTaskTree'] = function getManagersTaskTree(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getManagersTaskTree; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getManagersTaskTree', args: args}); }; // was here /** * Server function wrapper "addCommercialProposal" */ $m.api['addCommercialProposal'] = function addCommercialProposal(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function addCommercialProposal; \n Expected arguments count is 2 '); } return post(path, {fnName: 'addCommercialProposal', args: args}); }; // was here /** * Server function wrapper "getMembersListChildTasks" */ $m.api['getMembersListChildTasks'] = function getMembersListChildTasks(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getMembersListChildTasks; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getMembersListChildTasks', args: args}); }; // was here /** * Server function wrapper "getCountRespondedJob" */ $m.api['getCountRespondedJob'] = function getCountRespondedJob(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getCountRespondedJob; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getCountRespondedJob', args: args}); }; // was here /** * Server function wrapper "sendPushBySubjectId" */ $m.api['sendPushBySubjectId'] = function sendPushBySubjectId(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function sendPushBySubjectId; \n Expected arguments count is 2 '); } return post(path, {fnName: 'sendPushBySubjectId', args: args}); }; // was here /** * Server function wrapper "addMessageList" */ $m.api['addMessageList'] = function addMessageList(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addMessageList; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addMessageList', args: args}); }; // was here /** * Server function wrapper "addHouse" */ $m.api['addHouse'] = function addHouse(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addHouse; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addHouse', args: args}); }; // was here /** * Server function wrapper "getTechnicalTask" */ $m.api['getTechnicalTask'] = function getTechnicalTask(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getTechnicalTask; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getTechnicalTask', args: args}); }; // was here /** * Server function wrapper "updateTechnicalTask" */ $m.api['updateTechnicalTask'] = function updateTechnicalTask(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function updateTechnicalTask; \n Expected arguments count is 2 '); } return post(path, {fnName: 'updateTechnicalTask', args: args}); }; // was here /** * Server function wrapper "addNewOrder" */ $m.api['addNewOrder'] = function addNewOrder(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function addNewOrder; \n Expected arguments count is 1 '); } return post(path, {fnName: 'addNewOrder', args: args}); }; // was here /** * Server function wrapper "sendVerificationCode" */ $m.api['sendVerificationCode'] = function sendVerificationCode(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function sendVerificationCode; \n Expected arguments count is 2 '); } return post(path, {fnName: 'sendVerificationCode', args: args}); }; // was here /** * Server function wrapper "compareVerificationCode" */ $m.api['compareVerificationCode'] = function compareVerificationCode(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function compareVerificationCode; \n Expected arguments count is 1 '); } return post(path, {fnName: 'compareVerificationCode', args: args}); }; // was here /** * Server function wrapper "createPaymentOrder" */ $m.api['createPaymentOrder'] = function createPaymentOrder(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function createPaymentOrder; \n Expected arguments count is 1 '); } return post(path, {fnName: 'createPaymentOrder', args: args}); }; // was here /** * Server function wrapper "getComment" */ $m.api['getComment'] = function getComment(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function getComment; \n Expected arguments count is 1 '); } return post(path, {fnName: 'getComment', args: args}); }; // was here /** * Server function wrapper "getTaskId" */ $m.api['getTaskId'] = function getTaskId(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function getTaskId; \n Expected arguments count is 2 '); } return post(path, {fnName: 'getTaskId', args: args}); }; // was here /** * Server function wrapper "templateBlock" */ $m.api['templateBlock'] = function templateBlock(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function templateBlock; \n Expected arguments count is 3 '); } return post(path, {fnName: 'templateBlock', args: args}); }; // was here /** * Server function wrapper "callDynamicBlock" */ $m.api['callDynamicBlock'] = function callDynamicBlock(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function callDynamicBlock; \n Expected arguments count is 2 '); } return post(path, {fnName: 'callDynamicBlock', args: args}); }; // was here /** * Server function wrapper "openFile" */ $m.api['openFile'] = function openFile(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function openFile; \n Expected arguments count is 1 '); } return post(path, {fnName: 'openFile', args: args}); }; // was here /** * Server function wrapper "deleteFile" */ $m.api['deleteFile'] = function deleteFile(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function deleteFile; \n Expected arguments count is 1 '); } return post(path, {fnName: 'deleteFile', args: args}); }; // was here /** * Server function wrapper "login" */ $m.api['login'] = function login(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function login; \n Expected arguments count is 1 '); } return post(path, {fnName: 'login', args: args}); }; // was here /** * Server function wrapper "isLogged" */ $m.api['isLogged'] = function isLogged(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function isLogged; \n Expected arguments count is 0 '); } return post(path, {fnName: 'isLogged', args: args}); }; // was here /** * Server function wrapper "registerUser" */ $m.api['registerUser'] = function registerUser(...args) { if ( arguments.length !== 4 ) { console.warn(' Server function registerUser; \n Expected arguments count is 4 '); } return post(path, {fnName: 'registerUser', args: args}); }; // was here /** * Server function wrapper "recoverPassword" */ $m.api['recoverPassword'] = function recoverPassword(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function recoverPassword; \n Expected arguments count is 1 '); } return post(path, {fnName: 'recoverPassword', args: args}); }; // was here /** * Server function wrapper "setNewPassword" */ $m.api['setNewPassword'] = function setNewPassword(...args) { if ( arguments.length !== 2 ) { console.warn(' Server function setNewPassword; \n Expected arguments count is 2 '); } return post(path, {fnName: 'setNewPassword', args: args}); }; // was here /** * Server function wrapper "changeOldPassword" */ $m.api['changeOldPassword'] = function changeOldPassword(...args) { if ( arguments.length !== 3 ) { console.warn(' Server function changeOldPassword; \n Expected arguments count is 3 '); } return post(path, {fnName: 'changeOldPassword', args: args}); }; // was here /** * Server function wrapper "updateAccountData" */ $m.api['updateAccountData'] = function updateAccountData(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function updateAccountData; \n Expected arguments count is 1 '); } return post(path, {fnName: 'updateAccountData', args: args}); }; // was here /** * Server function wrapper "updateAccountType" */ $m.api['updateAccountType'] = function updateAccountType(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function updateAccountType; \n Expected arguments count is 1 '); } return post(path, {fnName: 'updateAccountType', args: args}); }; // was here /** * Server function wrapper "getUserBySession" */ $m.api['getUserBySession'] = function getUserBySession(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function getUserBySession; \n Expected arguments count is 0 '); } return post(path, {fnName: 'getUserBySession', args: args}); }; // was here /** * Server function wrapper "logout" */ $m.api['logout'] = function logout(...args) { if ( arguments.length !== 0 ) { console.warn(' Server function logout; \n Expected arguments count is 0 '); } return post(path, {fnName: 'logout', args: args}); }; // was here /** * Server function wrapper "changeAccountPassword" */ $m.api['changeAccountPassword'] = function changeAccountPassword(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function changeAccountPassword; \n Expected arguments count is 1 '); } return post(path, {fnName: 'changeAccountPassword', args: args}); }; // was here /** * Server function wrapper "saveAccountInfo" */ $m.api['saveAccountInfo'] = function saveAccountInfo(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function saveAccountInfo; \n Expected arguments count is 1 '); } return post(path, {fnName: 'saveAccountInfo', args: args}); }; // was here /** * Server function wrapper "saveNewPw" */ $m.api['saveNewPw'] = function saveNewPw(...args) { if ( arguments.length !== 1 ) { console.warn(' Server function saveNewPw; \n Expected arguments count is 1 '); } return post(path, {fnName: 'saveNewPw', args: args}); }; // was here