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