Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / user / index.js
index 8585899..376ec7f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f66=['/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','addMailInteractions','addFaxInteractions','/:id/sms_interactions','addSmsInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','/:id/fax_accounts','addFaxAccounts','addMailAccounts','/:id/sms_accounts','addChatWebsites','/:id/square_projects','addSquareProjects','put','/:id','update','/:id/password','delete','removeQueues','removeTeams','destroy','removeChatInteractions','removeFaxInteractions','removeSmsInteractions','removeFaxAccounts','removeMailAccounts','removeOpenchannelAccounts','removeApiKey','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./user.controller','isAuthenticated','index','describe','get','/whoami','whoami','show','/:id/avatar','getContacts','/:id/queues','getQueues','/:id/queues_rt','getVoiceQueuesRt','/:id/groups','getGroups','/:id/screen_recordings','getScreenRecordings','/:id/chat/interactions','getChatInteractions','getOpenchannelInteractions','getMailInteractions','getSmsInteractions','/:id/fax/interactions','getFaxInteractions','/:id/teams','/:id/lists','getLists','/:id/agents','/:id/prefixes','getFaxAccounts','/:id/mail_accounts','/:id/openchannel_accounts','getSmsAccounts','/:id/chat_websites','getChatWebsites','getSquareProjects','getScheduledCalls','/:id/api_key','getApiKey','post','bulkCreate','addContacts','create','addQueues','root','server/files/images/','format','originalname','file','addAvatar','/:id/login','/:id/logout','logout','/:id/pause','pause','/:id/unpause','unpause'];(function(_0x210232,_0x5ee933){var _0x5956a2=function(_0x44ca25){while(--_0x44ca25){_0x210232['push'](_0x210232['shift']());}};_0x5956a2(++_0x5ee933);}(_0x5f66,0x1a0));var _0x65f6=function(_0x5d4607,_0x6b5e7b){_0x5d4607=_0x5d4607-0x0;var _0x5e4a86=_0x5f66[_0x5d4607];return _0x5e4a86;};'use strict';var multer=require('multer');var util=require(_0x65f6('0x0'));var path=require('path');var timeout=require(_0x65f6('0x1'));var express=require(_0x65f6('0x2'));var router=express[_0x65f6('0x3')]();var auth=require(_0x65f6('0x4'));var interaction=require(_0x65f6('0x5'));var config=require('../../config/environment');var controller=require(_0x65f6('0x6'));router['get']('/',auth[_0x65f6('0x7')](),controller[_0x65f6('0x8')]);router['get']('/describe',auth[_0x65f6('0x7')](),controller[_0x65f6('0x9')]);router[_0x65f6('0xa')](_0x65f6('0xb'),auth[_0x65f6('0x7')](),controller[_0x65f6('0xc')]);router['get']('/:id',auth[_0x65f6('0x7')](),controller[_0x65f6('0xd')]);router[_0x65f6('0xa')](_0x65f6('0xe'),controller['getAvatar']);router[_0x65f6('0xa')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x65f6('0xf')]);router['get'](_0x65f6('0x10'),auth['isAuthenticated'](),controller[_0x65f6('0x11')]);router[_0x65f6('0xa')](_0x65f6('0x12'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x13')]);router[_0x65f6('0xa')](_0x65f6('0x14'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x15')]);router[_0x65f6('0xa')]('/:id/recordings',auth[_0x65f6('0x7')](),controller['getRecordings']);router['get'](_0x65f6('0x16'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x17')]);router[_0x65f6('0xa')](_0x65f6('0x18'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x19')]);router[_0x65f6('0xa')]('/:id/openchannel/interactions',auth['isAuthenticated'](),controller[_0x65f6('0x1a')]);router['get']('/:id/mail/interactions',auth['isAuthenticated'](),controller[_0x65f6('0x1b')]);router[_0x65f6('0xa')]('/:id/sms/interactions',auth[_0x65f6('0x7')](),controller[_0x65f6('0x1c')]);router[_0x65f6('0xa')](_0x65f6('0x1d'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x1e')]);router['get'](_0x65f6('0x1f'),auth['isAuthenticated'](),controller['getTeams']);router[_0x65f6('0xa')](_0x65f6('0x20'),auth['isAuthenticated'](),controller[_0x65f6('0x21')]);router[_0x65f6('0xa')](_0x65f6('0x22'),auth[_0x65f6('0x7')](),controller['getAgents']);router[_0x65f6('0xa')](_0x65f6('0x23'),auth[_0x65f6('0x7')](),controller['getVoicePrefixes']);router['get']('/:id/fax_accounts',auth[_0x65f6('0x7')](),controller[_0x65f6('0x24')]);router['get'](_0x65f6('0x25'),auth[_0x65f6('0x7')](),controller['getMailAccounts']);router[_0x65f6('0xa')](_0x65f6('0x26'),auth[_0x65f6('0x7')](),controller['getOpenchannelAccounts']);router['get']('/:id/sms_accounts',auth[_0x65f6('0x7')](),controller[_0x65f6('0x27')]);router[_0x65f6('0xa')](_0x65f6('0x28'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x29')]);router[_0x65f6('0xa')]('/:id/square_projects',auth['isAuthenticated'](),controller[_0x65f6('0x2a')]);router[_0x65f6('0xa')]('/:id/scheduled_calls',auth['isAuthenticated'](),controller[_0x65f6('0x2b')]);router[_0x65f6('0xa')](_0x65f6('0x2c'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x2d')]);router[_0x65f6('0x2e')]('/create_many',auth[_0x65f6('0x7')](),controller[_0x65f6('0x2f')]);router[_0x65f6('0x2e')]('/:id/contacts',auth[_0x65f6('0x7')](),controller[_0x65f6('0x30')]);router[_0x65f6('0x2e')]('/',auth[_0x65f6('0x7')](),controller[_0x65f6('0x31')]);router[_0x65f6('0x2e')]('/:id/queues',auth[_0x65f6('0x7')](),controller[_0x65f6('0x32')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x36dbf4,_0x5a740a,_0x2b403b){_0x2b403b(null,path['join'](config[_0x65f6('0x33')],_0x65f6('0x34')));},'filename':function(_0x5ce050,_0x12dee6,_0x13e41a){_0x13e41a(null,util[_0x65f6('0x35')]('%s-%s',Date['now'](),_0x12dee6[_0x65f6('0x36')]));}})});router['post'](_0x65f6('0xe'),upload['single'](_0x65f6('0x37')),controller[_0x65f6('0x38')]);router['post'](_0x65f6('0x39'),auth['isAuthenticated'](),controller['login']);router[_0x65f6('0x2e')](_0x65f6('0x3a'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x3b')]);router[_0x65f6('0x2e')](_0x65f6('0x3c'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x3d')]);router['post'](_0x65f6('0x3e'),auth['isAuthenticated'](),controller[_0x65f6('0x3f')]);router[_0x65f6('0x2e')](_0x65f6('0x1f'),auth[_0x65f6('0x7')](),controller['addTeams']);router[_0x65f6('0x2e')](_0x65f6('0x40'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x41')]);router[_0x65f6('0x2e')](_0x65f6('0x42'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x43')]);router[_0x65f6('0x2e')]('/:id/fax_interactions',auth[_0x65f6('0x7')](),controller[_0x65f6('0x44')]);router[_0x65f6('0x2e')](_0x65f6('0x45'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x46')]);router[_0x65f6('0x2e')](_0x65f6('0x47'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x48')]);router[_0x65f6('0x2e')](_0x65f6('0x49'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x4a')]);router[_0x65f6('0x2e')](_0x65f6('0x25'),auth['isAuthenticated'](),controller[_0x65f6('0x4b')]);router[_0x65f6('0x2e')](_0x65f6('0x26'),auth[_0x65f6('0x7')](),controller['addOpenchannelAccounts']);router[_0x65f6('0x2e')](_0x65f6('0x4c'),auth[_0x65f6('0x7')](),controller['addSmsAccounts']);router[_0x65f6('0x2e')](_0x65f6('0x28'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x4d')]);router['post'](_0x65f6('0x4e'),auth['isAuthenticated'](),controller[_0x65f6('0x4f')]);router[_0x65f6('0x2e')]('/:id/api_key',auth[_0x65f6('0x7')](),controller['createApiKey']);router[_0x65f6('0x50')](_0x65f6('0x51'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x52')]);router[_0x65f6('0x50')](_0x65f6('0x53'),auth['isAuthenticated'](),controller['changePassword']);router[_0x65f6('0x54')](_0x65f6('0x10'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x55')]);router[_0x65f6('0x54')](_0x65f6('0x1f'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x56')]);router[_0x65f6('0x54')]('/:id',auth[_0x65f6('0x7')](),controller[_0x65f6('0x57')]);router[_0x65f6('0x54')]('/:id/chat_interactions',auth[_0x65f6('0x7')](),controller[_0x65f6('0x58')]);router['delete'](_0x65f6('0x42'),auth[_0x65f6('0x7')](),controller['removeMailInteractions']);router[_0x65f6('0x54')]('/:id/fax_interactions',auth[_0x65f6('0x7')](),controller[_0x65f6('0x59')]);router[_0x65f6('0x54')]('/:id/sms_interactions',auth[_0x65f6('0x7')](),controller[_0x65f6('0x5a')]);router['delete'](_0x65f6('0x47'),auth[_0x65f6('0x7')](),controller['removeOpenchannelInteractions']);router[_0x65f6('0x54')](_0x65f6('0x49'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x5b')]);router[_0x65f6('0x54')](_0x65f6('0x25'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x5c')]);router['delete']('/:id/openchannel_accounts',auth['isAuthenticated'](),controller[_0x65f6('0x5d')]);router[_0x65f6('0x54')](_0x65f6('0x4c'),auth[_0x65f6('0x7')](),controller['removeSmsAccounts']);router[_0x65f6('0x54')](_0x65f6('0x28'),auth[_0x65f6('0x7')](),controller['removeChatWebsites']);router[_0x65f6('0x54')](_0x65f6('0x4e'),auth[_0x65f6('0x7')](),controller['removeSquareProjects']);router['delete'](_0x65f6('0x2c'),auth[_0x65f6('0x7')](),controller[_0x65f6('0x5e')]);module[_0x65f6('0x5f')]=router;
\ No newline at end of file
+var _0x476c=['getScheduledCalls','/:id/api_key','getApiKey','addContacts','post','create','/create_many','bulkCreate','addQueues','diskStorage','join','server/files/images/','format','%s-%s','now','originalname','addAvatar','/:id/login','login','/:id/logout','logout','/:id/pause','pause','/:id/unpause','unpause','addTeams','/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','/:id/fax_interactions','addFaxInteractions','addSmsInteractions','addWhatsappInteractions','addFaxAccounts','addMailAccounts','addOpenchannelAccounts','/:id/sms_accounts','addSmsAccounts','addChatWebsites','addWhatsappAccounts','/:id/square_projects','addSquareProjects','createApiKey','put','update','/:id/password','changePassword','removeQueues','delete','removeTeams','destroy','removeChatInteractions','removeMailInteractions','removeFaxInteractions','/:id/sms_interactions','removeSmsInteractions','/:id/openchannel_interactions','removeOpenchannelInteractions','/:id/whatsapp_interactions','removeMailAccounts','removeOpenchannelAccounts','removeSmsAccounts','removeChatWebsites','removeWhatsappAccounts','removeSquareProjects','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/whoami','whoami','/:id','show','/:id/avatar','getAvatar','/:id/contacts','getContacts','/:id/queues','getQueues','getVoiceQueuesRt','/:id/groups','/:id/screen_recordings','getScreenRecordings','getChatInteractions','/:id/openchannel/interactions','/:id/mail/interactions','/:id/sms/interactions','getSmsInteractions','/:id/fax/interactions','/:id/whatsapp/interactions','/:id/teams','/:id/agents','getAgents','getVoicePrefixes','/:id/fax_accounts','getFaxAccounts','/:id/mail_accounts','getMailAccounts','/:id/openchannel_accounts','/:id/chat_websites','getChatWebsites','/:id/whatsapp_accounts','getWhatsappAccounts','getSquareProjects','/:id/scheduled_calls'];(function(_0x519f11,_0x183597){var _0x9abfdb=function(_0x597a28){while(--_0x597a28){_0x519f11['push'](_0x519f11['shift']());}};_0x9abfdb(++_0x183597);}(_0x476c,0xb4));var _0xc476=function(_0x40f696,_0x29753d){_0x40f696=_0x40f696-0x0;var _0x382922=_0x476c[_0x40f696];return _0x382922;};'use strict';var multer=require(_0xc476('0x0'));var util=require(_0xc476('0x1'));var path=require('path');var timeout=require(_0xc476('0x2'));var express=require(_0xc476('0x3'));var router=express[_0xc476('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xc476('0x5'));var config=require(_0xc476('0x6'));var controller=require('./user.controller');router[_0xc476('0x7')]('/',auth['isAuthenticated'](),controller[_0xc476('0x8')]);router[_0xc476('0x7')](_0xc476('0x9'),auth[_0xc476('0xa')](),controller[_0xc476('0xb')]);router[_0xc476('0x7')](_0xc476('0xc'),auth[_0xc476('0xa')](),controller[_0xc476('0xd')]);router[_0xc476('0x7')](_0xc476('0xe'),auth[_0xc476('0xa')](),controller[_0xc476('0xf')]);router[_0xc476('0x7')](_0xc476('0x10'),controller[_0xc476('0x11')]);router[_0xc476('0x7')](_0xc476('0x12'),auth['isAuthenticated'](),controller[_0xc476('0x13')]);router['get'](_0xc476('0x14'),auth[_0xc476('0xa')](),controller[_0xc476('0x15')]);router[_0xc476('0x7')]('/:id/queues_rt',auth[_0xc476('0xa')](),controller[_0xc476('0x16')]);router['get'](_0xc476('0x17'),auth['isAuthenticated'](),controller['getGroups']);router[_0xc476('0x7')]('/:id/recordings',auth[_0xc476('0xa')](),controller['getRecordings']);router['get'](_0xc476('0x18'),auth[_0xc476('0xa')](),controller[_0xc476('0x19')]);router['get']('/:id/chat/interactions',auth[_0xc476('0xa')](),controller[_0xc476('0x1a')]);router[_0xc476('0x7')](_0xc476('0x1b'),auth[_0xc476('0xa')](),controller['getOpenchannelInteractions']);router['get'](_0xc476('0x1c'),auth[_0xc476('0xa')](),controller['getMailInteractions']);router[_0xc476('0x7')](_0xc476('0x1d'),auth[_0xc476('0xa')](),controller[_0xc476('0x1e')]);router[_0xc476('0x7')](_0xc476('0x1f'),auth[_0xc476('0xa')](),controller['getFaxInteractions']);router['get'](_0xc476('0x20'),auth['isAuthenticated'](),controller['getWhatsappInteractions']);router[_0xc476('0x7')](_0xc476('0x21'),auth[_0xc476('0xa')](),controller['getTeams']);router[_0xc476('0x7')]('/:id/lists',auth[_0xc476('0xa')](),controller['getLists']);router[_0xc476('0x7')](_0xc476('0x22'),auth['isAuthenticated'](),controller[_0xc476('0x23')]);router[_0xc476('0x7')]('/:id/prefixes',auth[_0xc476('0xa')](),controller[_0xc476('0x24')]);router[_0xc476('0x7')](_0xc476('0x25'),auth['isAuthenticated'](),controller[_0xc476('0x26')]);router['get'](_0xc476('0x27'),auth['isAuthenticated'](),controller[_0xc476('0x28')]);router[_0xc476('0x7')](_0xc476('0x29'),auth[_0xc476('0xa')](),controller['getOpenchannelAccounts']);router[_0xc476('0x7')]('/:id/sms_accounts',auth[_0xc476('0xa')](),controller['getSmsAccounts']);router[_0xc476('0x7')](_0xc476('0x2a'),auth[_0xc476('0xa')](),controller[_0xc476('0x2b')]);router[_0xc476('0x7')](_0xc476('0x2c'),auth[_0xc476('0xa')](),controller[_0xc476('0x2d')]);router[_0xc476('0x7')]('/:id/square_projects',auth[_0xc476('0xa')](),controller[_0xc476('0x2e')]);router[_0xc476('0x7')](_0xc476('0x2f'),auth[_0xc476('0xa')](),controller[_0xc476('0x30')]);router['get'](_0xc476('0x31'),auth[_0xc476('0xa')](),controller[_0xc476('0x32')]);router['post'](_0xc476('0x12'),auth['isAuthenticated'](),controller[_0xc476('0x33')]);router[_0xc476('0x34')]('/',auth['isAuthenticated'](),controller[_0xc476('0x35')]);router[_0xc476('0x34')](_0xc476('0x36'),auth[_0xc476('0xa')](),controller[_0xc476('0x37')]);router[_0xc476('0x34')](_0xc476('0x14'),auth[_0xc476('0xa')](),controller[_0xc476('0x38')]);var upload=multer({'storage':multer[_0xc476('0x39')]({'destination':function(_0x30471e,_0x22224a,_0x3b93ed){_0x3b93ed(null,path[_0xc476('0x3a')](config['root'],_0xc476('0x3b')));},'filename':function(_0x4d8a97,_0x292c3f,_0x188c05){_0x188c05(null,util[_0xc476('0x3c')](_0xc476('0x3d'),Date[_0xc476('0x3e')](),_0x292c3f[_0xc476('0x3f')]));}})});router[_0xc476('0x34')]('/:id/avatar',upload['single']('file'),controller[_0xc476('0x40')]);router[_0xc476('0x34')](_0xc476('0x41'),auth[_0xc476('0xa')](),controller[_0xc476('0x42')]);router['post'](_0xc476('0x43'),auth[_0xc476('0xa')](),controller[_0xc476('0x44')]);router['post'](_0xc476('0x45'),auth[_0xc476('0xa')](),controller[_0xc476('0x46')]);router['post'](_0xc476('0x47'),auth['isAuthenticated'](),controller[_0xc476('0x48')]);router[_0xc476('0x34')](_0xc476('0x21'),auth[_0xc476('0xa')](),controller[_0xc476('0x49')]);router[_0xc476('0x34')](_0xc476('0x4a'),auth[_0xc476('0xa')](),controller[_0xc476('0x4b')]);router['post'](_0xc476('0x4c'),auth[_0xc476('0xa')](),controller['addMailInteractions']);router[_0xc476('0x34')](_0xc476('0x4d'),auth[_0xc476('0xa')](),controller[_0xc476('0x4e')]);router[_0xc476('0x34')]('/:id/sms_interactions',auth[_0xc476('0xa')](),controller[_0xc476('0x4f')]);router[_0xc476('0x34')]('/:id/openchannel_interactions',auth['isAuthenticated'](),controller['addOpenchannelInteractions']);router['post']('/:id/whatsapp_interactions',auth[_0xc476('0xa')](),controller[_0xc476('0x50')]);router[_0xc476('0x34')](_0xc476('0x25'),auth[_0xc476('0xa')](),controller[_0xc476('0x51')]);router[_0xc476('0x34')](_0xc476('0x27'),auth[_0xc476('0xa')](),controller[_0xc476('0x52')]);router['post'](_0xc476('0x29'),auth[_0xc476('0xa')](),controller[_0xc476('0x53')]);router[_0xc476('0x34')](_0xc476('0x54'),auth[_0xc476('0xa')](),controller[_0xc476('0x55')]);router[_0xc476('0x34')](_0xc476('0x2a'),auth[_0xc476('0xa')](),controller[_0xc476('0x56')]);router[_0xc476('0x34')](_0xc476('0x2c'),auth['isAuthenticated'](),controller[_0xc476('0x57')]);router['post'](_0xc476('0x58'),auth[_0xc476('0xa')](),controller[_0xc476('0x59')]);router['post'](_0xc476('0x31'),auth[_0xc476('0xa')](),controller[_0xc476('0x5a')]);router[_0xc476('0x5b')](_0xc476('0xe'),auth[_0xc476('0xa')](),controller[_0xc476('0x5c')]);router[_0xc476('0x5b')](_0xc476('0x5d'),auth[_0xc476('0xa')](),controller[_0xc476('0x5e')]);router['delete'](_0xc476('0x14'),auth[_0xc476('0xa')](),controller[_0xc476('0x5f')]);router[_0xc476('0x60')]('/:id/teams',auth[_0xc476('0xa')](),controller[_0xc476('0x61')]);router[_0xc476('0x60')](_0xc476('0xe'),auth[_0xc476('0xa')](),controller[_0xc476('0x62')]);router[_0xc476('0x60')]('/:id/chat_interactions',auth['isAuthenticated'](),controller[_0xc476('0x63')]);router[_0xc476('0x60')](_0xc476('0x4c'),auth[_0xc476('0xa')](),controller[_0xc476('0x64')]);router[_0xc476('0x60')](_0xc476('0x4d'),auth[_0xc476('0xa')](),controller[_0xc476('0x65')]);router[_0xc476('0x60')](_0xc476('0x66'),auth[_0xc476('0xa')](),controller[_0xc476('0x67')]);router['delete'](_0xc476('0x68'),auth[_0xc476('0xa')](),controller[_0xc476('0x69')]);router[_0xc476('0x60')](_0xc476('0x6a'),auth[_0xc476('0xa')](),controller['removeWhatsappInteractions']);router[_0xc476('0x60')]('/:id/fax_accounts',auth['isAuthenticated'](),controller['removeFaxAccounts']);router['delete'](_0xc476('0x27'),auth['isAuthenticated'](),controller[_0xc476('0x6b')]);router[_0xc476('0x60')](_0xc476('0x29'),auth[_0xc476('0xa')](),controller[_0xc476('0x6c')]);router[_0xc476('0x60')](_0xc476('0x54'),auth[_0xc476('0xa')](),controller[_0xc476('0x6d')]);router[_0xc476('0x60')](_0xc476('0x2a'),auth[_0xc476('0xa')](),controller[_0xc476('0x6e')]);router['delete'](_0xc476('0x2c'),auth[_0xc476('0xa')](),controller[_0xc476('0x6f')]);router['delete']('/:id/square_projects',auth[_0xc476('0xa')](),controller[_0xc476('0x70')]);router[_0xc476('0x60')](_0xc476('0x31'),auth[_0xc476('0xa')](),controller['removeApiKey']);module[_0xc476('0x71')]=router;
\ No newline at end of file