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