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