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