Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / api / user / index.js
1 const a646_0x535f=['getVoicePrefixes','delete','addContacts','put','files/images/','getChatInteractions','/:id/openchannel_accounts','addWhatsappInteractions','/:id/groups','create','/whoami','/:id/login','addFaxInteractions','addTeams','removeChatInteractions','/:id/mail/interactions','getFaxAccounts','isAuthenticated','removeSmsAccounts','/:id/prefixes','/:id/sms/interactions','getSmsInteractions','getScheduledCalls','removeFaxInteractions','file','/:id/queues','addQueues','addChatWebsites','/:id/openchannel/interactions','/:id/unpause','/:id/chat/interactions','/:id/fax_interactions','getAvatar','removeFaxAccounts','/:id/teams','removeQueues','removeOpenchannelAccounts','logout','getMailAccounts','bulkCreate','removeMailInteractions','addAvatar','/:id/avatar','removeWhatsappInteractions','/:id/lists','addOpenchannelInteractions','getAgents','post','describe','addOpenchannelAccounts','/:id/sms_accounts','login','getApiKey','getMailInteractions','addChatInteractions','addMailAccounts','update','/:id/mail_accounts','/:id/square_projects','exports','/:id/fax_accounts','getFaxInteractions','addMailInteractions','getChatWebsites','getQueues','/:id/api_key','getGroups','addWhatsappAccounts','destroy','/:id/agents','./user.controller','getContacts','/:id/chat_interactions','removeChatWebsites','addFaxAccounts','path','join','multer','diskStorage','addSmsAccounts','single','getOpenchannelAccounts','/:id/scheduled_calls','getLists','/:id','removeApiKey','getOpenchannelInteractions','../../config/environment','getSmsAccounts','/:id/logout','getVoiceQueuesRt','/:id/mail_interactions','/:id/chat_websites','Router','removeWhatsappAccounts','getScreenRecordings','index','whoami','/:id/password','express','/:id/recordings','/:id/openchannel_interactions','getRecordings','createApiKey','/:id/contacts','/:id/whatsapp_accounts','get','/:id/whatsapp/interactions'];(function(_0x164d7e,_0x535fb5){const _0x43d97e=function(_0x3990ed){while(--_0x3990ed){_0x164d7e['push'](_0x164d7e['shift']());}};_0x43d97e(++_0x535fb5);}(a646_0x535f,0xce));const a646_0x43d9=function(_0x164d7e,_0x535fb5){_0x164d7e=_0x164d7e-0x0;let _0x43d97e=a646_0x535f[_0x164d7e];return _0x43d97e;};const _0x803625=a646_0x43d9;'use strict';const multer=require(_0x803625('0x57')),util=require('util'),path=require(_0x803625('0x55')),express=require(_0x803625('0x1')),router=express[_0x803625('0x67')](),auth=require('../../components/auth/service'),config=require(_0x803625('0x61')),controller=require(_0x803625('0x50'));router['get']('/',auth[_0x803625('0x1b')](),controller[_0x803625('0x6a')]),router['get']('/describe',auth[_0x803625('0x1b')](),controller[_0x803625('0x3a')]),router['get'](_0x803625('0x14'),auth[_0x803625('0x1b')](),controller[_0x803625('0x6b')]),router[_0x803625('0x8')](_0x803625('0x5e'),auth[_0x803625('0x1b')](),controller['show']),router[_0x803625('0x8')](_0x803625('0x34'),controller[_0x803625('0x2a')]),router['get'](_0x803625('0x6'),auth[_0x803625('0x1b')](),controller[_0x803625('0x51')]),router[_0x803625('0x8')](_0x803625('0x23'),auth[_0x803625('0x1b')](),controller[_0x803625('0x4a')]),router[_0x803625('0x8')]('/:id/queues_rt',auth['isAuthenticated'](),controller[_0x803625('0x64')]),router[_0x803625('0x8')](_0x803625('0x12'),auth['isAuthenticated'](),controller[_0x803625('0x4c')]),router[_0x803625('0x8')](_0x803625('0x2'),auth[_0x803625('0x1b')](),controller[_0x803625('0x4')]),router[_0x803625('0x8')]('/:id/screen_recordings',auth[_0x803625('0x1b')](),controller[_0x803625('0x69')]),router[_0x803625('0x8')](_0x803625('0x28'),auth[_0x803625('0x1b')](),controller[_0x803625('0xf')]),router[_0x803625('0x8')](_0x803625('0x26'),auth['isAuthenticated'](),controller[_0x803625('0x60')]),router['get'](_0x803625('0x19'),auth['isAuthenticated'](),controller[_0x803625('0x3f')]),router[_0x803625('0x8')](_0x803625('0x1e'),auth[_0x803625('0x1b')](),controller[_0x803625('0x1f')]),router[_0x803625('0x8')]('/:id/fax/interactions',auth[_0x803625('0x1b')](),controller[_0x803625('0x47')]),router[_0x803625('0x8')](_0x803625('0x9'),auth[_0x803625('0x1b')](),controller['getWhatsappInteractions']),router['get']('/:id/teams',auth['isAuthenticated'](),controller['getTeams']),router[_0x803625('0x8')](_0x803625('0x36'),auth['isAuthenticated'](),controller[_0x803625('0x5d')]),router[_0x803625('0x8')](_0x803625('0x4f'),auth[_0x803625('0x1b')](),controller[_0x803625('0x38')]),router['get'](_0x803625('0x1d'),auth['isAuthenticated'](),controller[_0x803625('0xa')]),router[_0x803625('0x8')](_0x803625('0x46'),auth['isAuthenticated'](),controller[_0x803625('0x1a')]),router['get'](_0x803625('0x43'),auth['isAuthenticated'](),controller[_0x803625('0x30')]),router[_0x803625('0x8')]('/:id/openchannel_accounts',auth['isAuthenticated'](),controller[_0x803625('0x5b')]),router['get'](_0x803625('0x3c'),auth[_0x803625('0x1b')](),controller[_0x803625('0x62')]),router[_0x803625('0x8')](_0x803625('0x66'),auth[_0x803625('0x1b')](),controller[_0x803625('0x49')]),router[_0x803625('0x8')](_0x803625('0x7'),auth['isAuthenticated'](),controller['getWhatsappAccounts']),router['get']('/:id/square_projects',auth[_0x803625('0x1b')](),controller['getSquareProjects']),router['get'](_0x803625('0x5c'),auth[_0x803625('0x1b')](),controller[_0x803625('0x20')]),router[_0x803625('0x8')](_0x803625('0x4b'),auth['isAuthenticated'](),controller[_0x803625('0x3e')]),router[_0x803625('0x39')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x803625('0xc')]),router['post']('/',auth['isAuthenticated'](),controller[_0x803625('0x13')]),router['post']('/create_many',auth['isAuthenticated'](),controller[_0x803625('0x31')]),router[_0x803625('0x39')](_0x803625('0x23'),auth[_0x803625('0x1b')](),controller[_0x803625('0x24')]);const upload=multer({'storage':multer[_0x803625('0x58')]({'destination':function(_0x3990ed,_0x3fc964,_0x20ccea){const _0x14e716=_0x803625;_0x20ccea(null,path[_0x14e716('0x56')](config['root'],_0x14e716('0xe')));},'filename':function(_0x2b703a,_0x4d5572,_0x1e3ad4){_0x1e3ad4(null,util['format']('%s-%s',Date['now'](),_0x4d5572['originalname']));}})});router['post'](_0x803625('0x34'),upload[_0x803625('0x5a')](_0x803625('0x22')),controller[_0x803625('0x33')]),router[_0x803625('0x39')](_0x803625('0x15'),auth['isAuthenticated'](),controller[_0x803625('0x3d')]),router[_0x803625('0x39')](_0x803625('0x63'),auth['isAuthenticated'](),controller[_0x803625('0x2f')]),router[_0x803625('0x39')]('/:id/pause',auth[_0x803625('0x1b')](),controller['pause']),router[_0x803625('0x39')](_0x803625('0x27'),auth['isAuthenticated'](),controller['unpause']),router[_0x803625('0x39')](_0x803625('0x2c'),auth[_0x803625('0x1b')](),controller[_0x803625('0x17')]),router[_0x803625('0x39')]('/:id/chat_interactions',auth[_0x803625('0x1b')](),controller[_0x803625('0x40')]),router['post'](_0x803625('0x65'),auth[_0x803625('0x1b')](),controller[_0x803625('0x48')]),router['post'](_0x803625('0x29'),auth[_0x803625('0x1b')](),controller[_0x803625('0x16')]),router[_0x803625('0x39')]('/:id/sms_interactions',auth[_0x803625('0x1b')](),controller['addSmsInteractions']),router['post'](_0x803625('0x3'),auth[_0x803625('0x1b')](),controller[_0x803625('0x37')]),router[_0x803625('0x39')]('/:id/whatsapp_interactions',auth['isAuthenticated'](),controller[_0x803625('0x11')]),router[_0x803625('0x39')](_0x803625('0x46'),auth[_0x803625('0x1b')](),controller[_0x803625('0x54')]),router[_0x803625('0x39')]('/:id/mail_accounts',auth[_0x803625('0x1b')](),controller[_0x803625('0x41')]),router[_0x803625('0x39')](_0x803625('0x10'),auth[_0x803625('0x1b')](),controller[_0x803625('0x3b')]),router['post'](_0x803625('0x3c'),auth[_0x803625('0x1b')](),controller[_0x803625('0x59')]),router['post'](_0x803625('0x66'),auth[_0x803625('0x1b')](),controller[_0x803625('0x25')]),router[_0x803625('0x39')](_0x803625('0x7'),auth[_0x803625('0x1b')](),controller[_0x803625('0x4d')]),router[_0x803625('0x39')]('/:id/square_projects',auth[_0x803625('0x1b')](),controller['addSquareProjects']),router[_0x803625('0x39')](_0x803625('0x4b'),auth[_0x803625('0x1b')](),controller[_0x803625('0x5')]),router[_0x803625('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x803625('0x42')]),router['put'](_0x803625('0x0'),auth[_0x803625('0x1b')](),controller['changePassword']),router[_0x803625('0xb')](_0x803625('0x23'),auth[_0x803625('0x1b')](),controller[_0x803625('0x2d')]),router[_0x803625('0xb')](_0x803625('0x2c'),auth['isAuthenticated'](),controller['removeTeams']),router[_0x803625('0xb')](_0x803625('0x5e'),auth[_0x803625('0x1b')](),controller[_0x803625('0x4e')]),router[_0x803625('0xb')](_0x803625('0x52'),auth[_0x803625('0x1b')](),controller[_0x803625('0x18')]),router[_0x803625('0xb')](_0x803625('0x65'),auth[_0x803625('0x1b')](),controller[_0x803625('0x32')]),router[_0x803625('0xb')](_0x803625('0x29'),auth['isAuthenticated'](),controller[_0x803625('0x21')]),router[_0x803625('0xb')]('/:id/sms_interactions',auth['isAuthenticated'](),controller['removeSmsInteractions']),router[_0x803625('0xb')](_0x803625('0x3'),auth[_0x803625('0x1b')](),controller['removeOpenchannelInteractions']),router[_0x803625('0xb')]('/:id/whatsapp_interactions',auth[_0x803625('0x1b')](),controller[_0x803625('0x35')]),router[_0x803625('0xb')](_0x803625('0x46'),auth['isAuthenticated'](),controller[_0x803625('0x2b')]),router[_0x803625('0xb')]('/:id/mail_accounts',auth['isAuthenticated'](),controller['removeMailAccounts']),router[_0x803625('0xb')](_0x803625('0x10'),auth['isAuthenticated'](),controller[_0x803625('0x2e')]),router[_0x803625('0xb')](_0x803625('0x3c'),auth['isAuthenticated'](),controller[_0x803625('0x1c')]),router[_0x803625('0xb')](_0x803625('0x66'),auth[_0x803625('0x1b')](),controller[_0x803625('0x53')]),router[_0x803625('0xb')]('/:id/whatsapp_accounts',auth[_0x803625('0x1b')](),controller[_0x803625('0x68')]),router[_0x803625('0xb')](_0x803625('0x44'),auth['isAuthenticated'](),controller['removeSquareProjects']),router[_0x803625('0xb')](_0x803625('0x4b'),auth[_0x803625('0x1b')](),controller[_0x803625('0x5f')]),module[_0x803625('0x45')]=router;