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