d986266c54393ac0404b233403204b9143d22351
[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 _0x553a=['/:id/users','getAgents','create','post','addTeams','put','/:id','destroy','delete','removeTeams','removeAgents','util','connect-timeout','express','Router','../../components/interaction/service','get','/describe','isAuthenticated','show','getMembers','/:id/teams','getTeams'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x553a,0x192));var _0xa553=function(_0x1621dd,_0x172229){_0x1621dd=_0x1621dd-0x0;var _0x3b0046=_0x553a[_0x1621dd];return _0x3b0046;};'use strict';var multer=require('multer');var util=require(_0xa553('0x0'));var path=require('path');var timeout=require(_0xa553('0x1'));var express=require(_0xa553('0x2'));var router=express[_0xa553('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa553('0x4'));var config=require('../../config/environment');var controller=require('./faxQueue.controller');router[_0xa553('0x5')]('/',auth['isAuthenticated'](),controller['index']);router[_0xa553('0x5')](_0xa553('0x6'),auth[_0xa553('0x7')](),controller['describe']);router[_0xa553('0x5')]('/:id',auth[_0xa553('0x7')](),controller[_0xa553('0x8')]);router[_0xa553('0x5')]('/:id/members',auth['isAuthenticated'](),controller[_0xa553('0x9')]);router['get'](_0xa553('0xa'),auth[_0xa553('0x7')](),controller[_0xa553('0xb')]);router['get'](_0xa553('0xc'),auth[_0xa553('0x7')](),controller[_0xa553('0xd')]);router['post']('/',auth[_0xa553('0x7')](),controller[_0xa553('0xe')]);router[_0xa553('0xf')]('/:id/teams',auth['isAuthenticated'](),controller[_0xa553('0x10')]);router[_0xa553('0xf')](_0xa553('0xc'),auth[_0xa553('0x7')](),controller['addAgents']);router[_0xa553('0x11')]('/:id',auth[_0xa553('0x7')](),controller['update']);router['delete'](_0xa553('0x12'),auth['isAuthenticated'](),controller[_0xa553('0x13')]);router[_0xa553('0x14')](_0xa553('0xa'),auth['isAuthenticated'](),controller[_0xa553('0x15')]);router[_0xa553('0x14')]('/:id/users',auth[_0xa553('0x7')](),controller[_0xa553('0x16')]);module['exports']=router;