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