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