Built motion from commit 43538d75.|2.5.35
[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 _0x958a=['Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','create','post','addTeams','addAgents','put','/:id','update','delete','removeTeams','removeAgents','exports','multer','util','connect-timeout','express'];(function(_0x193927,_0x545c88){var _0x1d21b1=function(_0x55ab7d){while(--_0x55ab7d){_0x193927['push'](_0x193927['shift']());}};_0x1d21b1(++_0x545c88);}(_0x958a,0x128));var _0xa958=function(_0x1bbf2e,_0x5bec34){_0x1bbf2e=_0x1bbf2e-0x0;var _0x10928a=_0x958a[_0x1bbf2e];return _0x10928a;};'use strict';var multer=require(_0xa958('0x0'));var util=require(_0xa958('0x1'));var path=require('path');var timeout=require(_0xa958('0x2'));var express=require(_0xa958('0x3'));var router=express[_0xa958('0x4')]();var fs_extra=require(_0xa958('0x5'));var auth=require(_0xa958('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xa958('0x7'));var controller=require('./faxQueue.controller');router[_0xa958('0x8')]('/',auth[_0xa958('0x9')](),controller[_0xa958('0xa')]);router[_0xa958('0x8')](_0xa958('0xb'),auth[_0xa958('0x9')](),controller[_0xa958('0xc')]);router['get']('/:id',auth[_0xa958('0x9')](),controller[_0xa958('0xd')]);router[_0xa958('0x8')](_0xa958('0xe'),auth[_0xa958('0x9')](),controller[_0xa958('0xf')]);router[_0xa958('0x8')](_0xa958('0x10'),auth[_0xa958('0x9')](),controller[_0xa958('0x11')]);router[_0xa958('0x8')](_0xa958('0x12'),auth[_0xa958('0x9')](),controller['getAgents']);router['post']('/',auth['isAuthenticated'](),controller[_0xa958('0x13')]);router[_0xa958('0x14')](_0xa958('0x10'),auth['isAuthenticated'](),controller[_0xa958('0x15')]);router['post']('/:id/users',auth['isAuthenticated'](),controller[_0xa958('0x16')]);router[_0xa958('0x17')](_0xa958('0x18'),auth[_0xa958('0x9')](),controller[_0xa958('0x19')]);router[_0xa958('0x1a')](_0xa958('0x18'),auth[_0xa958('0x9')](),controller['destroy']);router[_0xa958('0x1a')]('/:id/teams',auth[_0xa958('0x9')](),controller[_0xa958('0x1b')]);router['delete'](_0xa958('0x12'),auth[_0xa958('0x9')](),controller[_0xa958('0x1c')]);module[_0xa958('0x1d')]=router;