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