28a28dc0fe95d35015ca980a186b376871c16da0
[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 _0xb79a=['exports','multer','util','path','connect-timeout','express','../../components/interaction/service','./mailQueue.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/members','/:id/users','post','create','addTeams','addAgents','put','update','delete','/:id/teams','removeTeams'];(function(_0x2972cf,_0x343fde){var _0x4c173f=function(_0x30eb3a){while(--_0x30eb3a){_0x2972cf['push'](_0x2972cf['shift']());}};_0x4c173f(++_0x343fde);}(_0xb79a,0x1dc));var _0xab79=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xb79a[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0xab79('0x0'));var util=require(_0xab79('0x1'));var path=require(_0xab79('0x2'));var timeout=require(_0xab79('0x3'));var express=require(_0xab79('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xab79('0x5'));var config=require('../../config/environment');var controller=require(_0xab79('0x6'));router[_0xab79('0x7')]('/',auth[_0xab79('0x8')](),controller['index']);router[_0xab79('0x7')](_0xab79('0x9'),auth[_0xab79('0x8')](),controller[_0xab79('0xa')]);router[_0xab79('0x7')](_0xab79('0xb'),auth[_0xab79('0x8')](),controller[_0xab79('0xc')]);router['get'](_0xab79('0xd'),auth[_0xab79('0x8')](),controller['getMembers']);router[_0xab79('0x7')]('/:id/teams',auth['isAuthenticated'](),controller['getTeams']);router[_0xab79('0x7')](_0xab79('0xe'),auth[_0xab79('0x8')](),controller['getAgents']);router[_0xab79('0xf')]('/',auth[_0xab79('0x8')](),controller[_0xab79('0x10')]);router[_0xab79('0xf')]('/:id/teams',auth[_0xab79('0x8')](),controller[_0xab79('0x11')]);router['post']('/:id/users',auth['isAuthenticated'](),controller[_0xab79('0x12')]);router[_0xab79('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xab79('0x14')]);router['delete'](_0xab79('0xb'),auth[_0xab79('0x8')](),controller['destroy']);router[_0xab79('0x15')](_0xab79('0x16'),auth[_0xab79('0x8')](),controller[_0xab79('0x17')]);router[_0xab79('0x15')](_0xab79('0xe'),auth[_0xab79('0x8')](),controller['removeAgents']);module[_0xab79('0x18')]=router;