Built motion from commit (unavailable).|2.4.5
[motion2.git] / server / api / user / index.js
index 4589afe..efd2c92 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x617f=['addContacts','create','/:id/queues','addQueues','diskStorage','join','root','format','%s-%s','now','addAvatar','login','/:id/logout','logout','/:id/pause','pause','unpause','addTeams','/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','addMailInteractions','/:id/fax_interactions','addFaxInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','addFaxAccounts','/:id/openchannel_accounts','addOpenchannelAccounts','addSmsAccounts','addChatWebsites','/:id/square_projects','addSquareProjects','createApiKey','update','put','/:id/password','changePassword','delete','removeTeams','destroy','removeChatInteractions','removeMailInteractions','removeFaxInteractions','/:id/sms_interactions','removeFaxAccounts','removeMailAccounts','removeOpenchannelAccounts','removeChatWebsites','removeApiKey','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./user.controller','get','isAuthenticated','describe','/:id','show','/:id/avatar','getAvatar','getContacts','getQueues','getVoiceQueuesRt','/:id/groups','getGroups','/:id/screen_recordings','getScreenRecordings','/:id/chat/interactions','/:id/openchannel/interactions','getOpenchannelInteractions','getMailInteractions','/:id/sms/interactions','/:id/fax/interactions','/:id/teams','getTeams','/:id/lists','getLists','/:id/agents','/:id/prefixes','getVoicePrefixes','/:id/fax_accounts','getFaxAccounts','/:id/mail_accounts','/:id/sms_accounts','getSmsAccounts','/:id/chat_websites','getChatWebsites','getSquareProjects','/:id/scheduled_calls','getScheduledCalls','/:id/api_key','getApiKey','post','bulkCreate','/:id/contacts'];(function(_0xbd08b4,_0x4790ed){var _0x314f1e=function(_0x161589){while(--_0x161589){_0xbd08b4['push'](_0xbd08b4['shift']());}};_0x314f1e(++_0x4790ed);}(_0x617f,0x15e));var _0xf617=function(_0x5c586e,_0x558134){_0x5c586e=_0x5c586e-0x0;var _0x493e38=_0x617f[_0x5c586e];return _0x493e38;};'use strict';var multer=require('multer');var util=require(_0xf617('0x0'));var path=require(_0xf617('0x1'));var timeout=require(_0xf617('0x2'));var express=require(_0xf617('0x3'));var router=express['Router']();var auth=require(_0xf617('0x4'));var interaction=require(_0xf617('0x5'));var config=require(_0xf617('0x6'));var controller=require(_0xf617('0x7'));router[_0xf617('0x8')]('/',auth[_0xf617('0x9')](),controller['index']);router[_0xf617('0x8')]('/describe',auth[_0xf617('0x9')](),controller[_0xf617('0xa')]);router[_0xf617('0x8')](_0xf617('0xb'),auth[_0xf617('0x9')](),controller[_0xf617('0xc')]);router[_0xf617('0x8')](_0xf617('0xd'),controller[_0xf617('0xe')]);router[_0xf617('0x8')]('/:id/contacts',auth[_0xf617('0x9')](),controller[_0xf617('0xf')]);router['get']('/:id/queues',auth[_0xf617('0x9')](),controller[_0xf617('0x10')]);router[_0xf617('0x8')]('/:id/queues_rt',auth['isAuthenticated'](),controller[_0xf617('0x11')]);router[_0xf617('0x8')](_0xf617('0x12'),auth[_0xf617('0x9')](),controller[_0xf617('0x13')]);router[_0xf617('0x8')]('/:id/recordings',auth[_0xf617('0x9')](),controller['getRecordings']);router['get'](_0xf617('0x14'),auth[_0xf617('0x9')](),controller[_0xf617('0x15')]);router[_0xf617('0x8')](_0xf617('0x16'),auth[_0xf617('0x9')](),controller['getChatInteractions']);router[_0xf617('0x8')](_0xf617('0x17'),auth['isAuthenticated'](),controller[_0xf617('0x18')]);router[_0xf617('0x8')]('/:id/mail/interactions',auth[_0xf617('0x9')](),controller[_0xf617('0x19')]);router[_0xf617('0x8')](_0xf617('0x1a'),auth[_0xf617('0x9')](),controller['getSmsInteractions']);router['get'](_0xf617('0x1b'),auth[_0xf617('0x9')](),controller['getFaxInteractions']);router[_0xf617('0x8')](_0xf617('0x1c'),auth[_0xf617('0x9')](),controller[_0xf617('0x1d')]);router['get'](_0xf617('0x1e'),auth[_0xf617('0x9')](),controller[_0xf617('0x1f')]);router[_0xf617('0x8')](_0xf617('0x20'),auth[_0xf617('0x9')](),controller['getAgents']);router[_0xf617('0x8')](_0xf617('0x21'),auth['isAuthenticated'](),controller[_0xf617('0x22')]);router['get'](_0xf617('0x23'),auth[_0xf617('0x9')](),controller[_0xf617('0x24')]);router[_0xf617('0x8')](_0xf617('0x25'),auth['isAuthenticated'](),controller['getMailAccounts']);router[_0xf617('0x8')]('/:id/openchannel_accounts',auth[_0xf617('0x9')](),controller['getOpenchannelAccounts']);router[_0xf617('0x8')](_0xf617('0x26'),auth[_0xf617('0x9')](),controller[_0xf617('0x27')]);router[_0xf617('0x8')](_0xf617('0x28'),auth[_0xf617('0x9')](),controller[_0xf617('0x29')]);router[_0xf617('0x8')]('/:id/square_projects',auth[_0xf617('0x9')](),controller[_0xf617('0x2a')]);router[_0xf617('0x8')](_0xf617('0x2b'),auth[_0xf617('0x9')](),controller[_0xf617('0x2c')]);router[_0xf617('0x8')](_0xf617('0x2d'),auth['isAuthenticated'](),controller[_0xf617('0x2e')]);router[_0xf617('0x2f')]('/create_many',auth['isAuthenticated'](),controller[_0xf617('0x30')]);router[_0xf617('0x2f')](_0xf617('0x31'),auth[_0xf617('0x9')](),controller[_0xf617('0x32')]);router['post']('/',auth[_0xf617('0x9')](),controller[_0xf617('0x33')]);router[_0xf617('0x2f')](_0xf617('0x34'),auth['isAuthenticated'](),controller[_0xf617('0x35')]);var upload=multer({'storage':multer[_0xf617('0x36')]({'destination':function(_0x34581a,_0x595328,_0x54c863){_0x54c863(null,path[_0xf617('0x37')](config[_0xf617('0x38')],'server/files/images/'));},'filename':function(_0x5c83bc,_0x4921a4,_0x1d7d5b){_0x1d7d5b(null,util[_0xf617('0x39')](_0xf617('0x3a'),Date[_0xf617('0x3b')](),_0x4921a4['originalname']));}})});router[_0xf617('0x2f')]('/:id/avatar',upload['single']('file'),controller[_0xf617('0x3c')]);router[_0xf617('0x2f')]('/:id/login',auth['isAuthenticated'](),controller[_0xf617('0x3d')]);router[_0xf617('0x2f')](_0xf617('0x3e'),auth[_0xf617('0x9')](),controller[_0xf617('0x3f')]);router[_0xf617('0x2f')](_0xf617('0x40'),auth[_0xf617('0x9')](),controller[_0xf617('0x41')]);router[_0xf617('0x2f')]('/:id/unpause',auth['isAuthenticated'](),controller[_0xf617('0x42')]);router[_0xf617('0x2f')](_0xf617('0x1c'),auth['isAuthenticated'](),controller[_0xf617('0x43')]);router[_0xf617('0x2f')](_0xf617('0x44'),auth[_0xf617('0x9')](),controller[_0xf617('0x45')]);router[_0xf617('0x2f')](_0xf617('0x46'),auth[_0xf617('0x9')](),controller[_0xf617('0x47')]);router[_0xf617('0x2f')](_0xf617('0x48'),auth[_0xf617('0x9')](),controller[_0xf617('0x49')]);router[_0xf617('0x2f')]('/:id/sms_interactions',auth['isAuthenticated'](),controller['addSmsInteractions']);router['post'](_0xf617('0x4a'),auth[_0xf617('0x9')](),controller[_0xf617('0x4b')]);router[_0xf617('0x2f')](_0xf617('0x23'),auth[_0xf617('0x9')](),controller[_0xf617('0x4c')]);router[_0xf617('0x2f')](_0xf617('0x25'),auth['isAuthenticated'](),controller['addMailAccounts']);router[_0xf617('0x2f')](_0xf617('0x4d'),auth['isAuthenticated'](),controller[_0xf617('0x4e')]);router['post'](_0xf617('0x26'),auth['isAuthenticated'](),controller[_0xf617('0x4f')]);router[_0xf617('0x2f')](_0xf617('0x28'),auth[_0xf617('0x9')](),controller[_0xf617('0x50')]);router[_0xf617('0x2f')](_0xf617('0x51'),auth[_0xf617('0x9')](),controller[_0xf617('0x52')]);router[_0xf617('0x2f')]('/:id/api_key',auth[_0xf617('0x9')](),controller[_0xf617('0x53')]);router['put'](_0xf617('0xb'),auth[_0xf617('0x9')](),controller[_0xf617('0x54')]);router[_0xf617('0x55')](_0xf617('0x56'),auth[_0xf617('0x9')](),controller[_0xf617('0x57')]);router[_0xf617('0x58')](_0xf617('0x34'),auth[_0xf617('0x9')](),controller['removeQueues']);router[_0xf617('0x58')]('/:id/teams',auth['isAuthenticated'](),controller[_0xf617('0x59')]);router[_0xf617('0x58')](_0xf617('0xb'),auth[_0xf617('0x9')](),controller[_0xf617('0x5a')]);router[_0xf617('0x58')](_0xf617('0x44'),auth[_0xf617('0x9')](),controller[_0xf617('0x5b')]);router['delete'](_0xf617('0x46'),auth[_0xf617('0x9')](),controller[_0xf617('0x5c')]);router['delete'](_0xf617('0x48'),auth[_0xf617('0x9')](),controller[_0xf617('0x5d')]);router[_0xf617('0x58')](_0xf617('0x5e'),auth[_0xf617('0x9')](),controller['removeSmsInteractions']);router[_0xf617('0x58')]('/:id/openchannel_interactions',auth[_0xf617('0x9')](),controller['removeOpenchannelInteractions']);router['delete']('/:id/fax_accounts',auth['isAuthenticated'](),controller[_0xf617('0x5f')]);router[_0xf617('0x58')](_0xf617('0x25'),auth[_0xf617('0x9')](),controller[_0xf617('0x60')]);router[_0xf617('0x58')](_0xf617('0x4d'),auth[_0xf617('0x9')](),controller[_0xf617('0x61')]);router['delete'](_0xf617('0x26'),auth[_0xf617('0x9')](),controller['removeSmsAccounts']);router[_0xf617('0x58')](_0xf617('0x28'),auth[_0xf617('0x9')](),controller[_0xf617('0x62')]);router[_0xf617('0x58')]('/:id/square_projects',auth[_0xf617('0x9')](),controller['removeSquareProjects']);router['delete'](_0xf617('0x2d'),auth[_0xf617('0x9')](),controller[_0xf617('0x63')]);module['exports']=router;
\ No newline at end of file
+var _0x418f=['/:id/openchannel_accounts','addOpenchannelAccounts','addSmsAccounts','addChatWebsites','/:id/square_projects','addSquareProjects','/:id/api_key','createApiKey','put','update','changePassword','delete','/:id/teams','removeTeams','removeChatInteractions','removeMailInteractions','removeFaxInteractions','removeFaxAccounts','removeMailAccounts','removeOpenchannelAccounts','removeSmsAccounts','removeSquareProjects','removeApiKey','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./user.controller','isAuthenticated','describe','get','/:id','show','/:id/avatar','getAvatar','/:id/contacts','getContacts','/:id/queues','/:id/groups','/:id/recordings','getRecordings','getScreenRecordings','/:id/chat/interactions','getChatInteractions','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','getMailInteractions','/:id/sms/interactions','/:id/fax/interactions','getFaxInteractions','/:id/lists','getLists','getAgents','/:id/prefixes','/:id/fax_accounts','getFaxAccounts','getOpenchannelAccounts','/:id/sms_accounts','getSmsAccounts','/:id/chat_websites','getSquareProjects','/:id/scheduled_calls','getScheduledCalls','getApiKey','bulkCreate','addContacts','post','create','addQueues','diskStorage','join','root','server/files/images/','format','now','originalname','single','file','login','/:id/logout','logout','pause','/:id/unpause','/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','addMailInteractions','/:id/fax_interactions','addFaxInteractions','/:id/sms_interactions','addSmsInteractions','/:id/openchannel_interactions','addFaxAccounts','/:id/mail_accounts','addMailAccounts'];(function(_0x963bb4,_0x5bb5aa){var _0x5264b4=function(_0x345652){while(--_0x345652){_0x963bb4['push'](_0x963bb4['shift']());}};_0x5264b4(++_0x5bb5aa);}(_0x418f,0xdf));var _0xf418=function(_0x488bfd,_0x25d5b3){_0x488bfd=_0x488bfd-0x0;var _0x408153=_0x418f[_0x488bfd];return _0x408153;};'use strict';var multer=require(_0xf418('0x0'));var util=require(_0xf418('0x1'));var path=require(_0xf418('0x2'));var timeout=require(_0xf418('0x3'));var express=require(_0xf418('0x4'));var router=express['Router']();var auth=require(_0xf418('0x5'));var interaction=require(_0xf418('0x6'));var config=require(_0xf418('0x7'));var controller=require(_0xf418('0x8'));router['get']('/',auth[_0xf418('0x9')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller[_0xf418('0xa')]);router[_0xf418('0xb')](_0xf418('0xc'),auth[_0xf418('0x9')](),controller[_0xf418('0xd')]);router['get'](_0xf418('0xe'),controller[_0xf418('0xf')]);router[_0xf418('0xb')](_0xf418('0x10'),auth[_0xf418('0x9')](),controller[_0xf418('0x11')]);router['get'](_0xf418('0x12'),auth[_0xf418('0x9')](),controller['getQueues']);router[_0xf418('0xb')]('/:id/queues_rt',auth[_0xf418('0x9')](),controller['getVoiceQueuesRt']);router['get'](_0xf418('0x13'),auth[_0xf418('0x9')](),controller['getGroups']);router[_0xf418('0xb')](_0xf418('0x14'),auth[_0xf418('0x9')](),controller[_0xf418('0x15')]);router[_0xf418('0xb')]('/:id/screen_recordings',auth[_0xf418('0x9')](),controller[_0xf418('0x16')]);router['get'](_0xf418('0x17'),auth[_0xf418('0x9')](),controller[_0xf418('0x18')]);router['get'](_0xf418('0x19'),auth[_0xf418('0x9')](),controller[_0xf418('0x1a')]);router[_0xf418('0xb')](_0xf418('0x1b'),auth[_0xf418('0x9')](),controller[_0xf418('0x1c')]);router['get'](_0xf418('0x1d'),auth[_0xf418('0x9')](),controller['getSmsInteractions']);router[_0xf418('0xb')](_0xf418('0x1e'),auth[_0xf418('0x9')](),controller[_0xf418('0x1f')]);router['get']('/:id/teams',auth[_0xf418('0x9')](),controller['getTeams']);router[_0xf418('0xb')](_0xf418('0x20'),auth['isAuthenticated'](),controller[_0xf418('0x21')]);router[_0xf418('0xb')]('/:id/agents',auth['isAuthenticated'](),controller[_0xf418('0x22')]);router[_0xf418('0xb')](_0xf418('0x23'),auth[_0xf418('0x9')](),controller['getVoicePrefixes']);router[_0xf418('0xb')](_0xf418('0x24'),auth['isAuthenticated'](),controller[_0xf418('0x25')]);router[_0xf418('0xb')]('/:id/mail_accounts',auth[_0xf418('0x9')](),controller['getMailAccounts']);router[_0xf418('0xb')]('/:id/openchannel_accounts',auth['isAuthenticated'](),controller[_0xf418('0x26')]);router[_0xf418('0xb')](_0xf418('0x27'),auth['isAuthenticated'](),controller[_0xf418('0x28')]);router[_0xf418('0xb')](_0xf418('0x29'),auth[_0xf418('0x9')](),controller['getChatWebsites']);router[_0xf418('0xb')]('/:id/square_projects',auth[_0xf418('0x9')](),controller[_0xf418('0x2a')]);router['get'](_0xf418('0x2b'),auth[_0xf418('0x9')](),controller[_0xf418('0x2c')]);router['get']('/:id/api_key',auth[_0xf418('0x9')](),controller[_0xf418('0x2d')]);router['post']('/create_many',auth[_0xf418('0x9')](),controller[_0xf418('0x2e')]);router['post']('/:id/contacts',auth[_0xf418('0x9')](),controller[_0xf418('0x2f')]);router[_0xf418('0x30')]('/',auth[_0xf418('0x9')](),controller[_0xf418('0x31')]);router[_0xf418('0x30')](_0xf418('0x12'),auth[_0xf418('0x9')](),controller[_0xf418('0x32')]);var upload=multer({'storage':multer[_0xf418('0x33')]({'destination':function(_0x25e6d9,_0x5a48bf,_0x538e2c){_0x538e2c(null,path[_0xf418('0x34')](config[_0xf418('0x35')],_0xf418('0x36')));},'filename':function(_0x45577a,_0x196ed0,_0x194b29){_0x194b29(null,util[_0xf418('0x37')]('%s-%s',Date[_0xf418('0x38')](),_0x196ed0[_0xf418('0x39')]));}})});router[_0xf418('0x30')](_0xf418('0xe'),upload[_0xf418('0x3a')](_0xf418('0x3b')),controller['addAvatar']);router['post']('/:id/login',auth[_0xf418('0x9')](),controller[_0xf418('0x3c')]);router[_0xf418('0x30')](_0xf418('0x3d'),auth[_0xf418('0x9')](),controller[_0xf418('0x3e')]);router[_0xf418('0x30')]('/:id/pause',auth[_0xf418('0x9')](),controller[_0xf418('0x3f')]);router['post'](_0xf418('0x40'),auth[_0xf418('0x9')](),controller['unpause']);router['post']('/:id/teams',auth[_0xf418('0x9')](),controller['addTeams']);router[_0xf418('0x30')](_0xf418('0x41'),auth[_0xf418('0x9')](),controller[_0xf418('0x42')]);router[_0xf418('0x30')](_0xf418('0x43'),auth[_0xf418('0x9')](),controller[_0xf418('0x44')]);router[_0xf418('0x30')](_0xf418('0x45'),auth[_0xf418('0x9')](),controller[_0xf418('0x46')]);router['post'](_0xf418('0x47'),auth[_0xf418('0x9')](),controller[_0xf418('0x48')]);router[_0xf418('0x30')](_0xf418('0x49'),auth[_0xf418('0x9')](),controller['addOpenchannelInteractions']);router[_0xf418('0x30')](_0xf418('0x24'),auth['isAuthenticated'](),controller[_0xf418('0x4a')]);router[_0xf418('0x30')](_0xf418('0x4b'),auth[_0xf418('0x9')](),controller[_0xf418('0x4c')]);router[_0xf418('0x30')](_0xf418('0x4d'),auth[_0xf418('0x9')](),controller[_0xf418('0x4e')]);router['post'](_0xf418('0x27'),auth[_0xf418('0x9')](),controller[_0xf418('0x4f')]);router['post']('/:id/chat_websites',auth[_0xf418('0x9')](),controller[_0xf418('0x50')]);router[_0xf418('0x30')](_0xf418('0x51'),auth[_0xf418('0x9')](),controller[_0xf418('0x52')]);router['post'](_0xf418('0x53'),auth[_0xf418('0x9')](),controller[_0xf418('0x54')]);router[_0xf418('0x55')](_0xf418('0xc'),auth['isAuthenticated'](),controller[_0xf418('0x56')]);router['put']('/:id/password',auth[_0xf418('0x9')](),controller[_0xf418('0x57')]);router[_0xf418('0x58')]('/:id/queues',auth[_0xf418('0x9')](),controller['removeQueues']);router[_0xf418('0x58')](_0xf418('0x59'),auth[_0xf418('0x9')](),controller[_0xf418('0x5a')]);router[_0xf418('0x58')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0xf418('0x58')]('/:id/chat_interactions',auth[_0xf418('0x9')](),controller[_0xf418('0x5b')]);router[_0xf418('0x58')](_0xf418('0x43'),auth[_0xf418('0x9')](),controller[_0xf418('0x5c')]);router['delete'](_0xf418('0x45'),auth['isAuthenticated'](),controller[_0xf418('0x5d')]);router[_0xf418('0x58')]('/:id/sms_interactions',auth[_0xf418('0x9')](),controller['removeSmsInteractions']);router[_0xf418('0x58')](_0xf418('0x49'),auth[_0xf418('0x9')](),controller['removeOpenchannelInteractions']);router[_0xf418('0x58')](_0xf418('0x24'),auth[_0xf418('0x9')](),controller[_0xf418('0x5e')]);router[_0xf418('0x58')](_0xf418('0x4b'),auth[_0xf418('0x9')](),controller[_0xf418('0x5f')]);router[_0xf418('0x58')](_0xf418('0x4d'),auth[_0xf418('0x9')](),controller[_0xf418('0x60')]);router[_0xf418('0x58')](_0xf418('0x27'),auth[_0xf418('0x9')](),controller[_0xf418('0x61')]);router[_0xf418('0x58')](_0xf418('0x29'),auth[_0xf418('0x9')](),controller['removeChatWebsites']);router[_0xf418('0x58')]('/:id/square_projects',auth[_0xf418('0x9')](),controller[_0xf418('0x62')]);router[_0xf418('0x58')](_0xf418('0x53'),auth[_0xf418('0x9')](),controller[_0xf418('0x63')]);module['exports']=router;
\ No newline at end of file