Built motion from commit (unavailable).|2.5.5
[motion2.git] / server / api / user / index.js
index e2cbedc..fa39f26 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a54=['getChatInteractions','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','getMailInteractions','/:id/sms/interactions','/:id/fax/interactions','/:id/teams','getTeams','/:id/lists','/:id/agents','getAgents','getVoicePrefixes','/:id/fax_accounts','getFaxAccounts','/:id/mail_accounts','getMailAccounts','/:id/openchannel_accounts','getOpenchannelAccounts','/:id/sms_accounts','getSmsAccounts','/:id/chat_websites','getChatWebsites','/:id/square_projects','getSquareProjects','/:id/scheduled_calls','/:id/api_key','/create_many','post','addContacts','create','addQueues','join','server/files/images/','format','%s-%s','now','originalname','/:id/avatar','single','addAvatar','login','logout','/:id/pause','addTeams','/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','addMailInteractions','addFaxInteractions','/:id/sms_interactions','addSmsInteractions','addFaxAccounts','addMailAccounts','addSmsAccounts','addChatWebsites','addSquareProjects','createApiKey','/:id/password','changePassword','delete','removeQueues','removeTeams','destroy','removeChatInteractions','removeMailInteractions','removeFaxInteractions','/:id/openchannel_interactions','removeOpenchannelInteractions','removeFaxAccounts','removeMailAccounts','removeOpenchannelAccounts','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./user.controller','get','isAuthenticated','describe','/whoami','/:id','/:id/contacts','getContacts','/:id/queues','/:id/queues_rt','getVoiceQueuesRt','/:id/groups','getGroups','/:id/recordings','getRecordings','/:id/screen_recordings'];(function(_0x3c259f,_0x3f1a44){var _0x46e50c=function(_0x242be5){while(--_0x242be5){_0x3c259f['push'](_0x3c259f['shift']());}};_0x46e50c(++_0x3f1a44);}(_0x7a54,0x106));var _0x47a5=function(_0x43704f,_0x41f377){_0x43704f=_0x43704f-0x0;var _0x3f80fe=_0x7a54[_0x43704f];return _0x3f80fe;};'use strict';var multer=require(_0x47a5('0x0'));var util=require(_0x47a5('0x1'));var path=require(_0x47a5('0x2'));var timeout=require('connect-timeout');var express=require(_0x47a5('0x3'));var router=express[_0x47a5('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x47a5('0x5'));var config=require(_0x47a5('0x6'));var controller=require(_0x47a5('0x7'));router[_0x47a5('0x8')]('/',auth[_0x47a5('0x9')](),controller['index']);router[_0x47a5('0x8')]('/describe',auth[_0x47a5('0x9')](),controller[_0x47a5('0xa')]);router['get'](_0x47a5('0xb'),auth['isAuthenticated'](),controller['whoami']);router['get'](_0x47a5('0xc'),auth[_0x47a5('0x9')](),controller['show']);router[_0x47a5('0x8')]('/:id/avatar',controller['getAvatar']);router[_0x47a5('0x8')](_0x47a5('0xd'),auth[_0x47a5('0x9')](),controller[_0x47a5('0xe')]);router[_0x47a5('0x8')](_0x47a5('0xf'),auth[_0x47a5('0x9')](),controller['getQueues']);router[_0x47a5('0x8')](_0x47a5('0x10'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x11')]);router[_0x47a5('0x8')](_0x47a5('0x12'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x13')]);router['get'](_0x47a5('0x14'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x15')]);router[_0x47a5('0x8')](_0x47a5('0x16'),auth['isAuthenticated'](),controller['getScreenRecordings']);router[_0x47a5('0x8')]('/:id/chat/interactions',auth['isAuthenticated'](),controller[_0x47a5('0x17')]);router[_0x47a5('0x8')](_0x47a5('0x18'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x19')]);router[_0x47a5('0x8')](_0x47a5('0x1a'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x1b')]);router['get'](_0x47a5('0x1c'),auth[_0x47a5('0x9')](),controller['getSmsInteractions']);router[_0x47a5('0x8')](_0x47a5('0x1d'),auth[_0x47a5('0x9')](),controller['getFaxInteractions']);router[_0x47a5('0x8')](_0x47a5('0x1e'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x1f')]);router['get'](_0x47a5('0x20'),auth[_0x47a5('0x9')](),controller['getLists']);router[_0x47a5('0x8')](_0x47a5('0x21'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x22')]);router[_0x47a5('0x8')]('/:id/prefixes',auth['isAuthenticated'](),controller[_0x47a5('0x23')]);router['get'](_0x47a5('0x24'),auth['isAuthenticated'](),controller[_0x47a5('0x25')]);router[_0x47a5('0x8')](_0x47a5('0x26'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x27')]);router[_0x47a5('0x8')](_0x47a5('0x28'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x29')]);router[_0x47a5('0x8')](_0x47a5('0x2a'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x2b')]);router['get'](_0x47a5('0x2c'),auth['isAuthenticated'](),controller[_0x47a5('0x2d')]);router[_0x47a5('0x8')](_0x47a5('0x2e'),auth['isAuthenticated'](),controller[_0x47a5('0x2f')]);router[_0x47a5('0x8')](_0x47a5('0x30'),auth[_0x47a5('0x9')](),controller['getScheduledCalls']);router['get'](_0x47a5('0x31'),auth[_0x47a5('0x9')](),controller['getApiKey']);router['post'](_0x47a5('0x32'),auth[_0x47a5('0x9')](),controller['bulkCreate']);router[_0x47a5('0x33')]('/:id/contacts',auth[_0x47a5('0x9')](),controller[_0x47a5('0x34')]);router['post']('/',auth['isAuthenticated'](),controller[_0x47a5('0x35')]);router['post'](_0x47a5('0xf'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x36')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x18f7e9,_0x50c086,_0x53c754){_0x53c754(null,path[_0x47a5('0x37')](config['root'],_0x47a5('0x38')));},'filename':function(_0x5ef577,_0x21ad34,_0x3534cb){_0x3534cb(null,util[_0x47a5('0x39')](_0x47a5('0x3a'),Date[_0x47a5('0x3b')](),_0x21ad34[_0x47a5('0x3c')]));}})});router[_0x47a5('0x33')](_0x47a5('0x3d'),upload[_0x47a5('0x3e')]('file'),controller[_0x47a5('0x3f')]);router[_0x47a5('0x33')]('/:id/login',auth[_0x47a5('0x9')](),controller[_0x47a5('0x40')]);router[_0x47a5('0x33')]('/:id/logout',auth[_0x47a5('0x9')](),controller[_0x47a5('0x41')]);router['post'](_0x47a5('0x42'),auth[_0x47a5('0x9')](),controller['pause']);router['post']('/:id/unpause',auth[_0x47a5('0x9')](),controller['unpause']);router[_0x47a5('0x33')](_0x47a5('0x1e'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x43')]);router[_0x47a5('0x33')](_0x47a5('0x44'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x45')]);router[_0x47a5('0x33')](_0x47a5('0x46'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x47')]);router[_0x47a5('0x33')]('/:id/fax_interactions',auth[_0x47a5('0x9')](),controller[_0x47a5('0x48')]);router[_0x47a5('0x33')](_0x47a5('0x49'),auth['isAuthenticated'](),controller[_0x47a5('0x4a')]);router['post']('/:id/openchannel_interactions',auth['isAuthenticated'](),controller['addOpenchannelInteractions']);router[_0x47a5('0x33')]('/:id/fax_accounts',auth[_0x47a5('0x9')](),controller[_0x47a5('0x4b')]);router[_0x47a5('0x33')]('/:id/mail_accounts',auth[_0x47a5('0x9')](),controller[_0x47a5('0x4c')]);router['post']('/:id/openchannel_accounts',auth[_0x47a5('0x9')](),controller['addOpenchannelAccounts']);router[_0x47a5('0x33')](_0x47a5('0x2a'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x4d')]);router[_0x47a5('0x33')](_0x47a5('0x2c'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x4e')]);router[_0x47a5('0x33')](_0x47a5('0x2e'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x4f')]);router[_0x47a5('0x33')](_0x47a5('0x31'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x50')]);router['put'](_0x47a5('0xc'),auth[_0x47a5('0x9')](),controller['update']);router['put'](_0x47a5('0x51'),auth['isAuthenticated'](),controller[_0x47a5('0x52')]);router[_0x47a5('0x53')]('/:id/queues',auth['isAuthenticated'](),controller[_0x47a5('0x54')]);router['delete'](_0x47a5('0x1e'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x55')]);router[_0x47a5('0x53')](_0x47a5('0xc'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x56')]);router['delete']('/:id/chat_interactions',auth[_0x47a5('0x9')](),controller[_0x47a5('0x57')]);router[_0x47a5('0x53')](_0x47a5('0x46'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x58')]);router[_0x47a5('0x53')]('/:id/fax_interactions',auth[_0x47a5('0x9')](),controller[_0x47a5('0x59')]);router[_0x47a5('0x53')]('/:id/sms_interactions',auth[_0x47a5('0x9')](),controller['removeSmsInteractions']);router[_0x47a5('0x53')](_0x47a5('0x5a'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x5b')]);router['delete'](_0x47a5('0x24'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x5c')]);router[_0x47a5('0x53')](_0x47a5('0x26'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x5d')]);router['delete'](_0x47a5('0x28'),auth[_0x47a5('0x9')](),controller[_0x47a5('0x5e')]);router[_0x47a5('0x53')](_0x47a5('0x2a'),auth[_0x47a5('0x9')](),controller['removeSmsAccounts']);router[_0x47a5('0x53')](_0x47a5('0x2c'),auth[_0x47a5('0x9')](),controller['removeChatWebsites']);router[_0x47a5('0x53')](_0x47a5('0x2e'),auth[_0x47a5('0x9')](),controller['removeSquareProjects']);router['delete'](_0x47a5('0x31'),auth[_0x47a5('0x9')](),controller['removeApiKey']);module['exports']=router;
\ No newline at end of file
+var _0x0d74=['removeMailInteractions','removeFaxInteractions','removeSmsInteractions','removeOpenchannelInteractions','removeWhatsappInteractions','removeFaxAccounts','removeMailAccounts','/:id/openchannel_accounts','removeChatWebsites','removeWhatsappAccounts','exports','multer','util','express','Router','../../config/environment','./user.controller','get','isAuthenticated','/whoami','whoami','/:id','show','getAvatar','/:id/contacts','getContacts','/:id/queues','getQueues','getVoiceQueuesRt','/:id/groups','getGroups','/:id/recordings','getScreenRecordings','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','getMailInteractions','getFaxInteractions','/:id/whatsapp/interactions','getWhatsappInteractions','/:id/teams','getTeams','getLists','/:id/agents','getVoicePrefixes','/:id/fax_accounts','/:id/mail_accounts','getMailAccounts','getOpenchannelAccounts','/:id/sms_accounts','getSmsAccounts','getChatWebsites','/:id/whatsapp_accounts','getWhatsappAccounts','/:id/square_projects','getSquareProjects','/:id/scheduled_calls','getScheduledCalls','/:id/api_key','getApiKey','post','addContacts','create','/create_many','bulkCreate','addQueues','root','format','%s-%s','originalname','/:id/avatar','single','file','/:id/logout','logout','/:id/pause','pause','/:id/unpause','unpause','/:id/chat_interactions','/:id/mail_interactions','addMailInteractions','/:id/fax_interactions','/:id/sms_interactions','addSmsInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','/:id/whatsapp_interactions','addWhatsappInteractions','addFaxAccounts','addMailAccounts','addOpenchannelAccounts','addSmsAccounts','/:id/chat_websites','addWhatsappAccounts','addSquareProjects','createApiKey','put','update','/:id/password','delete','removeQueues','removeTeams','destroy','removeChatInteractions'];(function(_0x335aa4,_0x3d720f){var _0x43cf18=function(_0x2ad85d){while(--_0x2ad85d){_0x335aa4['push'](_0x335aa4['shift']());}};_0x43cf18(++_0x3d720f);}(_0x0d74,0x146));var _0x40d7=function(_0x526302,_0x450200){_0x526302=_0x526302-0x0;var _0xd505be=_0x0d74[_0x526302];return _0xd505be;};'use strict';var multer=require(_0x40d7('0x0'));var util=require(_0x40d7('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x40d7('0x2'));var router=express[_0x40d7('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x40d7('0x4'));var controller=require(_0x40d7('0x5'));router[_0x40d7('0x6')]('/',auth[_0x40d7('0x7')](),controller['index']);router['get']('/describe',auth[_0x40d7('0x7')](),controller['describe']);router[_0x40d7('0x6')](_0x40d7('0x8'),auth['isAuthenticated'](),controller[_0x40d7('0x9')]);router[_0x40d7('0x6')](_0x40d7('0xa'),auth[_0x40d7('0x7')](),controller[_0x40d7('0xb')]);router[_0x40d7('0x6')]('/:id/avatar',controller[_0x40d7('0xc')]);router[_0x40d7('0x6')](_0x40d7('0xd'),auth[_0x40d7('0x7')](),controller[_0x40d7('0xe')]);router['get'](_0x40d7('0xf'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x10')]);router[_0x40d7('0x6')]('/:id/queues_rt',auth[_0x40d7('0x7')](),controller[_0x40d7('0x11')]);router[_0x40d7('0x6')](_0x40d7('0x12'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x13')]);router[_0x40d7('0x6')](_0x40d7('0x14'),auth[_0x40d7('0x7')](),controller['getRecordings']);router['get']('/:id/screen_recordings',auth[_0x40d7('0x7')](),controller[_0x40d7('0x15')]);router['get']('/:id/chat/interactions',auth[_0x40d7('0x7')](),controller['getChatInteractions']);router['get'](_0x40d7('0x16'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x17')]);router[_0x40d7('0x6')](_0x40d7('0x18'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x19')]);router[_0x40d7('0x6')]('/:id/sms/interactions',auth['isAuthenticated'](),controller['getSmsInteractions']);router[_0x40d7('0x6')]('/:id/fax/interactions',auth[_0x40d7('0x7')](),controller[_0x40d7('0x1a')]);router[_0x40d7('0x6')](_0x40d7('0x1b'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x1c')]);router[_0x40d7('0x6')](_0x40d7('0x1d'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x1e')]);router[_0x40d7('0x6')]('/:id/lists',auth[_0x40d7('0x7')](),controller[_0x40d7('0x1f')]);router[_0x40d7('0x6')](_0x40d7('0x20'),auth['isAuthenticated'](),controller['getAgents']);router[_0x40d7('0x6')]('/:id/prefixes',auth['isAuthenticated'](),controller[_0x40d7('0x21')]);router[_0x40d7('0x6')](_0x40d7('0x22'),auth[_0x40d7('0x7')](),controller['getFaxAccounts']);router['get'](_0x40d7('0x23'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x24')]);router['get']('/:id/openchannel_accounts',auth[_0x40d7('0x7')](),controller[_0x40d7('0x25')]);router['get'](_0x40d7('0x26'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x27')]);router[_0x40d7('0x6')]('/:id/chat_websites',auth['isAuthenticated'](),controller[_0x40d7('0x28')]);router[_0x40d7('0x6')](_0x40d7('0x29'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x2a')]);router[_0x40d7('0x6')](_0x40d7('0x2b'),auth['isAuthenticated'](),controller[_0x40d7('0x2c')]);router[_0x40d7('0x6')](_0x40d7('0x2d'),auth['isAuthenticated'](),controller[_0x40d7('0x2e')]);router[_0x40d7('0x6')](_0x40d7('0x2f'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x30')]);router[_0x40d7('0x31')](_0x40d7('0xd'),auth['isAuthenticated'](),controller[_0x40d7('0x32')]);router[_0x40d7('0x31')]('/',auth[_0x40d7('0x7')](),controller[_0x40d7('0x33')]);router[_0x40d7('0x31')](_0x40d7('0x34'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x35')]);router['post']('/:id/queues',auth[_0x40d7('0x7')](),controller[_0x40d7('0x36')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x56da81,_0x49a26c,_0x5f0821){_0x5f0821(null,path['join'](config[_0x40d7('0x37')],'server/files/images/'));},'filename':function(_0x798ba7,_0x460dbe,_0x23a983){_0x23a983(null,util[_0x40d7('0x38')](_0x40d7('0x39'),Date['now'](),_0x460dbe[_0x40d7('0x3a')]));}})});router[_0x40d7('0x31')](_0x40d7('0x3b'),upload[_0x40d7('0x3c')](_0x40d7('0x3d')),controller['addAvatar']);router['post']('/:id/login',auth[_0x40d7('0x7')](),controller['login']);router['post'](_0x40d7('0x3e'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x3f')]);router[_0x40d7('0x31')](_0x40d7('0x40'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x41')]);router[_0x40d7('0x31')](_0x40d7('0x42'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x43')]);router[_0x40d7('0x31')](_0x40d7('0x1d'),auth[_0x40d7('0x7')](),controller['addTeams']);router[_0x40d7('0x31')](_0x40d7('0x44'),auth[_0x40d7('0x7')](),controller['addChatInteractions']);router[_0x40d7('0x31')](_0x40d7('0x45'),auth['isAuthenticated'](),controller[_0x40d7('0x46')]);router[_0x40d7('0x31')](_0x40d7('0x47'),auth['isAuthenticated'](),controller['addFaxInteractions']);router['post'](_0x40d7('0x48'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x49')]);router[_0x40d7('0x31')](_0x40d7('0x4a'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x4b')]);router[_0x40d7('0x31')](_0x40d7('0x4c'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x4d')]);router[_0x40d7('0x31')](_0x40d7('0x22'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x4e')]);router['post'](_0x40d7('0x23'),auth['isAuthenticated'](),controller[_0x40d7('0x4f')]);router[_0x40d7('0x31')]('/:id/openchannel_accounts',auth[_0x40d7('0x7')](),controller[_0x40d7('0x50')]);router[_0x40d7('0x31')](_0x40d7('0x26'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x51')]);router[_0x40d7('0x31')](_0x40d7('0x52'),auth[_0x40d7('0x7')](),controller['addChatWebsites']);router['post']('/:id/whatsapp_accounts',auth[_0x40d7('0x7')](),controller[_0x40d7('0x53')]);router[_0x40d7('0x31')](_0x40d7('0x2b'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x54')]);router[_0x40d7('0x31')](_0x40d7('0x2f'),auth['isAuthenticated'](),controller[_0x40d7('0x55')]);router[_0x40d7('0x56')]('/:id',auth['isAuthenticated'](),controller[_0x40d7('0x57')]);router[_0x40d7('0x56')](_0x40d7('0x58'),auth[_0x40d7('0x7')](),controller['changePassword']);router[_0x40d7('0x59')](_0x40d7('0xf'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x5a')]);router[_0x40d7('0x59')](_0x40d7('0x1d'),auth['isAuthenticated'](),controller[_0x40d7('0x5b')]);router[_0x40d7('0x59')](_0x40d7('0xa'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x5c')]);router[_0x40d7('0x59')](_0x40d7('0x44'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x5d')]);router[_0x40d7('0x59')]('/:id/mail_interactions',auth[_0x40d7('0x7')](),controller[_0x40d7('0x5e')]);router[_0x40d7('0x59')](_0x40d7('0x47'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x5f')]);router['delete'](_0x40d7('0x48'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x60')]);router[_0x40d7('0x59')](_0x40d7('0x4a'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x61')]);router[_0x40d7('0x59')](_0x40d7('0x4c'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x62')]);router[_0x40d7('0x59')]('/:id/fax_accounts',auth[_0x40d7('0x7')](),controller[_0x40d7('0x63')]);router[_0x40d7('0x59')](_0x40d7('0x23'),auth[_0x40d7('0x7')](),controller[_0x40d7('0x64')]);router['delete'](_0x40d7('0x65'),auth[_0x40d7('0x7')](),controller['removeOpenchannelAccounts']);router[_0x40d7('0x59')](_0x40d7('0x26'),auth[_0x40d7('0x7')](),controller['removeSmsAccounts']);router[_0x40d7('0x59')]('/:id/chat_websites',auth[_0x40d7('0x7')](),controller[_0x40d7('0x66')]);router[_0x40d7('0x59')]('/:id/whatsapp_accounts',auth[_0x40d7('0x7')](),controller[_0x40d7('0x67')]);router[_0x40d7('0x59')](_0x40d7('0x2b'),auth[_0x40d7('0x7')](),controller['removeSquareProjects']);router['delete']('/:id/api_key',auth['isAuthenticated'](),controller['removeApiKey']);module[_0x40d7('0x68')]=router;
\ No newline at end of file