f1fa648f2186a61ff0b099987456679cc456066c
[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 _0x7330=['voiceQueuesChannel','voiceQueuesChannelHangup','/voice/queues/channels/:uniqueid/redirect/:exten','showVoiceQueues','/outbound/channels','agents','put','telephones','trunks','/campaigns','/fax/accounts','chatQueuesWaitingInteractions','/mail/queues/waitinginteractions','mailQueuesWaitingInteractions','/openchannel/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/sms/queues/waitinginteractions','smsQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','whatsappQueuesWaitingInteractions','/fax/queues/waitinginteractions','/mail/queues/:id/notify','mail','/mail/queues/:id','post','queueNotify','showChatQueues','/fax/queues/:id/notify','showFaxQueues','/openchannel/queues/:id/notify','/openchannel/queues/:id','showOpenchannelQueues','/sms/queues/:id/notify','/whatsapp/queues/:id/notify','/sms/queues/:id','showSmsQueues','/whatsapp/queues/:id','showWhatsappQueues','/agents/:id/notify','agentNotify','exports','util','path','express','Router','get','/voice/channels','isAuthenticated','/voice/channels/:uniqueid/mixmonitor','voiceChannelMixMonitor','/voice/channels/:uniqueid/stopmixmonitor','voiceChannelStopMixMonitor','/voice/queues','voiceQueues','/chat/queues','chatQueues','/mail/queues','mailAccounts','/openchannel/queues','openchannelQueues','smsQueues','/fax/queues','/voice/queues/preview/:id','voiceQueuesChannels'];(function(_0x449d4b,_0x2025a0){var _0xa4f7ef=function(_0x47f7cc){while(--_0x47f7cc){_0x449d4b['push'](_0x449d4b['shift']());}};_0xa4f7ef(++_0x2025a0);}(_0x7330,0xe9));var _0x0733=function(_0x10ef0b,_0x3b98a3){_0x10ef0b=_0x10ef0b-0x0;var _0x2df559=_0x7330[_0x10ef0b];return _0x2df559;};'use strict';var multer=require('multer');var util=require(_0x0733('0x0'));var path=require(_0x0733('0x1'));var express=require(_0x0733('0x2'));var router=express[_0x0733('0x3')]();var auth=require('../../components/auth/service');var controller=require('./rpc.controller');router[_0x0733('0x4')](_0x0733('0x5'),auth[_0x0733('0x6')](),controller['voiceChannels']);router[_0x0733('0x4')](_0x0733('0x7'),auth[_0x0733('0x6')](),controller[_0x0733('0x8')]);router['get'](_0x0733('0x9'),auth[_0x0733('0x6')](),controller[_0x0733('0xa')]);router['get'](_0x0733('0xb'),auth[_0x0733('0x6')](),controller[_0x0733('0xc')]);router['get'](_0x0733('0xd'),auth[_0x0733('0x6')](),controller[_0x0733('0xe')]);router[_0x0733('0x4')](_0x0733('0xf'),auth[_0x0733('0x6')](),controller['mailQueues']);router[_0x0733('0x4')]('/mail/accounts',auth[_0x0733('0x6')](),controller[_0x0733('0x10')]);router['get'](_0x0733('0x11'),auth[_0x0733('0x6')](),controller[_0x0733('0x12')]);router['get']('/sms/queues',auth[_0x0733('0x6')](),controller[_0x0733('0x13')]);router[_0x0733('0x4')]('/whatsapp/queues',auth['isAuthenticated'](),controller['whatsappQueues']);router[_0x0733('0x4')](_0x0733('0x14'),auth[_0x0733('0x6')](),controller['faxQueues']);router['get'](_0x0733('0x15'),auth[_0x0733('0x6')](),controller['voiceQueuesPreview']);router[_0x0733('0x4')]('/voice/queues/channels',auth[_0x0733('0x6')](),controller[_0x0733('0x16')]);router[_0x0733('0x4')]('/voice/queues/channels/:uniqueid',auth['isAuthenticated'](),controller[_0x0733('0x17')]);router['get']('/voice/queues/channels/:uniqueid/hangup',auth[_0x0733('0x6')](),controller[_0x0733('0x18')]);router[_0x0733('0x4')](_0x0733('0x19'),auth[_0x0733('0x6')](),controller['voiceQueuesChannelRedirect']);router['get']('/voice/queues/:id',auth[_0x0733('0x6')](),controller[_0x0733('0x1a')]);router['get']('/outbound',auth['isAuthenticated'](),controller['outbound']);router[_0x0733('0x4')](_0x0733('0x1b'),auth[_0x0733('0x6')](),controller['outboundChannels']);router[_0x0733('0x4')]('/agents',auth['isAuthenticated'](),controller[_0x0733('0x1c')]);router[_0x0733('0x1d')]('/agents/:id/capacity',auth[_0x0733('0x6')](),controller['agentCapacity']);router[_0x0733('0x4')]('/telephones',auth[_0x0733('0x6')](),controller[_0x0733('0x1e')]);router['get']('/trunks',auth['isAuthenticated'](),controller[_0x0733('0x1f')]);router[_0x0733('0x4')](_0x0733('0x20'),auth[_0x0733('0x6')](),controller['campaigns']);router[_0x0733('0x4')](_0x0733('0x21'),auth['isAuthenticated'](),controller['faxAccounts']);router[_0x0733('0x4')]('/chat/queues/waitinginteractions',auth[_0x0733('0x6')](),controller[_0x0733('0x22')]);router[_0x0733('0x4')](_0x0733('0x23'),auth['isAuthenticated'](),controller[_0x0733('0x24')]);router[_0x0733('0x4')](_0x0733('0x25'),auth['isAuthenticated'](),controller[_0x0733('0x26')]);router[_0x0733('0x4')](_0x0733('0x27'),auth['isAuthenticated'](),controller[_0x0733('0x28')]);router[_0x0733('0x4')](_0x0733('0x29'),auth[_0x0733('0x6')](),controller[_0x0733('0x2a')]);router[_0x0733('0x4')](_0x0733('0x2b'),auth['isAuthenticated'](),controller['faxQueuesWaitingInteractions']);router['post'](_0x0733('0x2c'),auth['isAuthenticated'](),controller['queueNotify'](_0x0733('0x2d')));router[_0x0733('0x4')](_0x0733('0x2e'),auth[_0x0733('0x6')](),controller['showMailQueues']);router[_0x0733('0x2f')]('/chat/queues/:id/notify',auth[_0x0733('0x6')](),controller[_0x0733('0x30')]('chat'));router['get']('/chat/queues/:id',auth[_0x0733('0x6')](),controller[_0x0733('0x31')]);router['post'](_0x0733('0x32'),auth[_0x0733('0x6')](),controller[_0x0733('0x30')]('fax'));router['get']('/fax/queues/:id',auth[_0x0733('0x6')](),controller[_0x0733('0x33')]);router['post'](_0x0733('0x34'),auth[_0x0733('0x6')](),controller[_0x0733('0x30')]('openchannel'));router[_0x0733('0x4')](_0x0733('0x35'),auth[_0x0733('0x6')](),controller[_0x0733('0x36')]);router[_0x0733('0x2f')](_0x0733('0x37'),auth['isAuthenticated'](),controller[_0x0733('0x30')]('sms'));router['post'](_0x0733('0x38'),auth[_0x0733('0x6')](),controller['queueNotify']('whatsapp'));router[_0x0733('0x4')](_0x0733('0x39'),auth[_0x0733('0x6')](),controller[_0x0733('0x3a')]);router[_0x0733('0x4')](_0x0733('0x3b'),auth[_0x0733('0x6')](),controller[_0x0733('0x3c')]);router['post'](_0x0733('0x3d'),auth[_0x0733('0x6')](),controller[_0x0733('0x3e')]);module[_0x0733('0x3f')]=router;