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