Built motion from commit f94df7f0.|2.5.48
[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 _0x584a=['destroy','delete','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./mailQueue.controller','get','isAuthenticated','index','/describe','describe','/:id/members','/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','put','/:id','update'];(function(_0x230a50,_0x48ba82){var _0x6d5f1b=function(_0x26f827){while(--_0x26f827){_0x230a50['push'](_0x230a50['shift']());}};_0x6d5f1b(++_0x48ba82);}(_0x584a,0x179));var _0xa584=function(_0x3a19d4,_0x3f19a4){_0x3a19d4=_0x3a19d4-0x0;var _0x5b858b=_0x584a[_0x3a19d4];return _0x5b858b;};'use strict';var multer=require(_0xa584('0x0'));var util=require(_0xa584('0x1'));var path=require(_0xa584('0x2'));var timeout=require(_0xa584('0x3'));var express=require('express');var router=express[_0xa584('0x4')]();var fs_extra=require(_0xa584('0x5'));var auth=require(_0xa584('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xa584('0x7'));var controller=require(_0xa584('0x8'));router[_0xa584('0x9')]('/',auth[_0xa584('0xa')](),controller[_0xa584('0xb')]);router['get'](_0xa584('0xc'),auth['isAuthenticated'](),controller[_0xa584('0xd')]);router[_0xa584('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xa584('0x9')](_0xa584('0xe'),auth[_0xa584('0xa')](),controller['getMembers']);router[_0xa584('0x9')](_0xa584('0xf'),auth[_0xa584('0xa')](),controller[_0xa584('0x10')]);router[_0xa584('0x9')](_0xa584('0x11'),auth[_0xa584('0xa')](),controller[_0xa584('0x12')]);router[_0xa584('0x13')]('/',auth['isAuthenticated'](),controller[_0xa584('0x14')]);router[_0xa584('0x13')](_0xa584('0xf'),auth[_0xa584('0xa')](),controller[_0xa584('0x15')]);router['post']('/:id/users',auth[_0xa584('0xa')](),controller[_0xa584('0x16')]);router[_0xa584('0x17')](_0xa584('0x18'),auth[_0xa584('0xa')](),controller[_0xa584('0x19')]);router['delete'](_0xa584('0x18'),auth[_0xa584('0xa')](),controller[_0xa584('0x1a')]);router[_0xa584('0x1b')](_0xa584('0xf'),auth[_0xa584('0xa')](),controller[_0xa584('0x1c')]);router['delete'](_0xa584('0x11'),auth[_0xa584('0xa')](),controller[_0xa584('0x1d')]);module[_0xa584('0x1e')]=router;