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