Built motion from commit 67e5df37.|2.0.68
[motion2.git] / server / api / faxQueue / 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 _0x5b6e=['/:id/users','addAgents','put','update','delete','removeTeams','removeAgents','exports','multer','util','express','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/members','/:id/teams','getTeams','getAgents','create','post'];(function(_0x55754e,_0x286388){var _0x2e9948=function(_0x1eaeff){while(--_0x1eaeff){_0x55754e['push'](_0x55754e['shift']());}};_0x2e9948(++_0x286388);}(_0x5b6e,0x14c));var _0xe5b6=function(_0x4eaab1,_0x352d17){_0x4eaab1=_0x4eaab1-0x0;var _0xdc972e=_0x5b6e[_0x4eaab1];return _0xdc972e;};'use strict';var multer=require(_0xe5b6('0x0'));var util=require(_0xe5b6('0x1'));var path=require('path');var express=require(_0xe5b6('0x2'));var router=express['Router']();var auth=require(_0xe5b6('0x3'));var interaction=require(_0xe5b6('0x4'));var config=require(_0xe5b6('0x5'));var controller=require('./faxQueue.controller');router['get']('/',auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x7')]);router[_0xe5b6('0x8')](_0xe5b6('0x9'),auth['isAuthenticated'](),controller[_0xe5b6('0xa')]);router[_0xe5b6('0x8')](_0xe5b6('0xb'),auth['isAuthenticated'](),controller[_0xe5b6('0xc')]);router['get'](_0xe5b6('0xd'),auth[_0xe5b6('0x6')](),controller['getMembers']);router[_0xe5b6('0x8')](_0xe5b6('0xe'),auth['isAuthenticated'](),controller[_0xe5b6('0xf')]);router[_0xe5b6('0x8')]('/:id/users',auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x10')]);router['post']('/',auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x11')]);router[_0xe5b6('0x12')](_0xe5b6('0xe'),auth[_0xe5b6('0x6')](),controller['addTeams']);router[_0xe5b6('0x12')](_0xe5b6('0x13'),auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x14')]);router[_0xe5b6('0x15')](_0xe5b6('0xb'),auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x16')]);router[_0xe5b6('0x17')](_0xe5b6('0xb'),auth[_0xe5b6('0x6')](),controller['destroy']);router[_0xe5b6('0x17')]('/:id/teams',auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x18')]);router[_0xe5b6('0x17')]('/:id/users',auth[_0xe5b6('0x6')](),controller[_0xe5b6('0x19')]);module[_0xe5b6('0x1a')]=router;