Built motion from commit ecb45b58.|2.6.31
[motion2.git] / server / api / rpc / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb125=['showWhatsappQueues','/agents/:id/notify','exports','multer','util','express','Router','./rpc.controller','get','/voice/channels','isAuthenticated','voiceChannels','/voice/channels/:uniqueid/mixmonitor','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','/voice/queues','/chat/queues','chatQueues','/mail/queues','mailQueues','/mail/accounts','/sms/queues','smsQueues','/whatsapp/queues','/fax/queues','faxQueues','/voice/queues/preview/:id','voiceQueuesPreview','/voice/queues/channels','voiceQueuesChannels','/voice/queues/channels/:uniqueid','voiceQueuesChannel','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','voiceQueuesChannelRedirect','/voice/queues/:id','put','updateVoiceQueue','/outbound','outbound','outboundChannels','/agents','/agents/:id/capacity','agentCapacity','/telephones','/campaigns','/fax/accounts','faxAccounts','/chat/queues/waitinginteractions','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/openchannel/queues/:id/waitinginteractions','openchannelQueuesIdWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','whatsappQueuesWaitingInteractions','/fax/queues/waitinginteractions','faxQueuesWaitingInteractions','post','queueNotify','mail','showMailQueues','/chat/queues/:id/notify','chat','/chat/queues/:id','showChatQueues','/fax/queues/:id/notify','fax','/fax/queues/:id','showFaxQueues','openchannel','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','whatsapp','/sms/queues/:id','showSmsQueues','/whatsapp/queues/:id'];(function(_0x35dcbe,_0x1a788c){var _0x1e62dd=function(_0x22fa27){while(--_0x22fa27){_0x35dcbe['push'](_0x35dcbe['shift']());}};_0x1e62dd(++_0x1a788c);}(_0xb125,0x1a2));var _0x5b12=function(_0x1ce750,_0x373680){_0x1ce750=_0x1ce750-0x0;var _0x599217=_0xb125[_0x1ce750];return _0x599217;};'use strict';var multer=require(_0x5b12('0x0'));var util=require(_0x5b12('0x1'));var path=require('path');var express=require(_0x5b12('0x2'));var router=express[_0x5b12('0x3')]();var auth=require('../../components/auth/service');var controller=require(_0x5b12('0x4'));router[_0x5b12('0x5')](_0x5b12('0x6'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x8')]);router[_0x5b12('0x5')](_0x5b12('0x9'),auth[_0x5b12('0x7')](),controller[_0x5b12('0xa')]);router[_0x5b12('0x5')](_0x5b12('0xb'),auth[_0x5b12('0x7')](),controller[_0x5b12('0xc')]);router[_0x5b12('0x5')](_0x5b12('0xd'),auth[_0x5b12('0x7')](),controller['voiceQueues']);router[_0x5b12('0x5')](_0x5b12('0xe'),auth[_0x5b12('0x7')](),controller[_0x5b12('0xf')]);router[_0x5b12('0x5')](_0x5b12('0x10'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x11')]);router['get'](_0x5b12('0x12'),auth[_0x5b12('0x7')](),controller['mailAccounts']);router['get']('/openchannel/queues',auth[_0x5b12('0x7')](),controller['openchannelQueues']);router[_0x5b12('0x5')](_0x5b12('0x13'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x14')]);router[_0x5b12('0x5')](_0x5b12('0x15'),auth[_0x5b12('0x7')](),controller['whatsappQueues']);router['get'](_0x5b12('0x16'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x17')]);router[_0x5b12('0x5')](_0x5b12('0x18'),auth['isAuthenticated'](),controller[_0x5b12('0x19')]);router[_0x5b12('0x5')](_0x5b12('0x1a'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x1b')]);router['get'](_0x5b12('0x1c'),auth['isAuthenticated'](),controller[_0x5b12('0x1d')]);router[_0x5b12('0x5')]('/voice/queues/channels/:uniqueid/hangup',auth['isAuthenticated'](),controller[_0x5b12('0x1e')]);router[_0x5b12('0x5')](_0x5b12('0x1f'),auth['isAuthenticated'](),controller[_0x5b12('0x20')]);router[_0x5b12('0x5')](_0x5b12('0x21'),auth[_0x5b12('0x7')](),controller['showVoiceQueues']);router[_0x5b12('0x22')](_0x5b12('0x21'),auth['isAuthenticated'](),controller[_0x5b12('0x23')]);router[_0x5b12('0x5')](_0x5b12('0x24'),auth['isAuthenticated'](),controller[_0x5b12('0x25')]);router[_0x5b12('0x5')]('/outbound/channels',auth[_0x5b12('0x7')](),controller[_0x5b12('0x26')]);router[_0x5b12('0x5')](_0x5b12('0x27'),auth[_0x5b12('0x7')](),controller['agents']);router['put'](_0x5b12('0x28'),auth['isAuthenticated'](),controller[_0x5b12('0x29')]);router[_0x5b12('0x5')](_0x5b12('0x2a'),auth['isAuthenticated'](),controller['telephones']);router['get']('/trunks',auth[_0x5b12('0x7')](),controller['trunks']);router[_0x5b12('0x5')](_0x5b12('0x2b'),auth[_0x5b12('0x7')](),controller['campaigns']);router[_0x5b12('0x5')](_0x5b12('0x2c'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x2d')]);router['get'](_0x5b12('0x2e'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x2f')]);router[_0x5b12('0x5')](_0x5b12('0x30'),auth[_0x5b12('0x7')](),controller['mailQueuesWaitingInteractions']);router[_0x5b12('0x5')](_0x5b12('0x31'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x32')]);router[_0x5b12('0x5')](_0x5b12('0x33'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x34')]);router[_0x5b12('0x5')](_0x5b12('0x35'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x36')]);router[_0x5b12('0x5')](_0x5b12('0x37'),auth['isAuthenticated'](),controller[_0x5b12('0x38')]);router[_0x5b12('0x5')](_0x5b12('0x39'),auth['isAuthenticated'](),controller[_0x5b12('0x3a')]);router[_0x5b12('0x3b')]('/mail/queues/:id/notify',auth[_0x5b12('0x7')](),controller[_0x5b12('0x3c')](_0x5b12('0x3d')));router[_0x5b12('0x5')]('/mail/queues/:id',auth[_0x5b12('0x7')](),controller[_0x5b12('0x3e')]);router['post'](_0x5b12('0x3f'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x3c')](_0x5b12('0x40')));router[_0x5b12('0x5')](_0x5b12('0x41'),auth['isAuthenticated'](),controller[_0x5b12('0x42')]);router['post'](_0x5b12('0x43'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x3c')](_0x5b12('0x44')));router[_0x5b12('0x5')](_0x5b12('0x45'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x46')]);router[_0x5b12('0x3b')]('/openchannel/queues/:id/notify',auth[_0x5b12('0x7')](),controller['queueNotify'](_0x5b12('0x47')));router[_0x5b12('0x5')](_0x5b12('0x48'),auth['isAuthenticated'](),controller[_0x5b12('0x49')]);router['post'](_0x5b12('0x4a'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x3c')]('sms'));router['post'](_0x5b12('0x4b'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x3c')](_0x5b12('0x4c')));router[_0x5b12('0x5')](_0x5b12('0x4d'),auth[_0x5b12('0x7')](),controller[_0x5b12('0x4e')]);router[_0x5b12('0x5')](_0x5b12('0x4f'),auth['isAuthenticated'](),controller[_0x5b12('0x50')]);router[_0x5b12('0x3b')](_0x5b12('0x51'),auth[_0x5b12('0x7')](),controller['agentNotify']);module[_0x5b12('0x52')]=router;