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