663bb800de5abd0e0921afd644754ab1ba896a17
[motion2.git] / server / api / mailQueue / 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 _0x10f8=['../../config/environment','isAuthenticated','index','get','/describe','/:id','show','/:id/members','/:id/teams','/:id/users','getAgents','create','post','addAgents','delete','destroy','removeTeams','removeAgents','multer','util','express'];(function(_0x5a2f30,_0x2c4b87){var _0x3fa97d=function(_0x2a52a6){while(--_0x2a52a6){_0x5a2f30['push'](_0x5a2f30['shift']());}};_0x3fa97d(++_0x2c4b87);}(_0x10f8,0xa5));var _0x810f=function(_0x29210d,_0x45648b){_0x29210d=_0x29210d-0x0;var _0x4a66e6=_0x10f8[_0x29210d];return _0x4a66e6;};'use strict';var multer=require(_0x810f('0x0'));var util=require(_0x810f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x810f('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x810f('0x3'));var controller=require('./mailQueue.controller');router['get']('/',auth[_0x810f('0x4')](),controller[_0x810f('0x5')]);router[_0x810f('0x6')](_0x810f('0x7'),auth[_0x810f('0x4')](),controller['describe']);router[_0x810f('0x6')](_0x810f('0x8'),auth['isAuthenticated'](),controller[_0x810f('0x9')]);router[_0x810f('0x6')](_0x810f('0xa'),auth[_0x810f('0x4')](),controller['getMembers']);router['get'](_0x810f('0xb'),auth[_0x810f('0x4')](),controller['getTeams']);router[_0x810f('0x6')](_0x810f('0xc'),auth[_0x810f('0x4')](),controller[_0x810f('0xd')]);router['post']('/',auth[_0x810f('0x4')](),controller[_0x810f('0xe')]);router[_0x810f('0xf')]('/:id/teams',auth[_0x810f('0x4')](),controller['addTeams']);router['post'](_0x810f('0xc'),auth[_0x810f('0x4')](),controller[_0x810f('0x10')]);router['put'](_0x810f('0x8'),auth[_0x810f('0x4')](),controller['update']);router[_0x810f('0x11')](_0x810f('0x8'),auth[_0x810f('0x4')](),controller[_0x810f('0x12')]);router[_0x810f('0x11')]('/:id/teams',auth[_0x810f('0x4')](),controller[_0x810f('0x13')]);router[_0x810f('0x11')](_0x810f('0xc'),auth[_0x810f('0x4')](),controller[_0x810f('0x14')]);module['exports']=router;