Built motion from commit (unavailable).|2.3.1
[motion2.git] / server / api / user / index.js
index d16b5b9..28c5f58 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6e5c=['removeSquareProjects','removeApiKey','exports','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/describe','describe','get','/:id','show','/:id/avatar','/:id/contacts','getContacts','/:id/queues','getQueues','getVoiceQueuesRt','/:id/groups','/:id/recordings','getRecordings','getChatInteractions','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','/:id/sms/interactions','getFaxInteractions','/:id/teams','getTeams','/:id/lists','getLists','/:id/agents','getAgents','/:id/prefixes','getVoicePrefixes','/:id/fax_accounts','getFaxAccounts','/:id/mail_accounts','/:id/openchannel_accounts','getOpenchannelAccounts','/:id/chat_websites','getChatWebsites','/:id/square_projects','/:id/scheduled_calls','getScheduledCalls','/:id/api_key','getApiKey','post','/create_many','bulkCreate','addQueues','root','format','%s-%s','originalname','single','file','addAvatar','login','/:id/logout','logout','pause','/:id/unpause','addTeams','/:id/chat_interactions','/:id/mail_interactions','addFaxInteractions','/:id/sms_interactions','addSmsInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','addMailAccounts','addOpenchannelAccounts','/:id/sms_accounts','addChatWebsites','addSquareProjects','createApiKey','put','/:id/password','changePassword','delete','removeTeams','destroy','removeChatInteractions','removeMailInteractions','/:id/fax_interactions','removeFaxInteractions','removeSmsInteractions','removeOpenchannelInteractions','removeFaxAccounts','removeOpenchannelAccounts','removeChatWebsites'];(function(_0x13c994,_0x2e1c99){var _0x44110b=function(_0x1e2325){while(--_0x1e2325){_0x13c994['push'](_0x13c994['shift']());}};_0x44110b(++_0x2e1c99);}(_0x6e5c,0x123));var _0xc6e5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x6e5c[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0xc6e5('0x0'));var path=require(_0xc6e5('0x1'));var timeout=require(_0xc6e5('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xc6e5('0x3'));var interaction=require(_0xc6e5('0x4'));var config=require(_0xc6e5('0x5'));var controller=require('./user.controller');router['get']('/',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x7')]);router['get'](_0xc6e5('0x8'),auth['isAuthenticated'](),controller[_0xc6e5('0x9')]);router[_0xc6e5('0xa')](_0xc6e5('0xb'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0xc')]);router['get'](_0xc6e5('0xd'),controller['getAvatar']);router[_0xc6e5('0xa')](_0xc6e5('0xe'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0xf')]);router[_0xc6e5('0xa')](_0xc6e5('0x10'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x11')]);router[_0xc6e5('0xa')]('/:id/queues_rt',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x12')]);router[_0xc6e5('0xa')](_0xc6e5('0x13'),auth[_0xc6e5('0x6')](),controller['getGroups']);router[_0xc6e5('0xa')](_0xc6e5('0x14'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x15')]);router[_0xc6e5('0xa')]('/:id/chat/interactions',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x16')]);router[_0xc6e5('0xa')](_0xc6e5('0x17'),auth['isAuthenticated'](),controller[_0xc6e5('0x18')]);router[_0xc6e5('0xa')](_0xc6e5('0x19'),auth[_0xc6e5('0x6')](),controller['getMailInteractions']);router[_0xc6e5('0xa')](_0xc6e5('0x1a'),auth[_0xc6e5('0x6')](),controller['getSmsInteractions']);router[_0xc6e5('0xa')]('/:id/fax/interactions',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x1b')]);router['get'](_0xc6e5('0x1c'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x1d')]);router['get'](_0xc6e5('0x1e'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x1f')]);router[_0xc6e5('0xa')](_0xc6e5('0x20'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x21')]);router[_0xc6e5('0xa')](_0xc6e5('0x22'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x23')]);router['get'](_0xc6e5('0x24'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x25')]);router[_0xc6e5('0xa')](_0xc6e5('0x26'),auth[_0xc6e5('0x6')](),controller['getMailAccounts']);router[_0xc6e5('0xa')](_0xc6e5('0x27'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x28')]);router[_0xc6e5('0xa')]('/:id/sms_accounts',auth[_0xc6e5('0x6')](),controller['getSmsAccounts']);router[_0xc6e5('0xa')](_0xc6e5('0x29'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x2a')]);router[_0xc6e5('0xa')](_0xc6e5('0x2b'),auth[_0xc6e5('0x6')](),controller['getSquareProjects']);router['get'](_0xc6e5('0x2c'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x2d')]);router[_0xc6e5('0xa')](_0xc6e5('0x2e'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x2f')]);router[_0xc6e5('0x30')](_0xc6e5('0x31'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x32')]);router[_0xc6e5('0x30')](_0xc6e5('0xe'),auth[_0xc6e5('0x6')](),controller['addContacts']);router[_0xc6e5('0x30')]('/',auth[_0xc6e5('0x6')](),controller['create']);router['post'](_0xc6e5('0x10'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x33')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x8780f3,_0x55b4de,_0x5c0624){_0x5c0624(null,path['join'](config[_0xc6e5('0x34')],'server/files/images/'));},'filename':function(_0x4879a0,_0x3fc493,_0x3aaeb9){_0x3aaeb9(null,util[_0xc6e5('0x35')](_0xc6e5('0x36'),Date['now'](),_0x3fc493[_0xc6e5('0x37')]));}})});router[_0xc6e5('0x30')](_0xc6e5('0xd'),upload[_0xc6e5('0x38')](_0xc6e5('0x39')),controller[_0xc6e5('0x3a')]);router[_0xc6e5('0x30')]('/:id/login',auth['isAuthenticated'](),controller[_0xc6e5('0x3b')]);router['post'](_0xc6e5('0x3c'),auth['isAuthenticated'](),controller[_0xc6e5('0x3d')]);router['post']('/:id/pause',auth['isAuthenticated'](),controller[_0xc6e5('0x3e')]);router['post'](_0xc6e5('0x3f'),auth['isAuthenticated'](),controller['unpause']);router[_0xc6e5('0x30')](_0xc6e5('0x1c'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x40')]);router[_0xc6e5('0x30')](_0xc6e5('0x41'),auth[_0xc6e5('0x6')](),controller['addChatInteractions']);router[_0xc6e5('0x30')](_0xc6e5('0x42'),auth['isAuthenticated'](),controller['addMailInteractions']);router['post']('/:id/fax_interactions',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x43')]);router[_0xc6e5('0x30')](_0xc6e5('0x44'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x45')]);router['post'](_0xc6e5('0x46'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x47')]);router[_0xc6e5('0x30')](_0xc6e5('0x24'),auth[_0xc6e5('0x6')](),controller['addFaxAccounts']);router[_0xc6e5('0x30')](_0xc6e5('0x26'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x48')]);router['post']('/:id/openchannel_accounts',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x49')]);router[_0xc6e5('0x30')](_0xc6e5('0x4a'),auth['isAuthenticated'](),controller['addSmsAccounts']);router[_0xc6e5('0x30')]('/:id/chat_websites',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x4b')]);router['post'](_0xc6e5('0x2b'),auth['isAuthenticated'](),controller[_0xc6e5('0x4c')]);router[_0xc6e5('0x30')]('/:id/api_key',auth['isAuthenticated'](),controller[_0xc6e5('0x4d')]);router[_0xc6e5('0x4e')](_0xc6e5('0xb'),auth[_0xc6e5('0x6')](),controller['update']);router['put'](_0xc6e5('0x4f'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x50')]);router[_0xc6e5('0x51')](_0xc6e5('0x10'),auth[_0xc6e5('0x6')](),controller['removeQueues']);router['delete']('/:id/teams',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x52')]);router[_0xc6e5('0x51')](_0xc6e5('0xb'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x53')]);router[_0xc6e5('0x51')](_0xc6e5('0x41'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x54')]);router[_0xc6e5('0x51')](_0xc6e5('0x42'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x55')]);router['delete'](_0xc6e5('0x56'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x57')]);router[_0xc6e5('0x51')](_0xc6e5('0x44'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x58')]);router[_0xc6e5('0x51')](_0xc6e5('0x46'),auth['isAuthenticated'](),controller[_0xc6e5('0x59')]);router[_0xc6e5('0x51')](_0xc6e5('0x24'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x5a')]);router[_0xc6e5('0x51')]('/:id/mail_accounts',auth[_0xc6e5('0x6')](),controller['removeMailAccounts']);router['delete'](_0xc6e5('0x27'),auth['isAuthenticated'](),controller[_0xc6e5('0x5b')]);router[_0xc6e5('0x51')](_0xc6e5('0x4a'),auth['isAuthenticated'](),controller['removeSmsAccounts']);router[_0xc6e5('0x51')](_0xc6e5('0x29'),auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x5c')]);router[_0xc6e5('0x51')]('/:id/square_projects',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x5d')]);router[_0xc6e5('0x51')]('/:id/api_key',auth[_0xc6e5('0x6')](),controller[_0xc6e5('0x5e')]);module[_0xc6e5('0x5f')]=router;
\ No newline at end of file
+var _0x4fbe=['/:id/mail_interactions','addMailInteractions','addFaxInteractions','/:id/sms_interactions','addSmsInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','addFaxAccounts','addMailAccounts','addOpenchannelAccounts','/:id/sms_accounts','addSquareProjects','createApiKey','update','put','/:id/password','changePassword','delete','removeQueues','destroy','removeMailInteractions','/:id/fax_interactions','removeFaxInteractions','removeSmsInteractions','removeOpenchannelInteractions','removeFaxAccounts','removeMailAccounts','removeSquareProjects','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./user.controller','isAuthenticated','index','/describe','describe','/:id','show','get','/:id/avatar','/:id/contacts','getContacts','/:id/queues','getQueues','getVoiceQueuesRt','/:id/groups','getGroups','/:id/recordings','getRecordings','/:id/chat/interactions','/:id/openchannel/interactions','/:id/mail/interactions','getMailInteractions','/:id/sms/interactions','/:id/fax/interactions','getFaxInteractions','/:id/teams','/:id/lists','getAgents','/:id/prefixes','/:id/fax_accounts','getFaxAccounts','/:id/mail_accounts','getMailAccounts','/:id/openchannel_accounts','getOpenchannelAccounts','getSmsAccounts','/:id/chat_websites','/:id/square_projects','getSquareProjects','/:id/scheduled_calls','getScheduledCalls','/:id/api_key','post','bulkCreate','addContacts','create','diskStorage','root','server/files/images/','%s-%s','originalname','single','addAvatar','/:id/login','logout','/:id/unpause','unpause','addTeams','/:id/chat_interactions','addChatInteractions'];(function(_0x4e5622,_0x4b41a0){var _0x1e9995=function(_0x612bbd){while(--_0x612bbd){_0x4e5622['push'](_0x4e5622['shift']());}};_0x1e9995(++_0x4b41a0);}(_0x4fbe,0x13c));var _0xe4fb=function(_0xf30a98,_0x4e36d1){_0xf30a98=_0xf30a98-0x0;var _0x5b53dc=_0x4fbe[_0xf30a98];return _0x5b53dc;};'use strict';var multer=require(_0xe4fb('0x0'));var util=require(_0xe4fb('0x1'));var path=require(_0xe4fb('0x2'));var timeout=require('connect-timeout');var express=require(_0xe4fb('0x3'));var router=express[_0xe4fb('0x4')]();var auth=require(_0xe4fb('0x5'));var interaction=require(_0xe4fb('0x6'));var config=require(_0xe4fb('0x7'));var controller=require(_0xe4fb('0x8'));router['get']('/',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0xa')]);router['get'](_0xe4fb('0xb'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0xc')]);router['get'](_0xe4fb('0xd'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0xe')]);router[_0xe4fb('0xf')](_0xe4fb('0x10'),controller['getAvatar']);router[_0xe4fb('0xf')](_0xe4fb('0x11'),auth['isAuthenticated'](),controller[_0xe4fb('0x12')]);router[_0xe4fb('0xf')](_0xe4fb('0x13'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x14')]);router[_0xe4fb('0xf')]('/:id/queues_rt',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x15')]);router[_0xe4fb('0xf')](_0xe4fb('0x16'),auth['isAuthenticated'](),controller[_0xe4fb('0x17')]);router['get'](_0xe4fb('0x18'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x19')]);router[_0xe4fb('0xf')](_0xe4fb('0x1a'),auth[_0xe4fb('0x9')](),controller['getChatInteractions']);router[_0xe4fb('0xf')](_0xe4fb('0x1b'),auth['isAuthenticated'](),controller['getOpenchannelInteractions']);router[_0xe4fb('0xf')](_0xe4fb('0x1c'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x1d')]);router['get'](_0xe4fb('0x1e'),auth[_0xe4fb('0x9')](),controller['getSmsInteractions']);router['get'](_0xe4fb('0x1f'),auth['isAuthenticated'](),controller[_0xe4fb('0x20')]);router[_0xe4fb('0xf')](_0xe4fb('0x21'),auth['isAuthenticated'](),controller['getTeams']);router[_0xe4fb('0xf')](_0xe4fb('0x22'),auth[_0xe4fb('0x9')](),controller['getLists']);router['get']('/:id/agents',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x23')]);router[_0xe4fb('0xf')](_0xe4fb('0x24'),auth[_0xe4fb('0x9')](),controller['getVoicePrefixes']);router[_0xe4fb('0xf')](_0xe4fb('0x25'),auth['isAuthenticated'](),controller[_0xe4fb('0x26')]);router['get'](_0xe4fb('0x27'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x28')]);router[_0xe4fb('0xf')](_0xe4fb('0x29'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x2a')]);router[_0xe4fb('0xf')]('/:id/sms_accounts',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x2b')]);router['get'](_0xe4fb('0x2c'),auth[_0xe4fb('0x9')](),controller['getChatWebsites']);router['get'](_0xe4fb('0x2d'),auth['isAuthenticated'](),controller[_0xe4fb('0x2e')]);router[_0xe4fb('0xf')](_0xe4fb('0x2f'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x30')]);router[_0xe4fb('0xf')](_0xe4fb('0x31'),auth[_0xe4fb('0x9')](),controller['getApiKey']);router[_0xe4fb('0x32')]('/create_many',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x33')]);router[_0xe4fb('0x32')](_0xe4fb('0x11'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x34')]);router[_0xe4fb('0x32')]('/',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x35')]);router[_0xe4fb('0x32')](_0xe4fb('0x13'),auth[_0xe4fb('0x9')](),controller['addQueues']);var upload=multer({'storage':multer[_0xe4fb('0x36')]({'destination':function(_0x282902,_0x1e74a3,_0x5ea0bd){_0x5ea0bd(null,path['join'](config[_0xe4fb('0x37')],_0xe4fb('0x38')));},'filename':function(_0x4e31e8,_0x577af5,_0x46dc0e){_0x46dc0e(null,util['format'](_0xe4fb('0x39'),Date['now'](),_0x577af5[_0xe4fb('0x3a')]));}})});router[_0xe4fb('0x32')](_0xe4fb('0x10'),upload[_0xe4fb('0x3b')]('file'),controller[_0xe4fb('0x3c')]);router[_0xe4fb('0x32')](_0xe4fb('0x3d'),auth[_0xe4fb('0x9')](),controller['login']);router['post']('/:id/logout',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x3e')]);router[_0xe4fb('0x32')]('/:id/pause',auth[_0xe4fb('0x9')](),controller['pause']);router[_0xe4fb('0x32')](_0xe4fb('0x3f'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x40')]);router['post'](_0xe4fb('0x21'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x41')]);router['post'](_0xe4fb('0x42'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x43')]);router[_0xe4fb('0x32')](_0xe4fb('0x44'),auth['isAuthenticated'](),controller[_0xe4fb('0x45')]);router['post']('/:id/fax_interactions',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x46')]);router['post'](_0xe4fb('0x47'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x48')]);router[_0xe4fb('0x32')](_0xe4fb('0x49'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x4a')]);router[_0xe4fb('0x32')](_0xe4fb('0x25'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x4b')]);router[_0xe4fb('0x32')](_0xe4fb('0x27'),auth['isAuthenticated'](),controller[_0xe4fb('0x4c')]);router[_0xe4fb('0x32')](_0xe4fb('0x29'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x4d')]);router[_0xe4fb('0x32')](_0xe4fb('0x4e'),auth['isAuthenticated'](),controller['addSmsAccounts']);router['post'](_0xe4fb('0x2c'),auth['isAuthenticated'](),controller['addChatWebsites']);router[_0xe4fb('0x32')](_0xe4fb('0x2d'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x4f')]);router['post']('/:id/api_key',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x50')]);router['put'](_0xe4fb('0xd'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x51')]);router[_0xe4fb('0x52')](_0xe4fb('0x53'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x54')]);router[_0xe4fb('0x55')](_0xe4fb('0x13'),auth['isAuthenticated'](),controller[_0xe4fb('0x56')]);router[_0xe4fb('0x55')](_0xe4fb('0x21'),auth[_0xe4fb('0x9')](),controller['removeTeams']);router[_0xe4fb('0x55')]('/:id',auth['isAuthenticated'](),controller[_0xe4fb('0x57')]);router[_0xe4fb('0x55')]('/:id/chat_interactions',auth[_0xe4fb('0x9')](),controller['removeChatInteractions']);router['delete']('/:id/mail_interactions',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x58')]);router[_0xe4fb('0x55')](_0xe4fb('0x59'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x5a')]);router[_0xe4fb('0x55')](_0xe4fb('0x47'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x5b')]);router['delete']('/:id/openchannel_interactions',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x5c')]);router[_0xe4fb('0x55')]('/:id/fax_accounts',auth['isAuthenticated'](),controller[_0xe4fb('0x5d')]);router[_0xe4fb('0x55')]('/:id/mail_accounts',auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x5e')]);router['delete']('/:id/openchannel_accounts',auth['isAuthenticated'](),controller['removeOpenchannelAccounts']);router[_0xe4fb('0x55')](_0xe4fb('0x4e'),auth[_0xe4fb('0x9')](),controller['removeSmsAccounts']);router[_0xe4fb('0x55')]('/:id/chat_websites',auth[_0xe4fb('0x9')](),controller['removeChatWebsites']);router['delete'](_0xe4fb('0x2d'),auth[_0xe4fb('0x9')](),controller[_0xe4fb('0x5f')]);router[_0xe4fb('0x55')](_0xe4fb('0x31'),auth[_0xe4fb('0x9')](),controller['removeApiKey']);module['exports']=router;
\ No newline at end of file