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