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