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