Built motion from commit (unavailable).|2.5.14
[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 _0x8603=['/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','addTeams','addAgents','put','update','delete','destroy','removeAgents','multer','util','path','Router','../../components/auth/service','../../config/environment','isAuthenticated','get','/describe','describe'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x8603,0xe0));var _0x3860=function(_0x5e4256,_0x595a98){_0x5e4256=_0x5e4256-0x0;var _0x395afe=_0x8603[_0x5e4256];return _0x395afe;};'use strict';var multer=require(_0x3860('0x0'));var util=require(_0x3860('0x1'));var path=require(_0x3860('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3860('0x3')]();var auth=require(_0x3860('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3860('0x5'));var controller=require('./mailQueue.controller');router['get']('/',auth[_0x3860('0x6')](),controller['index']);router[_0x3860('0x7')](_0x3860('0x8'),auth['isAuthenticated'](),controller[_0x3860('0x9')]);router[_0x3860('0x7')](_0x3860('0xa'),auth['isAuthenticated'](),controller[_0x3860('0xb')]);router[_0x3860('0x7')](_0x3860('0xc'),auth[_0x3860('0x6')](),controller[_0x3860('0xd')]);router[_0x3860('0x7')](_0x3860('0xe'),auth[_0x3860('0x6')](),controller[_0x3860('0xf')]);router[_0x3860('0x7')](_0x3860('0x10'),auth[_0x3860('0x6')](),controller[_0x3860('0x11')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x3860('0x12')](_0x3860('0xe'),auth['isAuthenticated'](),controller[_0x3860('0x13')]);router['post'](_0x3860('0x10'),auth[_0x3860('0x6')](),controller[_0x3860('0x14')]);router[_0x3860('0x15')]('/:id',auth[_0x3860('0x6')](),controller[_0x3860('0x16')]);router[_0x3860('0x17')](_0x3860('0xa'),auth[_0x3860('0x6')](),controller[_0x3860('0x18')]);router['delete'](_0x3860('0xe'),auth[_0x3860('0x6')](),controller['removeTeams']);router[_0x3860('0x17')](_0x3860('0x10'),auth[_0x3860('0x6')](),controller[_0x3860('0x19')]);module['exports']=router;