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