Built motion from commit 092f8824.|2.5.49
[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 _0x80c8=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./mailQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/teams','getTeams','/:id/users','getAgents','post','create','put','update','destroy','delete','removeTeams','removeAgents','exports','path','connect-timeout','express'];(function(_0x4cc03b,_0x299f1c){var _0xf0358c=function(_0x3d0da8){while(--_0x3d0da8){_0x4cc03b['push'](_0x4cc03b['shift']());}};_0xf0358c(++_0x299f1c);}(_0x80c8,0x89));var _0x880c=function(_0x393ee2,_0x54c354){_0x393ee2=_0x393ee2-0x0;var _0x462e07=_0x80c8[_0x393ee2];return _0x462e07;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x880c('0x0'));var timeout=require(_0x880c('0x1'));var express=require(_0x880c('0x2'));var router=express[_0x880c('0x3')]();var fs_extra=require(_0x880c('0x4'));var auth=require(_0x880c('0x5'));var interaction=require(_0x880c('0x6'));var config=require('../../config/environment');var controller=require(_0x880c('0x7'));router[_0x880c('0x8')]('/',auth[_0x880c('0x9')](),controller[_0x880c('0xa')]);router[_0x880c('0x8')](_0x880c('0xb'),auth[_0x880c('0x9')](),controller[_0x880c('0xc')]);router[_0x880c('0x8')](_0x880c('0xd'),auth['isAuthenticated'](),controller[_0x880c('0xe')]);router['get']('/:id/members',auth[_0x880c('0x9')](),controller['getMembers']);router[_0x880c('0x8')](_0x880c('0xf'),auth[_0x880c('0x9')](),controller[_0x880c('0x10')]);router[_0x880c('0x8')](_0x880c('0x11'),auth[_0x880c('0x9')](),controller[_0x880c('0x12')]);router[_0x880c('0x13')]('/',auth[_0x880c('0x9')](),controller[_0x880c('0x14')]);router[_0x880c('0x13')]('/:id/teams',auth[_0x880c('0x9')](),controller['addTeams']);router[_0x880c('0x13')](_0x880c('0x11'),auth[_0x880c('0x9')](),controller['addAgents']);router[_0x880c('0x15')](_0x880c('0xd'),auth['isAuthenticated'](),controller[_0x880c('0x16')]);router['delete'](_0x880c('0xd'),auth[_0x880c('0x9')](),controller[_0x880c('0x17')]);router[_0x880c('0x18')]('/:id/teams',auth[_0x880c('0x9')](),controller[_0x880c('0x19')]);router['delete'](_0x880c('0x11'),auth[_0x880c('0x9')](),controller[_0x880c('0x1a')]);module[_0x880c('0x1b')]=router;