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