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