Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / routes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xefd1=['/api/chat/applications','./api/chatApplication','/api/chat/interactions','/api/chat/messages','./api/chatMessage','/api/chat/offline_messages','./api/chatOfflineMessage','/api/chat/queues','/api/chat/groups','/api/chat/proactive_actions','./api/cmCompany','/api/cm/contacts','./api/cmContact','./api/cmHopper','/api/cm/hopper_black','./api/cmHopperFinal','/api/cm/hopper_history','./api/cmHopperHistory','/api/cm/custom_fields','/api/actions','/api/automations','./api/automation','/api/canned_answers','./api/cannedAnswer','/api/dispositions','./api/disposition','./api/condition','/api/intervals','./api/pause','/api/cdr','./api/cdr','/api/schedules','./api/schedule','/api/sounds','./api/sound','/api/tags','/api/templates','./api/template','/api/triggers','./api/trigger','/api/variables','./api/variable','/api/integrations','./api/integration','/api/integrations/reports','./api/integrationReport','./api/analyticCustomReport','./api/analyticDefaultReport','/api/analytics/extracted_reports','./api/analyticExtractedReport','/api/analytics/metrics','/api/analytics/field_reports','./api/analyticFieldReport','/api/analytics/tree_reports','/api/integrations/salesforce/accounts','/api/integrations/salesforce/configurations','./api/intSalesforceConfiguration','/api/integrations/salesforce/fields','./api/intSalesforceField','/api/integrations/sugarcrm/accounts','./api/intSugarcrmAccount','/api/integrations/sugarcrm/configurations','/api/integrations/sugarcrm/fields','/api/integrations/desk/accounts','./api/intDeskAccount','/api/integrations/desk/configurations','./api/intDeskConfiguration','/api/integrations/desk/fields','./api/intDeskField','/api/integrations/zoho/accounts','./api/intZohoAccount','/api/integrations/zoho/configurations','./api/intZohoConfiguration','/api/integrations/zoho/fields','./api/intZohoField','/api/integrations/zendesk/accounts','/api/integrations/zendesk/configurations','/api/integrations/zendesk/fields','./api/intFreshdeskAccount','/api/integrations/freshdesk/configurations','./api/intFreshdeskConfiguration','/api/integrations/freshdesk/fields','./api/intVtigerAccount','/api/integrations/vtiger/configurations','./api/intVtigerConfiguration','./api/intVtigerField','/api/integrations/servicenow/accounts','/api/integrations/servicenow/configurations','./api/intServicenowConfiguration','./api/intServicenowField','/api/integrations/dynamics365/accounts','/api/integrations/dynamics365/configurations','./api/intDynamics365Configuration','./api/intDynamics365Field','/api/integrations/freshsales/accounts','./api/intFreshsalesAccount','./api/intFreshsalesConfiguration','./api/intFreshsalesField','/api/networks','./api/network','/api/chat/reports/queue','./api/chatQueueReport','/api/chat/internal/messages','./api/jscriptyAnswerReport','/api/jscripty/questions/reports','/api/jscripty/sessions/reports','./api/jscriptySessionReport','/api/sms/reports/queue','/api/square/reports','/api/square/details/reports','/api/jscripty/projects','./api/jscriptyProject','./api/setting','/api/square/projects','./api/squareProject','/api/square/recordings','./api/squareRecording','/api/square/messages','./api/squareMessage','/api/license','./api/license','./api/campaign','/api/migrations','./api/migration','/api/attachments','./api/attachment','/api/plugins','./api/plugin','./api/mailTransferReport','/api/chat/reports/transfer','./api/chatTransferReport','/api/fax/reports/transfer','./api/faxTransferReport','/api/openchannel/reports/transfer','./api/openchannelTransferReport','/api/sms/reports/transfer','./api/smsTransferReport','/api/cm/lists','./api/cmList','/api/voice/prefixes','./api/voicePrefix','/api/userProfiles','./api/userProfile','/api/userProfile/sections','./api/userProfileSection','/api/userProfile/resources','/api/auth/local','./api/authLocal','/api/jira','./api/jira','./api/rpc','./api/version','/api/system','./api/pm2','/apidoc','static','join','root','/www','/demo','/snippet','snippet','1.0.16','/plugins','/server/files/plugins','/:url(api|auth|components|app|bower_components|assets)/*','get','route','resolve','/index.html','path','express-winston','util','./errors','./config/logger','api','auth','default','use','logger','format','method','x-forwarded-for','connection','remoteAddress','url','statusCode','responseTime','user','role','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s','body','device','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)','headers','name','other','agent_id','agent_name','test','/api/users','./api/user','./api/voiceChanSpy','/api/voice/contexts','/api/voice/extensions','/api/voice/mohs','./api/voiceMusicOnHold','/api/voice/queues','./api/voiceQueue','./api/voiceRecording','./api/screenRecording','./api/voiceMail','./api/voiceMailMessage','./api/voiceCallReport','/api/voice/dials/reports','./api/voiceDialReport','/api/voice/agents/reports','./api/voiceAgentReport','/api/voice/queues/reports','./api/voiceQueueReport','/api/members/reports','./api/memberReport','/api/voice/transfers/reports','./api/voiceTransferReport','/api/mail/out_servers','./api/mailServerOut','/api/mail/accounts','./api/mailAccount','/api/mail/queues','./api/mailQueue','./api/mailSubstatus','/api/mail/interactions','./api/mailInteraction','/api/mail/messages','./api/mailMessage','./api/mailApplication','/api/mail/reports/queue','./api/mailQueueReport','./api/dashboard','./api/dashboardItem','/api/fax/accounts','./api/faxAccount','/api/fax/applications','./api/faxApplication','./api/faxInteraction','/api/fax/messages','./api/faxMessage','/api/fax/queues','./api/faxQueue','/api/fax/reports/queue','./api/faxQueueReport','/api/sms/accounts','./api/smsAccount','/api/sms/applications','./api/smsApplication','/api/sms/interactions','./api/smsInteraction','/api/sms/messages','./api/smsMessage','/api/sms/queues','./api/smsQueue','/api/openchannel/accounts','/api/openchannel/applications','/api/openchannel/interactions','/api/openchannel/messages','./api/openchannelMessage','/api/openchannel/queues','./api/openchannelQueue','/api/chat/websites','./api/chatWebsite','/api/openchannel/reports/queue'];(function(_0x3bd5c1,_0x2af194){var _0xd0f143=function(_0x30f078){while(--_0x30f078){_0x3bd5c1['push'](_0x3bd5c1['shift']());}};_0xd0f143(++_0x2af194);}(_0xefd1,0xaa));var _0x1efd=function(_0x2b84f7,_0x3eeb07){_0x2b84f7=_0x2b84f7-0x0;var _0x18f7f1=_0xefd1[_0x2b84f7];return _0x18f7f1;};'use strict';var path=require(_0x1efd('0x0'));var express=require('express');var ewinston=require(_0x1efd('0x1'));var util=require(_0x1efd('0x2'));var errors=require(_0x1efd('0x3'));var config=require('./config/environment');var logger=require(_0x1efd('0x4'))(_0x1efd('0x5'));var authLogger=require(_0x1efd('0x4'))(_0x1efd('0x6'));exports[_0x1efd('0x7')]=function(_0x59ed0f){_0x59ed0f[_0x1efd('0x8')](ewinston[_0x1efd('0x9')]({'winstonInstance':logger,'meta':![],'statusLevels':!![],'msg':function(_0x3416a2,_0x1c7cb3){return util[_0x1efd('0xa')]('%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s',_0x3416a2[_0x1efd('0xb')],_0x3416a2['headers'][_0x1efd('0xc')]?_0x3416a2['headers'][_0x1efd('0xc')]:_0x3416a2[_0x1efd('0xd')][_0x1efd('0xe')]||_0x3416a2['ip'],_0x3416a2[_0x1efd('0xf')],_0x1c7cb3[_0x1efd('0x10')],_0x1c7cb3[_0x1efd('0x11')],_0x3416a2[_0x1efd('0x12')]?_0x3416a2[_0x1efd('0x12')]['id']:null,_0x3416a2[_0x1efd('0x12')]?_0x3416a2[_0x1efd('0x12')]['name']:null,_0x3416a2[_0x1efd('0x12')]?_0x3416a2[_0x1efd('0x12')][_0x1efd('0x13')]:null);}}));_0x59ed0f['use'](ewinston[_0x1efd('0x9')]({'winstonInstance':authLogger,'meta':![],'statusLevels':!![],'msg':function(_0x105616,_0x5487f7){var _0x61d2a6=_0x1efd('0x14');if(_0x105616[_0x1efd('0x15')]&&_0x105616[_0x1efd('0x15')][_0x1efd('0x16')]&&_0x105616[_0x1efd('0x15')]['agent_id']){_0x61d2a6=_0x1efd('0x17');}return util[_0x1efd('0xa')](_0x61d2a6,_0x105616[_0x1efd('0xb')],_0x105616[_0x1efd('0x18')]['x-forwarded-for']?_0x105616[_0x1efd('0x18')][_0x1efd('0xc')]:_0x105616[_0x1efd('0xd')]['remoteAddress']||_0x105616['ip'],_0x105616[_0x1efd('0xf')],_0x5487f7[_0x1efd('0x10')],_0x5487f7['responseTime'],_0x105616[_0x1efd('0x12')]?_0x105616['user']['id']:null,_0x105616[_0x1efd('0x12')]?_0x105616['user'][_0x1efd('0x19')]:null,_0x105616['user']?_0x105616[_0x1efd('0x12')][_0x1efd('0x13')]:null,_0x105616[_0x1efd('0x15')]&&_0x105616[_0x1efd('0x15')][_0x1efd('0x16')]?_0x105616[_0x1efd('0x15')]['device']:_0x1efd('0x1a'),_0x105616[_0x1efd('0x15')]&&_0x105616['body'][_0x1efd('0x1b')]?_0x105616[_0x1efd('0x15')][_0x1efd('0x1b')]:'',_0x105616[_0x1efd('0x15')]&&_0x105616[_0x1efd('0x15')][_0x1efd('0x1c')]?_0x105616[_0x1efd('0x15')]['agent_name']:'');},'ignoreRoute':function(_0x42c3de){var _0xcdb98d=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0xcdb98d[_0x1efd('0x1d')](_0x42c3de[_0x1efd('0xf')]);}}));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x1e'),require(_0x1efd('0x1f')));_0x59ed0f['use']('/api/voice/chanspy',require(_0x1efd('0x20')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x21'),require('./api/voiceContext'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x22'),require('./api/voiceExtension'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x23'),require(_0x1efd('0x24')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x25'),require(_0x1efd('0x26')));_0x59ed0f['use']('/api/voice/recordings',require(_0x1efd('0x27')));_0x59ed0f[_0x1efd('0x8')]('/api/screen/recordings',require(_0x1efd('0x28')));_0x59ed0f[_0x1efd('0x8')]('/api/voice/mails',require(_0x1efd('0x29')));_0x59ed0f[_0x1efd('0x8')]('/api/voice/mails/messages',require(_0x1efd('0x2a')));_0x59ed0f[_0x1efd('0x8')]('/api/voice/calls/reports',require(_0x1efd('0x2b')));_0x59ed0f['use'](_0x1efd('0x2c'),require(_0x1efd('0x2d')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x2e'),require(_0x1efd('0x2f')));_0x59ed0f['use'](_0x1efd('0x30'),require(_0x1efd('0x31')));_0x59ed0f['use'](_0x1efd('0x32'),require(_0x1efd('0x33')));_0x59ed0f['use']('/api/trunks',require('./api/trunk'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x34'),require(_0x1efd('0x35')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x36'),require(_0x1efd('0x37')));_0x59ed0f['use'](_0x1efd('0x38'),require(_0x1efd('0x39')));_0x59ed0f['use'](_0x1efd('0x3a'),require(_0x1efd('0x3b')));_0x59ed0f[_0x1efd('0x8')]('/api/mail/substatuses',require(_0x1efd('0x3c')));_0x59ed0f['use'](_0x1efd('0x3d'),require(_0x1efd('0x3e')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x3f'),require(_0x1efd('0x40')));_0x59ed0f[_0x1efd('0x8')]('/api/mail/applications',require(_0x1efd('0x41')));_0x59ed0f['use'](_0x1efd('0x42'),require(_0x1efd('0x43')));_0x59ed0f[_0x1efd('0x8')]('/api/dashboards',require(_0x1efd('0x44')));_0x59ed0f['use']('/api/dashboards/items',require(_0x1efd('0x45')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x46'),require(_0x1efd('0x47')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x48'),require(_0x1efd('0x49')));_0x59ed0f[_0x1efd('0x8')]('/api/fax/interactions',require(_0x1efd('0x4a')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x4b'),require(_0x1efd('0x4c')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x4d'),require(_0x1efd('0x4e')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x4f'),require(_0x1efd('0x50')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x51'),require(_0x1efd('0x52')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x53'),require(_0x1efd('0x54')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x55'),require(_0x1efd('0x56')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x57'),require(_0x1efd('0x58')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x59'),require(_0x1efd('0x5a')));_0x59ed0f['use'](_0x1efd('0x5b'),require('./api/openchannelAccount'));_0x59ed0f['use'](_0x1efd('0x5c'),require('./api/openchannelApplication'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x5d'),require('./api/openchannelInteraction'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x5e'),require(_0x1efd('0x5f')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x60'),require(_0x1efd('0x61')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x62'),require(_0x1efd('0x63')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x64'),require('./api/openchannelQueueReport'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x65'),require(_0x1efd('0x66')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x67'),require('./api/chatInteraction'));_0x59ed0f['use'](_0x1efd('0x68'),require(_0x1efd('0x69')));_0x59ed0f['use'](_0x1efd('0x6a'),require(_0x1efd('0x6b')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x6c'),require('./api/chatQueue'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x6d'),require('./api/chatGroup'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x6e'),require('./api/chatProactiveAction'));_0x59ed0f[_0x1efd('0x8')]('/api/cm/companies',require(_0x1efd('0x6f')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x70'),require(_0x1efd('0x71')));_0x59ed0f[_0x1efd('0x8')]('/api/cm/hopper',require(_0x1efd('0x72')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x73'),require('./api/cmHopperBlack'));_0x59ed0f['use']('/api/cm/hopper_final',require(_0x1efd('0x74')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x75'),require(_0x1efd('0x76')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x77'),require('./api/cmCustomField'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x78'),require('./api/action'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x79'),require(_0x1efd('0x7a')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x7b'),require(_0x1efd('0x7c')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x7d'),require(_0x1efd('0x7e')));_0x59ed0f['use']('/api/conditions',require(_0x1efd('0x7f')));_0x59ed0f['use'](_0x1efd('0x80'),require('./api/interval'));_0x59ed0f[_0x1efd('0x8')]('/api/pauses',require(_0x1efd('0x81')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x82'),require(_0x1efd('0x83')));_0x59ed0f[_0x1efd('0x8')]('/api/voiceQueuesLog',require('./api/voiceQueuesLog'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x84'),require(_0x1efd('0x85')));_0x59ed0f['use'](_0x1efd('0x86'),require(_0x1efd('0x87')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x88'),require('./api/tag'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x89'),require(_0x1efd('0x8a')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x8b'),require(_0x1efd('0x8c')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x8d'),require(_0x1efd('0x8e')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x8f'),require(_0x1efd('0x90')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x91'),require(_0x1efd('0x92')));_0x59ed0f[_0x1efd('0x8')]('/api/analytics/custom_reports',require(_0x1efd('0x93')));_0x59ed0f[_0x1efd('0x8')]('/api/analytics/default_reports',require(_0x1efd('0x94')));_0x59ed0f['use'](_0x1efd('0x95'),require(_0x1efd('0x96')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x97'),require('./api/analyticMetric'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x98'),require(_0x1efd('0x99')));_0x59ed0f['use'](_0x1efd('0x9a'),require('./api/analyticTreeReport'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x9b'),require('./api/intSalesforceAccount'));_0x59ed0f['use'](_0x1efd('0x9c'),require(_0x1efd('0x9d')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x9e'),require(_0x1efd('0x9f')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xa0'),require(_0x1efd('0xa1')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xa2'),require('./api/intSugarcrmConfiguration'));_0x59ed0f['use'](_0x1efd('0xa3'),require('./api/intSugarcrmField'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xa4'),require(_0x1efd('0xa5')));_0x59ed0f['use'](_0x1efd('0xa6'),require(_0x1efd('0xa7')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xa8'),require(_0x1efd('0xa9')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xaa'),require(_0x1efd('0xab')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xac'),require(_0x1efd('0xad')));_0x59ed0f['use'](_0x1efd('0xae'),require(_0x1efd('0xaf')));_0x59ed0f['use'](_0x1efd('0xb0'),require('./api/intZendeskAccount'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xb1'),require('./api/intZendeskConfiguration'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xb2'),require('./api/intZendeskField'));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/freshdesk/accounts',require(_0x1efd('0xb3')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xb4'),require(_0x1efd('0xb5')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xb6'),require('./api/intFreshdeskField'));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/vtiger/accounts',require(_0x1efd('0xb7')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xb8'),require(_0x1efd('0xb9')));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/vtiger/fields',require(_0x1efd('0xba')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xbb'),require('./api/intServicenowAccount'));_0x59ed0f['use'](_0x1efd('0xbc'),require(_0x1efd('0xbd')));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/servicenow/fields',require(_0x1efd('0xbe')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xbf'),require('./api/intDynamics365Account'));_0x59ed0f['use'](_0x1efd('0xc0'),require(_0x1efd('0xc1')));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/dynamics365/fields',require(_0x1efd('0xc2')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xc3'),require(_0x1efd('0xc4')));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/freshsales/configurations',require(_0x1efd('0xc5')));_0x59ed0f[_0x1efd('0x8')]('/api/integrations/freshsales/fields',require(_0x1efd('0xc6')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xc7'),require(_0x1efd('0xc8')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xc9'),require(_0x1efd('0xca')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xcb'),require('./api/chatInternalMessage'));_0x59ed0f['use']('/api/jscripty/answers/reports',require(_0x1efd('0xcc')));_0x59ed0f['use'](_0x1efd('0xcd'),require('./api/jscriptyQuestionReport'));_0x59ed0f['use'](_0x1efd('0xce'),require(_0x1efd('0xcf')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xd0'),require('./api/smsQueueReport'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xd1'),require('./api/squareReport'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xd2'),require('./api/squareReportDetail'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xd3'),require(_0x1efd('0xd4')));_0x59ed0f[_0x1efd('0x8')]('/api/settings',require(_0x1efd('0xd5')));_0x59ed0f[_0x1efd('0x8')]('/api/square/odbc',require('./api/squareOdbc'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xd6'),require(_0x1efd('0xd7')));_0x59ed0f['use'](_0x1efd('0xd8'),require(_0x1efd('0xd9')));_0x59ed0f['use'](_0x1efd('0xda'),require(_0x1efd('0xdb')));_0x59ed0f[_0x1efd('0x8')]('/api/teams',require('./api/team'));_0x59ed0f['use'](_0x1efd('0xdc'),require(_0x1efd('0xdd')));_0x59ed0f[_0x1efd('0x8')]('/api/campaigns',require(_0x1efd('0xde')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xdf'),require(_0x1efd('0xe0')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xe1'),require(_0x1efd('0xe2')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xe3'),require(_0x1efd('0xe4')));_0x59ed0f['use']('/api/mail/reports/transfer',require(_0x1efd('0xe5')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xe6'),require(_0x1efd('0xe7')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xe8'),require(_0x1efd('0xe9')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xea'),require(_0x1efd('0xeb')));_0x59ed0f['use'](_0x1efd('0xec'),require(_0x1efd('0xed')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xee'),require(_0x1efd('0xef')));_0x59ed0f['use'](_0x1efd('0xf0'),require(_0x1efd('0xf1')));_0x59ed0f['use'](_0x1efd('0xf2'),require(_0x1efd('0xf3')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xf4'),require(_0x1efd('0xf5')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xf6'),require('./api/userProfileResource'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xf7'),require(_0x1efd('0xf8')));_0x59ed0f[_0x1efd('0x8')]('/api/auth/google',require('./api/authGoogle'));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xf9'),require(_0x1efd('0xfa')));_0x59ed0f[_0x1efd('0x8')]('/api/rpc',require(_0x1efd('0xfb')));_0x59ed0f[_0x1efd('0x8')]('/api/version',require(_0x1efd('0xfc')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xfd'),require('./api/system'));_0x59ed0f[_0x1efd('0x8')]('/api/pm2',require(_0x1efd('0xfe')));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0xff'),express[_0x1efd('0x100')](path[_0x1efd('0x101')](config[_0x1efd('0x102')],_0x1efd('0xff'))));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x103'),express[_0x1efd('0x100')](path[_0x1efd('0x101')](config['root'],_0x1efd('0x103'))));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x104'),express[_0x1efd('0x100')](path['join'](config[_0x1efd('0x102')],_0x1efd('0x104'))));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x105'),express[_0x1efd('0x100')](path[_0x1efd('0x101')](config[_0x1efd('0x102')],_0x1efd('0x106'),_0x1efd('0x107'))));_0x59ed0f[_0x1efd('0x8')](_0x1efd('0x108'),express[_0x1efd('0x100')](path[_0x1efd('0x101')](config[_0x1efd('0x102')],_0x1efd('0x109'))));_0x59ed0f['route'](_0x1efd('0x10a'))[_0x1efd('0x10b')](errors[0x194]);_0x59ed0f[_0x1efd('0x10c')]('/*')[_0x1efd('0x10b')](function(_0x205026,_0x5e1a79){_0x5e1a79['sendFile'](path[_0x1efd('0x10d')](_0x59ed0f[_0x1efd('0x10b')]('appPath')+_0x1efd('0x10e')));});};