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