Built motion from commit 14588770.|2.5.38
[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 _0xfd2e=['removeAgents','exports','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxQueue.controller','index','isAuthenticated','get','/:id','show','/:id/members','/:id/teams','getTeams','/:id/users','getAgents','create','addTeams','post','put','update','delete','removeTeams'];(function(_0x3f9b23,_0x785ca6){var _0x55dc12=function(_0x2b1adf){while(--_0x2b1adf){_0x3f9b23['push'](_0x3f9b23['shift']());}};_0x55dc12(++_0x785ca6);}(_0xfd2e,0x6e));var _0xefd2=function(_0x235bb3,_0x3397ef){_0x235bb3=_0x235bb3-0x0;var _0x20e598=_0xfd2e[_0x235bb3];return _0x20e598;};'use strict';var multer=require(_0xefd2('0x0'));var util=require('util');var path=require(_0xefd2('0x1'));var timeout=require('connect-timeout');var express=require(_0xefd2('0x2'));var router=express['Router']();var fs_extra=require(_0xefd2('0x3'));var auth=require(_0xefd2('0x4'));var interaction=require(_0xefd2('0x5'));var config=require(_0xefd2('0x6'));var controller=require(_0xefd2('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xefd2('0x8')]);router['get']('/describe',auth[_0xefd2('0x9')](),controller['describe']);router[_0xefd2('0xa')](_0xefd2('0xb'),auth[_0xefd2('0x9')](),controller[_0xefd2('0xc')]);router[_0xefd2('0xa')](_0xefd2('0xd'),auth[_0xefd2('0x9')](),controller['getMembers']);router[_0xefd2('0xa')](_0xefd2('0xe'),auth[_0xefd2('0x9')](),controller[_0xefd2('0xf')]);router[_0xefd2('0xa')](_0xefd2('0x10'),auth[_0xefd2('0x9')](),controller[_0xefd2('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xefd2('0x12')]);router['post']('/:id/teams',auth[_0xefd2('0x9')](),controller[_0xefd2('0x13')]);router[_0xefd2('0x14')](_0xefd2('0x10'),auth[_0xefd2('0x9')](),controller['addAgents']);router[_0xefd2('0x15')](_0xefd2('0xb'),auth[_0xefd2('0x9')](),controller[_0xefd2('0x16')]);router[_0xefd2('0x17')](_0xefd2('0xb'),auth['isAuthenticated'](),controller['destroy']);router[_0xefd2('0x17')](_0xefd2('0xe'),auth[_0xefd2('0x9')](),controller[_0xefd2('0x18')]);router[_0xefd2('0x17')]('/:id/users',auth[_0xefd2('0x9')](),controller[_0xefd2('0x19')]);module[_0xefd2('0x1a')]=router;