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