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