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