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