Built motion from commit (unavailable).|2.0.74
[motion2.git] / server / api / user / index.js
index 659c2e8..2eaf39c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd44d=['Router','../../components/auth/service','../../config/environment','./user.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/avatar','/:id/contacts','getContacts','/:id/queues_rt','getVoiceQueuesRt','/:id/groups','getGroups','/:id/chat/interactions','getChatInteractions','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','getMailInteractions','/:id/sms/interactions','getSmsInteractions','/:id/teams','getTeams','/:id/lists','getLists','getAgents','/:id/prefixes','/:id/fax_accounts','getFaxAccounts','/:id/mail_accounts','/:id/openchannel_accounts','getOpenchannelAccounts','/:id/sms_accounts','getSmsAccounts','getChatWebsites','/:id/square_projects','getSquareProjects','post','/create_many','bulkCreate','addContacts','create','addQueues','join','server/files/images/','format','%s-%s','now','originalname','single','file','addAvatar','/:id/login','/:id/logout','logout','/:id/pause','/:id/unpause','addTeams','/:id/chat_interactions','addMailInteractions','/:id/fax_interactions','/:id/sms_interactions','addSmsInteractions','/:id/openchannel_interactions','addOpenchannelInteractions','addFaxAccounts','addMailAccounts','addOpenchannelAccounts','/:id/chat_websites','addChatWebsites','update','put','/:id/password','changePassword','delete','/:id/queues','removeQueues','destroy','/:id/mail_interactions','removeMailInteractions','removeFaxInteractions','removeSmsInteractions','removeOpenchannelInteractions','removeFaxAccounts','removeMailAccounts','removeSmsAccounts','removeChatWebsites','removeSquareProjects','exports','util','express'];(function(_0x1f5143,_0x5e31e6){var _0x383a38=function(_0x2c123c){while(--_0x2c123c){_0x1f5143['push'](_0x1f5143['shift']());}};_0x383a38(++_0x5e31e6);}(_0xd44d,0xbe));var _0xdd44=function(_0x391955,_0x1fdcd6){_0x391955=_0x391955-0x0;var _0x121893=_0xd44d[_0x391955];return _0x121893;};'use strict';var multer=require('multer');var util=require(_0xdd44('0x0'));var path=require('path');var express=require(_0xdd44('0x1'));var router=express[_0xdd44('0x2')]();var auth=require(_0xdd44('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xdd44('0x4'));var controller=require(_0xdd44('0x5'));router[_0xdd44('0x6')]('/',auth[_0xdd44('0x7')](),controller[_0xdd44('0x8')]);router[_0xdd44('0x6')](_0xdd44('0x9'),auth[_0xdd44('0x7')](),controller[_0xdd44('0xa')]);router['get'](_0xdd44('0xb'),auth[_0xdd44('0x7')](),controller[_0xdd44('0xc')]);router[_0xdd44('0x6')](_0xdd44('0xd'),controller['getAvatar']);router[_0xdd44('0x6')](_0xdd44('0xe'),auth['isAuthenticated'](),controller[_0xdd44('0xf')]);router[_0xdd44('0x6')]('/:id/queues',auth[_0xdd44('0x7')](),controller['getQueues']);router[_0xdd44('0x6')](_0xdd44('0x10'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x11')]);router[_0xdd44('0x6')](_0xdd44('0x12'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x13')]);router[_0xdd44('0x6')]('/:id/recordings',auth[_0xdd44('0x7')](),controller['getRecordings']);router['get'](_0xdd44('0x14'),auth['isAuthenticated'](),controller[_0xdd44('0x15')]);router[_0xdd44('0x6')](_0xdd44('0x16'),auth['isAuthenticated'](),controller[_0xdd44('0x17')]);router[_0xdd44('0x6')](_0xdd44('0x18'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x19')]);router['get'](_0xdd44('0x1a'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x1b')]);router[_0xdd44('0x6')]('/:id/fax/interactions',auth[_0xdd44('0x7')](),controller['getFaxInteractions']);router[_0xdd44('0x6')](_0xdd44('0x1c'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x1d')]);router['get'](_0xdd44('0x1e'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x1f')]);router['get']('/:id/agents',auth[_0xdd44('0x7')](),controller[_0xdd44('0x20')]);router[_0xdd44('0x6')](_0xdd44('0x21'),auth['isAuthenticated'](),controller['getVoicePrefixes']);router[_0xdd44('0x6')](_0xdd44('0x22'),auth['isAuthenticated'](),controller[_0xdd44('0x23')]);router['get'](_0xdd44('0x24'),auth[_0xdd44('0x7')](),controller['getMailAccounts']);router[_0xdd44('0x6')](_0xdd44('0x25'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x26')]);router[_0xdd44('0x6')](_0xdd44('0x27'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x28')]);router['get']('/:id/chat_websites',auth['isAuthenticated'](),controller[_0xdd44('0x29')]);router[_0xdd44('0x6')](_0xdd44('0x2a'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x2b')]);router[_0xdd44('0x2c')](_0xdd44('0x2d'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x2e')]);router['post'](_0xdd44('0xe'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x2f')]);router[_0xdd44('0x2c')]('/',auth['isAuthenticated'](),controller[_0xdd44('0x30')]);router[_0xdd44('0x2c')]('/:id/queues',auth[_0xdd44('0x7')](),controller[_0xdd44('0x31')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2a2ee4,_0x33fc93,_0x36c15a){_0x36c15a(null,path[_0xdd44('0x32')](config['root'],_0xdd44('0x33')));},'filename':function(_0x210d91,_0x561aff,_0xbd822a){_0xbd822a(null,util[_0xdd44('0x34')](_0xdd44('0x35'),Date[_0xdd44('0x36')](),_0x561aff[_0xdd44('0x37')]));}})});router[_0xdd44('0x2c')](_0xdd44('0xd'),upload[_0xdd44('0x38')](_0xdd44('0x39')),controller[_0xdd44('0x3a')]);router[_0xdd44('0x2c')](_0xdd44('0x3b'),auth[_0xdd44('0x7')](),controller['login']);router[_0xdd44('0x2c')](_0xdd44('0x3c'),auth['isAuthenticated'](),controller[_0xdd44('0x3d')]);router[_0xdd44('0x2c')](_0xdd44('0x3e'),auth[_0xdd44('0x7')](),controller['pause']);router[_0xdd44('0x2c')](_0xdd44('0x3f'),auth['isAuthenticated'](),controller['unpause']);router[_0xdd44('0x2c')](_0xdd44('0x1c'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x40')]);router[_0xdd44('0x2c')](_0xdd44('0x41'),auth[_0xdd44('0x7')](),controller['addChatInteractions']);router[_0xdd44('0x2c')]('/:id/mail_interactions',auth[_0xdd44('0x7')](),controller[_0xdd44('0x42')]);router[_0xdd44('0x2c')](_0xdd44('0x43'),auth[_0xdd44('0x7')](),controller['addFaxInteractions']);router[_0xdd44('0x2c')](_0xdd44('0x44'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x45')]);router['post'](_0xdd44('0x46'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x47')]);router[_0xdd44('0x2c')]('/:id/fax_accounts',auth[_0xdd44('0x7')](),controller[_0xdd44('0x48')]);router[_0xdd44('0x2c')](_0xdd44('0x24'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x49')]);router[_0xdd44('0x2c')](_0xdd44('0x25'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x4a')]);router['post'](_0xdd44('0x27'),auth[_0xdd44('0x7')](),controller['addSmsAccounts']);router[_0xdd44('0x2c')](_0xdd44('0x4b'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x4c')]);router[_0xdd44('0x2c')](_0xdd44('0x2a'),auth[_0xdd44('0x7')](),controller['addSquareProjects']);router['put'](_0xdd44('0xb'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x4d')]);router[_0xdd44('0x4e')](_0xdd44('0x4f'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x50')]);router[_0xdd44('0x51')](_0xdd44('0x52'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x53')]);router['delete']('/:id/teams',auth[_0xdd44('0x7')](),controller['removeTeams']);router[_0xdd44('0x51')](_0xdd44('0xb'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x54')]);router['delete'](_0xdd44('0x41'),auth[_0xdd44('0x7')](),controller['removeChatInteractions']);router[_0xdd44('0x51')](_0xdd44('0x55'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x56')]);router[_0xdd44('0x51')]('/:id/fax_interactions',auth[_0xdd44('0x7')](),controller[_0xdd44('0x57')]);router[_0xdd44('0x51')](_0xdd44('0x44'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x58')]);router[_0xdd44('0x51')]('/:id/openchannel_interactions',auth[_0xdd44('0x7')](),controller[_0xdd44('0x59')]);router[_0xdd44('0x51')](_0xdd44('0x22'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x5a')]);router[_0xdd44('0x51')](_0xdd44('0x24'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x5b')]);router[_0xdd44('0x51')](_0xdd44('0x25'),auth[_0xdd44('0x7')](),controller['removeOpenchannelAccounts']);router[_0xdd44('0x51')](_0xdd44('0x27'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x5c')]);router[_0xdd44('0x51')](_0xdd44('0x4b'),auth['isAuthenticated'](),controller[_0xdd44('0x5d')]);router[_0xdd44('0x51')](_0xdd44('0x2a'),auth[_0xdd44('0x7')](),controller[_0xdd44('0x5e')]);module[_0xdd44('0x5f')]=router;
\ No newline at end of file
+var _0xf372=['addChatWebsites','addSquareProjects','put','update','/:id/password','delete','removeQueues','removeTeams','destroy','/:id/mail_interactions','/:id/fax_interactions','removeFaxInteractions','/:id/sms_interactions','removeSmsInteractions','removeOpenchannelInteractions','removeFaxAccounts','removeMailAccounts','removeOpenchannelAccounts','removeSmsAccounts','removeChatWebsites','removeSquareProjects','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./user.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/avatar','getAvatar','/:id/contacts','getContacts','/:id/queues','getQueues','getVoiceQueuesRt','/:id/groups','getGroups','/:id/recordings','getRecordings','/:id/chat/interactions','/:id/openchannel/interactions','getOpenchannelInteractions','/:id/mail/interactions','getMailInteractions','/:id/sms/interactions','/:id/fax/interactions','getFaxInteractions','getTeams','/:id/lists','getLists','/:id/agents','getAgents','/:id/prefixes','getVoicePrefixes','/:id/fax_accounts','getMailAccounts','/:id/openchannel_accounts','getOpenchannelAccounts','getSmsAccounts','/:id/chat_websites','getChatWebsites','/:id/square_projects','getSquareProjects','bulkCreate','post','create','addQueues','root','server/files/images/','format','%s-%s','now','originalname','addAvatar','/:id/login','login','/:id/logout','logout','/:id/pause','/:id/unpause','unpause','/:id/teams','addTeams','/:id/chat_interactions','addChatInteractions','addFaxInteractions','/:id/openchannel_interactions','addFaxAccounts','/:id/mail_accounts','addOpenchannelAccounts','/:id/sms_accounts'];(function(_0x142ebd,_0x4453c7){var _0x3ca721=function(_0x21f921){while(--_0x21f921){_0x142ebd['push'](_0x142ebd['shift']());}};_0x3ca721(++_0x4453c7);}(_0xf372,0x142));var _0x2f37=function(_0x4a60d4,_0x5f2084){_0x4a60d4=_0x4a60d4-0x0;var _0x549ae4=_0xf372[_0x4a60d4];return _0x549ae4;};'use strict';var multer=require(_0x2f37('0x0'));var util=require(_0x2f37('0x1'));var path=require(_0x2f37('0x2'));var express=require(_0x2f37('0x3'));var router=express[_0x2f37('0x4')]();var auth=require(_0x2f37('0x5'));var interaction=require(_0x2f37('0x6'));var config=require('../../config/environment');var controller=require(_0x2f37('0x7'));router[_0x2f37('0x8')]('/',auth[_0x2f37('0x9')](),controller[_0x2f37('0xa')]);router['get'](_0x2f37('0xb'),auth[_0x2f37('0x9')](),controller[_0x2f37('0xc')]);router[_0x2f37('0x8')](_0x2f37('0xd'),auth[_0x2f37('0x9')](),controller[_0x2f37('0xe')]);router[_0x2f37('0x8')](_0x2f37('0xf'),controller[_0x2f37('0x10')]);router[_0x2f37('0x8')](_0x2f37('0x11'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x12')]);router['get'](_0x2f37('0x13'),auth['isAuthenticated'](),controller[_0x2f37('0x14')]);router[_0x2f37('0x8')]('/:id/queues_rt',auth['isAuthenticated'](),controller[_0x2f37('0x15')]);router[_0x2f37('0x8')](_0x2f37('0x16'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x17')]);router[_0x2f37('0x8')](_0x2f37('0x18'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x19')]);router[_0x2f37('0x8')](_0x2f37('0x1a'),auth['isAuthenticated'](),controller['getChatInteractions']);router['get'](_0x2f37('0x1b'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x1c')]);router['get'](_0x2f37('0x1d'),auth['isAuthenticated'](),controller[_0x2f37('0x1e')]);router[_0x2f37('0x8')](_0x2f37('0x1f'),auth[_0x2f37('0x9')](),controller['getSmsInteractions']);router[_0x2f37('0x8')](_0x2f37('0x20'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x21')]);router['get']('/:id/teams',auth[_0x2f37('0x9')](),controller[_0x2f37('0x22')]);router[_0x2f37('0x8')](_0x2f37('0x23'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x24')]);router[_0x2f37('0x8')](_0x2f37('0x25'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x26')]);router[_0x2f37('0x8')](_0x2f37('0x27'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x28')]);router['get'](_0x2f37('0x29'),auth[_0x2f37('0x9')](),controller['getFaxAccounts']);router[_0x2f37('0x8')]('/:id/mail_accounts',auth[_0x2f37('0x9')](),controller[_0x2f37('0x2a')]);router['get'](_0x2f37('0x2b'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x2c')]);router[_0x2f37('0x8')]('/:id/sms_accounts',auth[_0x2f37('0x9')](),controller[_0x2f37('0x2d')]);router[_0x2f37('0x8')](_0x2f37('0x2e'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x2f')]);router[_0x2f37('0x8')](_0x2f37('0x30'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x31')]);router['post']('/create_many',auth[_0x2f37('0x9')](),controller[_0x2f37('0x32')]);router['post'](_0x2f37('0x11'),auth[_0x2f37('0x9')](),controller['addContacts']);router[_0x2f37('0x33')]('/',auth[_0x2f37('0x9')](),controller[_0x2f37('0x34')]);router['post'](_0x2f37('0x13'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x35')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x495fd6,_0x1c8af0,_0x3c8e54){_0x3c8e54(null,path['join'](config[_0x2f37('0x36')],_0x2f37('0x37')));},'filename':function(_0x2779cf,_0x530b6a,_0x33e344){_0x33e344(null,util[_0x2f37('0x38')](_0x2f37('0x39'),Date[_0x2f37('0x3a')](),_0x530b6a[_0x2f37('0x3b')]));}})});router['post'](_0x2f37('0xf'),upload['single']('file'),controller[_0x2f37('0x3c')]);router[_0x2f37('0x33')](_0x2f37('0x3d'),auth['isAuthenticated'](),controller[_0x2f37('0x3e')]);router[_0x2f37('0x33')](_0x2f37('0x3f'),auth['isAuthenticated'](),controller[_0x2f37('0x40')]);router['post'](_0x2f37('0x41'),auth[_0x2f37('0x9')](),controller['pause']);router[_0x2f37('0x33')](_0x2f37('0x42'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x43')]);router[_0x2f37('0x33')](_0x2f37('0x44'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x45')]);router[_0x2f37('0x33')](_0x2f37('0x46'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x47')]);router['post']('/:id/mail_interactions',auth[_0x2f37('0x9')](),controller['addMailInteractions']);router[_0x2f37('0x33')]('/:id/fax_interactions',auth['isAuthenticated'](),controller[_0x2f37('0x48')]);router[_0x2f37('0x33')]('/:id/sms_interactions',auth[_0x2f37('0x9')](),controller['addSmsInteractions']);router['post'](_0x2f37('0x49'),auth[_0x2f37('0x9')](),controller['addOpenchannelInteractions']);router['post'](_0x2f37('0x29'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x4a')]);router['post'](_0x2f37('0x4b'),auth['isAuthenticated'](),controller['addMailAccounts']);router['post'](_0x2f37('0x2b'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x4c')]);router['post'](_0x2f37('0x4d'),auth[_0x2f37('0x9')](),controller['addSmsAccounts']);router[_0x2f37('0x33')](_0x2f37('0x2e'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x4e')]);router['post'](_0x2f37('0x30'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x4f')]);router[_0x2f37('0x50')](_0x2f37('0xd'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x51')]);router[_0x2f37('0x50')](_0x2f37('0x52'),auth[_0x2f37('0x9')](),controller['changePassword']);router[_0x2f37('0x53')]('/:id/queues',auth['isAuthenticated'](),controller[_0x2f37('0x54')]);router[_0x2f37('0x53')](_0x2f37('0x44'),auth['isAuthenticated'](),controller[_0x2f37('0x55')]);router['delete'](_0x2f37('0xd'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x56')]);router[_0x2f37('0x53')]('/:id/chat_interactions',auth[_0x2f37('0x9')](),controller['removeChatInteractions']);router[_0x2f37('0x53')](_0x2f37('0x57'),auth[_0x2f37('0x9')](),controller['removeMailInteractions']);router[_0x2f37('0x53')](_0x2f37('0x58'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x59')]);router['delete'](_0x2f37('0x5a'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x5b')]);router[_0x2f37('0x53')](_0x2f37('0x49'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x5c')]);router[_0x2f37('0x53')](_0x2f37('0x29'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x5d')]);router[_0x2f37('0x53')](_0x2f37('0x4b'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x5e')]);router[_0x2f37('0x53')](_0x2f37('0x2b'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x5f')]);router['delete'](_0x2f37('0x4d'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x60')]);router[_0x2f37('0x53')](_0x2f37('0x2e'),auth[_0x2f37('0x9')](),controller[_0x2f37('0x61')]);router[_0x2f37('0x53')]('/:id/square_projects',auth[_0x2f37('0x9')](),controller[_0x2f37('0x62')]);module[_0x2f37('0x63')]=router;
\ No newline at end of file