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