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