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