Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / user / index.js
index 25f6312..5e3d203 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2162=['/:id/fax_accounts','/:id/mail_accounts','getMailAccounts','/:id/openchannel_accounts','getOpenchannelAccounts','/:id/sms_accounts','/:id/square_projects','getSquareProjects','/:id/scheduled_calls','getScheduledCalls','/:id/api_key','getApiKey','post','/create_many','addContacts','create','diskStorage','join','root','server/files/images/','format','%s-%s','/:id/avatar','single','addAvatar','/:id/login','/:id/logout','logout','/:id/pause','pause','/:id/unpause','unpause','addTeams','/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','addMailInteractions','/:id/fax_interactions','addFaxInteractions','addSmsInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','addFaxAccounts','addMailAccounts','addOpenchannelAccounts','addSmsAccounts','/:id/chat_websites','addChatWebsites','addSquareProjects','update','put','/:id/password','delete','removeQueues','removeTeams','destroy','removeMailInteractions','removeFaxInteractions','/:id/sms_interactions','removeSmsInteractions','removeOpenchannelInteractions','removeFaxAccounts','removeMailAccounts','removeOpenchannelAccounts','removeChatWebsites','removeSquareProjects','removeApiKey','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./user.controller','get','isAuthenticated','describe','/:id','/:id/contacts','getContacts','/:id/queues','/:id/queues_rt','getVoiceQueuesRt','/:id/groups','getGroups','/:id/recordings','getScreenRecordings','/:id/chat/interactions','getChatInteractions','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','getMailInteractions','getSmsInteractions','/:id/fax/interactions','getFaxInteractions','/:id/teams','getLists','/:id/agents','getAgents','/:id/prefixes','getVoicePrefixes'];(function(_0x5a9b29,_0x42e719){var _0x5accc2=function(_0x54b193){while(--_0x54b193){_0x5a9b29['push'](_0x5a9b29['shift']());}};_0x5accc2(++_0x42e719);}(_0x2162,0x110));var _0x2216=function(_0x5811a2,_0x30404b){_0x5811a2=_0x5811a2-0x0;var _0x5b7646=_0x2162[_0x5811a2];return _0x5b7646;};'use strict';var multer=require('multer');var util=require(_0x2216('0x0'));var path=require('path');var timeout=require(_0x2216('0x1'));var express=require(_0x2216('0x2'));var router=express['Router']();var auth=require(_0x2216('0x3'));var interaction=require(_0x2216('0x4'));var config=require('../../config/environment');var controller=require(_0x2216('0x5'));router[_0x2216('0x6')]('/',auth[_0x2216('0x7')](),controller['index']);router[_0x2216('0x6')]('/describe',auth['isAuthenticated'](),controller[_0x2216('0x8')]);router[_0x2216('0x6')](_0x2216('0x9'),auth[_0x2216('0x7')](),controller['show']);router['get']('/:id/avatar',controller['getAvatar']);router[_0x2216('0x6')](_0x2216('0xa'),auth['isAuthenticated'](),controller[_0x2216('0xb')]);router[_0x2216('0x6')](_0x2216('0xc'),auth[_0x2216('0x7')](),controller['getQueues']);router[_0x2216('0x6')](_0x2216('0xd'),auth[_0x2216('0x7')](),controller[_0x2216('0xe')]);router[_0x2216('0x6')](_0x2216('0xf'),auth[_0x2216('0x7')](),controller[_0x2216('0x10')]);router['get'](_0x2216('0x11'),auth[_0x2216('0x7')](),controller['getRecordings']);router[_0x2216('0x6')]('/:id/screen_recordings',auth[_0x2216('0x7')](),controller[_0x2216('0x12')]);router[_0x2216('0x6')](_0x2216('0x13'),auth[_0x2216('0x7')](),controller[_0x2216('0x14')]);router[_0x2216('0x6')](_0x2216('0x15'),auth[_0x2216('0x7')](),controller[_0x2216('0x16')]);router[_0x2216('0x6')](_0x2216('0x17'),auth[_0x2216('0x7')](),controller[_0x2216('0x18')]);router[_0x2216('0x6')]('/:id/sms/interactions',auth[_0x2216('0x7')](),controller[_0x2216('0x19')]);router[_0x2216('0x6')](_0x2216('0x1a'),auth['isAuthenticated'](),controller[_0x2216('0x1b')]);router[_0x2216('0x6')](_0x2216('0x1c'),auth[_0x2216('0x7')](),controller['getTeams']);router['get']('/:id/lists',auth[_0x2216('0x7')](),controller[_0x2216('0x1d')]);router['get'](_0x2216('0x1e'),auth[_0x2216('0x7')](),controller[_0x2216('0x1f')]);router[_0x2216('0x6')](_0x2216('0x20'),auth['isAuthenticated'](),controller[_0x2216('0x21')]);router[_0x2216('0x6')](_0x2216('0x22'),auth[_0x2216('0x7')](),controller['getFaxAccounts']);router[_0x2216('0x6')](_0x2216('0x23'),auth[_0x2216('0x7')](),controller[_0x2216('0x24')]);router[_0x2216('0x6')](_0x2216('0x25'),auth[_0x2216('0x7')](),controller[_0x2216('0x26')]);router['get'](_0x2216('0x27'),auth['isAuthenticated'](),controller['getSmsAccounts']);router[_0x2216('0x6')]('/:id/chat_websites',auth[_0x2216('0x7')](),controller['getChatWebsites']);router[_0x2216('0x6')](_0x2216('0x28'),auth[_0x2216('0x7')](),controller[_0x2216('0x29')]);router[_0x2216('0x6')](_0x2216('0x2a'),auth[_0x2216('0x7')](),controller[_0x2216('0x2b')]);router[_0x2216('0x6')](_0x2216('0x2c'),auth['isAuthenticated'](),controller[_0x2216('0x2d')]);router[_0x2216('0x2e')](_0x2216('0x2f'),auth[_0x2216('0x7')](),controller['bulkCreate']);router[_0x2216('0x2e')](_0x2216('0xa'),auth[_0x2216('0x7')](),controller[_0x2216('0x30')]);router[_0x2216('0x2e')]('/',auth[_0x2216('0x7')](),controller[_0x2216('0x31')]);router[_0x2216('0x2e')]('/:id/queues',auth[_0x2216('0x7')](),controller['addQueues']);var upload=multer({'storage':multer[_0x2216('0x32')]({'destination':function(_0x102018,_0x56d7c1,_0x5e6ef2){_0x5e6ef2(null,path[_0x2216('0x33')](config[_0x2216('0x34')],_0x2216('0x35')));},'filename':function(_0xdb8aa2,_0x3f844c,_0x2ed9ec){_0x2ed9ec(null,util[_0x2216('0x36')](_0x2216('0x37'),Date['now'](),_0x3f844c['originalname']));}})});router[_0x2216('0x2e')](_0x2216('0x38'),upload[_0x2216('0x39')]('file'),controller[_0x2216('0x3a')]);router[_0x2216('0x2e')](_0x2216('0x3b'),auth[_0x2216('0x7')](),controller['login']);router[_0x2216('0x2e')](_0x2216('0x3c'),auth['isAuthenticated'](),controller[_0x2216('0x3d')]);router[_0x2216('0x2e')](_0x2216('0x3e'),auth['isAuthenticated'](),controller[_0x2216('0x3f')]);router[_0x2216('0x2e')](_0x2216('0x40'),auth['isAuthenticated'](),controller[_0x2216('0x41')]);router['post'](_0x2216('0x1c'),auth[_0x2216('0x7')](),controller[_0x2216('0x42')]);router[_0x2216('0x2e')](_0x2216('0x43'),auth[_0x2216('0x7')](),controller[_0x2216('0x44')]);router[_0x2216('0x2e')](_0x2216('0x45'),auth[_0x2216('0x7')](),controller[_0x2216('0x46')]);router[_0x2216('0x2e')](_0x2216('0x47'),auth['isAuthenticated'](),controller[_0x2216('0x48')]);router['post']('/:id/sms_interactions',auth['isAuthenticated'](),controller[_0x2216('0x49')]);router[_0x2216('0x2e')](_0x2216('0x4a'),auth[_0x2216('0x7')](),controller[_0x2216('0x4b')]);router[_0x2216('0x2e')](_0x2216('0x22'),auth[_0x2216('0x7')](),controller[_0x2216('0x4c')]);router[_0x2216('0x2e')]('/:id/mail_accounts',auth['isAuthenticated'](),controller[_0x2216('0x4d')]);router[_0x2216('0x2e')](_0x2216('0x25'),auth[_0x2216('0x7')](),controller[_0x2216('0x4e')]);router[_0x2216('0x2e')](_0x2216('0x27'),auth[_0x2216('0x7')](),controller[_0x2216('0x4f')]);router[_0x2216('0x2e')](_0x2216('0x50'),auth[_0x2216('0x7')](),controller[_0x2216('0x51')]);router[_0x2216('0x2e')](_0x2216('0x28'),auth[_0x2216('0x7')](),controller[_0x2216('0x52')]);router['post']('/:id/api_key',auth[_0x2216('0x7')](),controller['createApiKey']);router['put'](_0x2216('0x9'),auth[_0x2216('0x7')](),controller[_0x2216('0x53')]);router[_0x2216('0x54')](_0x2216('0x55'),auth[_0x2216('0x7')](),controller['changePassword']);router[_0x2216('0x56')]('/:id/queues',auth[_0x2216('0x7')](),controller[_0x2216('0x57')]);router[_0x2216('0x56')](_0x2216('0x1c'),auth['isAuthenticated'](),controller[_0x2216('0x58')]);router[_0x2216('0x56')](_0x2216('0x9'),auth[_0x2216('0x7')](),controller[_0x2216('0x59')]);router[_0x2216('0x56')](_0x2216('0x43'),auth['isAuthenticated'](),controller['removeChatInteractions']);router['delete'](_0x2216('0x45'),auth[_0x2216('0x7')](),controller[_0x2216('0x5a')]);router[_0x2216('0x56')]('/:id/fax_interactions',auth['isAuthenticated'](),controller[_0x2216('0x5b')]);router[_0x2216('0x56')](_0x2216('0x5c'),auth[_0x2216('0x7')](),controller[_0x2216('0x5d')]);router[_0x2216('0x56')](_0x2216('0x4a'),auth[_0x2216('0x7')](),controller[_0x2216('0x5e')]);router['delete'](_0x2216('0x22'),auth[_0x2216('0x7')](),controller[_0x2216('0x5f')]);router[_0x2216('0x56')](_0x2216('0x23'),auth[_0x2216('0x7')](),controller[_0x2216('0x60')]);router[_0x2216('0x56')](_0x2216('0x25'),auth[_0x2216('0x7')](),controller[_0x2216('0x61')]);router['delete'](_0x2216('0x27'),auth['isAuthenticated'](),controller['removeSmsAccounts']);router[_0x2216('0x56')](_0x2216('0x50'),auth[_0x2216('0x7')](),controller[_0x2216('0x62')]);router[_0x2216('0x56')](_0x2216('0x28'),auth[_0x2216('0x7')](),controller[_0x2216('0x63')]);router[_0x2216('0x56')](_0x2216('0x2c'),auth['isAuthenticated'](),controller[_0x2216('0x64')]);module[_0x2216('0x65')]=router;
\ No newline at end of file
+var _0x6be1=['multer','util','../../components/auth/service','../../components/interaction/service','../../config/environment','./user.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/avatar','getAvatar','/:id/contacts','getContacts','/:id/queues','getQueues','getVoiceQueuesRt','/:id/groups','/:id/recordings','getRecordings','getScreenRecordings','/:id/chat/interactions','getChatInteractions','/:id/openchannel/interactions','getOpenchannelInteractions','getMailInteractions','/:id/sms/interactions','/:id/fax/interactions','getFaxInteractions','getTeams','getLists','/:id/agents','getAgents','/:id/fax_accounts','/:id/mail_accounts','getMailAccounts','/:id/openchannel_accounts','getOpenchannelAccounts','/:id/sms_accounts','getSmsAccounts','/:id/chat_websites','getChatWebsites','getSquareProjects','/:id/scheduled_calls','getApiKey','post','/create_many','bulkCreate','addContacts','create','addQueues','diskStorage','join','root','server/files/images/','format','%s-%s','now','file','addAvatar','/:id/login','login','/:id/logout','logout','pause','unpause','/:id/teams','addTeams','/:id/chat_interactions','addChatInteractions','/:id/mail_interactions','addMailInteractions','addFaxInteractions','addSmsInteractions','addFaxAccounts','addMailAccounts','addOpenchannelAccounts','addChatWebsites','/:id/square_projects','/:id/api_key','createApiKey','put','update','/:id/password','delete','removeTeams','destroy','removeMailInteractions','/:id/fax_interactions','removeFaxInteractions','/:id/sms_interactions','removeSmsInteractions','/:id/openchannel_interactions','removeFaxAccounts','removeMailAccounts','removeChatWebsites','removeSquareProjects','removeApiKey','exports'];(function(_0x5a2e6d,_0x151115){var _0x2384af=function(_0x335b12){while(--_0x335b12){_0x5a2e6d['push'](_0x5a2e6d['shift']());}};_0x2384af(++_0x151115);}(_0x6be1,0x12f));var _0x16be=function(_0x27d209,_0x302386){_0x27d209=_0x27d209-0x0;var _0x4b44e3=_0x6be1[_0x27d209];return _0x4b44e3;};'use strict';var multer=require(_0x16be('0x0'));var util=require(_0x16be('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x16be('0x2'));var interaction=require(_0x16be('0x3'));var config=require(_0x16be('0x4'));var controller=require(_0x16be('0x5'));router[_0x16be('0x6')]('/',auth[_0x16be('0x7')](),controller[_0x16be('0x8')]);router[_0x16be('0x6')](_0x16be('0x9'),auth[_0x16be('0x7')](),controller['describe']);router[_0x16be('0x6')](_0x16be('0xa'),auth[_0x16be('0x7')](),controller[_0x16be('0xb')]);router[_0x16be('0x6')](_0x16be('0xc'),controller[_0x16be('0xd')]);router[_0x16be('0x6')](_0x16be('0xe'),auth[_0x16be('0x7')](),controller[_0x16be('0xf')]);router[_0x16be('0x6')](_0x16be('0x10'),auth[_0x16be('0x7')](),controller[_0x16be('0x11')]);router[_0x16be('0x6')]('/:id/queues_rt',auth[_0x16be('0x7')](),controller[_0x16be('0x12')]);router[_0x16be('0x6')](_0x16be('0x13'),auth[_0x16be('0x7')](),controller['getGroups']);router[_0x16be('0x6')](_0x16be('0x14'),auth['isAuthenticated'](),controller[_0x16be('0x15')]);router['get']('/:id/screen_recordings',auth['isAuthenticated'](),controller[_0x16be('0x16')]);router[_0x16be('0x6')](_0x16be('0x17'),auth['isAuthenticated'](),controller[_0x16be('0x18')]);router['get'](_0x16be('0x19'),auth[_0x16be('0x7')](),controller[_0x16be('0x1a')]);router[_0x16be('0x6')]('/:id/mail/interactions',auth[_0x16be('0x7')](),controller[_0x16be('0x1b')]);router['get'](_0x16be('0x1c'),auth[_0x16be('0x7')](),controller['getSmsInteractions']);router[_0x16be('0x6')](_0x16be('0x1d'),auth['isAuthenticated'](),controller[_0x16be('0x1e')]);router[_0x16be('0x6')]('/:id/teams',auth['isAuthenticated'](),controller[_0x16be('0x1f')]);router[_0x16be('0x6')]('/:id/lists',auth[_0x16be('0x7')](),controller[_0x16be('0x20')]);router[_0x16be('0x6')](_0x16be('0x21'),auth['isAuthenticated'](),controller[_0x16be('0x22')]);router[_0x16be('0x6')]('/:id/prefixes',auth[_0x16be('0x7')](),controller['getVoicePrefixes']);router['get'](_0x16be('0x23'),auth[_0x16be('0x7')](),controller['getFaxAccounts']);router[_0x16be('0x6')](_0x16be('0x24'),auth[_0x16be('0x7')](),controller[_0x16be('0x25')]);router[_0x16be('0x6')](_0x16be('0x26'),auth[_0x16be('0x7')](),controller[_0x16be('0x27')]);router['get'](_0x16be('0x28'),auth['isAuthenticated'](),controller[_0x16be('0x29')]);router[_0x16be('0x6')](_0x16be('0x2a'),auth[_0x16be('0x7')](),controller[_0x16be('0x2b')]);router[_0x16be('0x6')]('/:id/square_projects',auth['isAuthenticated'](),controller[_0x16be('0x2c')]);router[_0x16be('0x6')](_0x16be('0x2d'),auth[_0x16be('0x7')](),controller['getScheduledCalls']);router[_0x16be('0x6')]('/:id/api_key',auth[_0x16be('0x7')](),controller[_0x16be('0x2e')]);router[_0x16be('0x2f')](_0x16be('0x30'),auth[_0x16be('0x7')](),controller[_0x16be('0x31')]);router['post'](_0x16be('0xe'),auth[_0x16be('0x7')](),controller[_0x16be('0x32')]);router['post']('/',auth['isAuthenticated'](),controller[_0x16be('0x33')]);router[_0x16be('0x2f')](_0x16be('0x10'),auth[_0x16be('0x7')](),controller[_0x16be('0x34')]);var upload=multer({'storage':multer[_0x16be('0x35')]({'destination':function(_0x24d842,_0x4cd46e,_0x4e95df){_0x4e95df(null,path[_0x16be('0x36')](config[_0x16be('0x37')],_0x16be('0x38')));},'filename':function(_0x109aa5,_0x49246b,_0x12502d){_0x12502d(null,util[_0x16be('0x39')](_0x16be('0x3a'),Date[_0x16be('0x3b')](),_0x49246b['originalname']));}})});router[_0x16be('0x2f')]('/:id/avatar',upload['single'](_0x16be('0x3c')),controller[_0x16be('0x3d')]);router['post'](_0x16be('0x3e'),auth[_0x16be('0x7')](),controller[_0x16be('0x3f')]);router[_0x16be('0x2f')](_0x16be('0x40'),auth['isAuthenticated'](),controller[_0x16be('0x41')]);router['post']('/:id/pause',auth[_0x16be('0x7')](),controller[_0x16be('0x42')]);router[_0x16be('0x2f')]('/:id/unpause',auth[_0x16be('0x7')](),controller[_0x16be('0x43')]);router['post'](_0x16be('0x44'),auth['isAuthenticated'](),controller[_0x16be('0x45')]);router[_0x16be('0x2f')](_0x16be('0x46'),auth[_0x16be('0x7')](),controller[_0x16be('0x47')]);router[_0x16be('0x2f')](_0x16be('0x48'),auth[_0x16be('0x7')](),controller[_0x16be('0x49')]);router[_0x16be('0x2f')]('/:id/fax_interactions',auth[_0x16be('0x7')](),controller[_0x16be('0x4a')]);router[_0x16be('0x2f')]('/:id/sms_interactions',auth[_0x16be('0x7')](),controller[_0x16be('0x4b')]);router[_0x16be('0x2f')]('/:id/openchannel_interactions',auth[_0x16be('0x7')](),controller['addOpenchannelInteractions']);router[_0x16be('0x2f')](_0x16be('0x23'),auth['isAuthenticated'](),controller[_0x16be('0x4c')]);router['post'](_0x16be('0x24'),auth['isAuthenticated'](),controller[_0x16be('0x4d')]);router[_0x16be('0x2f')](_0x16be('0x26'),auth['isAuthenticated'](),controller[_0x16be('0x4e')]);router['post'](_0x16be('0x28'),auth[_0x16be('0x7')](),controller['addSmsAccounts']);router[_0x16be('0x2f')](_0x16be('0x2a'),auth[_0x16be('0x7')](),controller[_0x16be('0x4f')]);router[_0x16be('0x2f')](_0x16be('0x50'),auth[_0x16be('0x7')](),controller['addSquareProjects']);router[_0x16be('0x2f')](_0x16be('0x51'),auth[_0x16be('0x7')](),controller[_0x16be('0x52')]);router[_0x16be('0x53')]('/:id',auth[_0x16be('0x7')](),controller[_0x16be('0x54')]);router[_0x16be('0x53')](_0x16be('0x55'),auth['isAuthenticated'](),controller['changePassword']);router[_0x16be('0x56')](_0x16be('0x10'),auth['isAuthenticated'](),controller['removeQueues']);router[_0x16be('0x56')](_0x16be('0x44'),auth[_0x16be('0x7')](),controller[_0x16be('0x57')]);router[_0x16be('0x56')](_0x16be('0xa'),auth[_0x16be('0x7')](),controller[_0x16be('0x58')]);router[_0x16be('0x56')](_0x16be('0x46'),auth[_0x16be('0x7')](),controller['removeChatInteractions']);router[_0x16be('0x56')](_0x16be('0x48'),auth[_0x16be('0x7')](),controller[_0x16be('0x59')]);router[_0x16be('0x56')](_0x16be('0x5a'),auth[_0x16be('0x7')](),controller[_0x16be('0x5b')]);router[_0x16be('0x56')](_0x16be('0x5c'),auth['isAuthenticated'](),controller[_0x16be('0x5d')]);router[_0x16be('0x56')](_0x16be('0x5e'),auth[_0x16be('0x7')](),controller['removeOpenchannelInteractions']);router[_0x16be('0x56')](_0x16be('0x23'),auth[_0x16be('0x7')](),controller[_0x16be('0x5f')]);router[_0x16be('0x56')](_0x16be('0x24'),auth['isAuthenticated'](),controller[_0x16be('0x60')]);router['delete'](_0x16be('0x26'),auth[_0x16be('0x7')](),controller['removeOpenchannelAccounts']);router['delete']('/:id/sms_accounts',auth['isAuthenticated'](),controller['removeSmsAccounts']);router['delete'](_0x16be('0x2a'),auth['isAuthenticated'](),controller[_0x16be('0x61')]);router['delete'](_0x16be('0x50'),auth['isAuthenticated'](),controller[_0x16be('0x62')]);router['delete'](_0x16be('0x51'),auth[_0x16be('0x7')](),controller[_0x16be('0x63')]);module[_0x16be('0x64')]=router;
\ No newline at end of file