09b04722bfa1031422beca5a08322b408ec89d6b
[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 _0x6f44=['/:id/users','getAgents','post','create','put','update','delete','removeTeams','removeAgents','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxQueue.controller','get','index','/describe','/:id','show','/:id/members','getMembers','/:id/teams','isAuthenticated','getTeams'];(function(_0x3474d1,_0x5c78e7){var _0x26154b=function(_0x47bc0f){while(--_0x47bc0f){_0x3474d1['push'](_0x3474d1['shift']());}};_0x26154b(++_0x5c78e7);}(_0x6f44,0x1ea));var _0x46f4=function(_0x1d89e4,_0x1f6b76){_0x1d89e4=_0x1d89e4-0x0;var _0x5af850=_0x6f44[_0x1d89e4];return _0x5af850;};'use strict';var multer=require(_0x46f4('0x0'));var util=require(_0x46f4('0x1'));var path=require('path');var timeout=require(_0x46f4('0x2'));var express=require(_0x46f4('0x3'));var router=express[_0x46f4('0x4')]();var fs_extra=require(_0x46f4('0x5'));var auth=require(_0x46f4('0x6'));var interaction=require(_0x46f4('0x7'));var config=require(_0x46f4('0x8'));var controller=require(_0x46f4('0x9'));router[_0x46f4('0xa')]('/',auth['isAuthenticated'](),controller[_0x46f4('0xb')]);router[_0x46f4('0xa')](_0x46f4('0xc'),auth['isAuthenticated'](),controller['describe']);router[_0x46f4('0xa')](_0x46f4('0xd'),auth['isAuthenticated'](),controller[_0x46f4('0xe')]);router['get'](_0x46f4('0xf'),auth['isAuthenticated'](),controller[_0x46f4('0x10')]);router[_0x46f4('0xa')](_0x46f4('0x11'),auth[_0x46f4('0x12')](),controller[_0x46f4('0x13')]);router[_0x46f4('0xa')](_0x46f4('0x14'),auth[_0x46f4('0x12')](),controller[_0x46f4('0x15')]);router[_0x46f4('0x16')]('/',auth[_0x46f4('0x12')](),controller[_0x46f4('0x17')]);router['post'](_0x46f4('0x11'),auth[_0x46f4('0x12')](),controller['addTeams']);router[_0x46f4('0x16')](_0x46f4('0x14'),auth[_0x46f4('0x12')](),controller['addAgents']);router[_0x46f4('0x18')]('/:id',auth['isAuthenticated'](),controller[_0x46f4('0x19')]);router[_0x46f4('0x1a')](_0x46f4('0xd'),auth['isAuthenticated'](),controller['destroy']);router['delete']('/:id/teams',auth[_0x46f4('0x12')](),controller[_0x46f4('0x1b')]);router['delete'](_0x46f4('0x14'),auth[_0x46f4('0x12')](),controller[_0x46f4('0x1c')]);module[_0x46f4('0x1d')]=router;