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