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