Built motion from commit ffdca78c.|2.6.24
[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 _0xd19d=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','getTeams','/:id/users','getAgents','create','post','addTeams','addAgents','put','delete','destroy','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x3a194f,_0x4964bf){var _0x43c8de=function(_0x216230){while(--_0x216230){_0x3a194f['push'](_0x3a194f['shift']());}};_0x43c8de(++_0x4964bf);}(_0xd19d,0xe1));var _0xdd19=function(_0x44e677,_0x27f5b1){_0x44e677=_0x44e677-0x0;var _0x4e3429=_0xd19d[_0x44e677];return _0x4e3429;};'use strict';var multer=require(_0xdd19('0x0'));var util=require(_0xdd19('0x1'));var path=require(_0xdd19('0x2'));var timeout=require(_0xdd19('0x3'));var express=require(_0xdd19('0x4'));var router=express[_0xdd19('0x5')]();var fs_extra=require(_0xdd19('0x6'));var auth=require(_0xdd19('0x7'));var interaction=require(_0xdd19('0x8'));var config=require(_0xdd19('0x9'));var controller=require(_0xdd19('0xa'));router[_0xdd19('0xb')]('/',auth[_0xdd19('0xc')](),controller[_0xdd19('0xd')]);router[_0xdd19('0xb')](_0xdd19('0xe'),auth[_0xdd19('0xc')](),controller[_0xdd19('0xf')]);router[_0xdd19('0xb')](_0xdd19('0x10'),auth[_0xdd19('0xc')](),controller[_0xdd19('0x11')]);router[_0xdd19('0xb')](_0xdd19('0x12'),auth[_0xdd19('0xc')](),controller[_0xdd19('0x13')]);router['get']('/:id/teams',auth[_0xdd19('0xc')](),controller[_0xdd19('0x14')]);router[_0xdd19('0xb')](_0xdd19('0x15'),auth[_0xdd19('0xc')](),controller[_0xdd19('0x16')]);router['post']('/',auth[_0xdd19('0xc')](),controller[_0xdd19('0x17')]);router[_0xdd19('0x18')]('/:id/teams',auth['isAuthenticated'](),controller[_0xdd19('0x19')]);router[_0xdd19('0x18')]('/:id/users',auth[_0xdd19('0xc')](),controller[_0xdd19('0x1a')]);router[_0xdd19('0x1b')](_0xdd19('0x10'),auth[_0xdd19('0xc')](),controller['update']);router[_0xdd19('0x1c')]('/:id',auth[_0xdd19('0xc')](),controller[_0xdd19('0x1d')]);router[_0xdd19('0x1c')]('/:id/teams',auth[_0xdd19('0xc')](),controller[_0xdd19('0x1e')]);router['delete'](_0xdd19('0x15'),auth[_0xdd19('0xc')](),controller[_0xdd19('0x1f')]);module[_0xdd19('0x20')]=router;