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