Built motion from commit b0a9a629.|2.6.33
[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 _0xcf27=['fs-extra','./mailQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','put','delete','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','Router'];(function(_0x58e469,_0x95ee3e){var _0x4c01c5=function(_0x1ef7ae){while(--_0x1ef7ae){_0x58e469['push'](_0x58e469['shift']());}};_0x4c01c5(++_0x95ee3e);}(_0xcf27,0xdb));var _0x7cf2=function(_0x26387f,_0x1b3d16){_0x26387f=_0x26387f-0x0;var _0x11cc13=_0xcf27[_0x26387f];return _0x11cc13;};'use strict';var multer=require(_0x7cf2('0x0'));var util=require(_0x7cf2('0x1'));var path=require(_0x7cf2('0x2'));var timeout=require(_0x7cf2('0x3'));var express=require('express');var router=express[_0x7cf2('0x4')]();var fs_extra=require(_0x7cf2('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x7cf2('0x6'));router[_0x7cf2('0x7')]('/',auth[_0x7cf2('0x8')](),controller[_0x7cf2('0x9')]);router[_0x7cf2('0x7')](_0x7cf2('0xa'),auth[_0x7cf2('0x8')](),controller[_0x7cf2('0xb')]);router[_0x7cf2('0x7')](_0x7cf2('0xc'),auth[_0x7cf2('0x8')](),controller[_0x7cf2('0xd')]);router[_0x7cf2('0x7')](_0x7cf2('0xe'),auth[_0x7cf2('0x8')](),controller[_0x7cf2('0xf')]);router[_0x7cf2('0x7')](_0x7cf2('0x10'),auth['isAuthenticated'](),controller[_0x7cf2('0x11')]);router[_0x7cf2('0x7')](_0x7cf2('0x12'),auth[_0x7cf2('0x8')](),controller[_0x7cf2('0x13')]);router[_0x7cf2('0x14')]('/',auth[_0x7cf2('0x8')](),controller[_0x7cf2('0x15')]);router[_0x7cf2('0x14')]('/:id/teams',auth[_0x7cf2('0x8')](),controller[_0x7cf2('0x16')]);router[_0x7cf2('0x14')](_0x7cf2('0x12'),auth[_0x7cf2('0x8')](),controller['addAgents']);router[_0x7cf2('0x17')](_0x7cf2('0xc'),auth[_0x7cf2('0x8')](),controller['update']);router[_0x7cf2('0x18')](_0x7cf2('0xc'),auth[_0x7cf2('0x8')](),controller['destroy']);router['delete']('/:id/teams',auth[_0x7cf2('0x8')](),controller[_0x7cf2('0x19')]);router[_0x7cf2('0x18')](_0x7cf2('0x12'),auth[_0x7cf2('0x8')](),controller[_0x7cf2('0x1a')]);module[_0x7cf2('0x1b')]=router;