Built motion from commit bab6f49e.|2.6.17
[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 _0x1623=['delete','destroy','removeAgents','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','./faxQueue.controller','isAuthenticated','index','/describe','describe','get','/:id','show','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','put'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1623,0xab));var _0x3162=function(_0x17b40f,_0x45723a){_0x17b40f=_0x17b40f-0x0;var _0x33ee6a=_0x1623[_0x17b40f];return _0x33ee6a;};'use strict';var multer=require(_0x3162('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x3162('0x1'));var express=require(_0x3162('0x2'));var router=express[_0x3162('0x3')]();var fs_extra=require(_0x3162('0x4'));var auth=require(_0x3162('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x3162('0x6'));router['get']('/',auth[_0x3162('0x7')](),controller[_0x3162('0x8')]);router['get'](_0x3162('0x9'),auth[_0x3162('0x7')](),controller[_0x3162('0xa')]);router[_0x3162('0xb')](_0x3162('0xc'),auth[_0x3162('0x7')](),controller[_0x3162('0xd')]);router[_0x3162('0xb')]('/:id/members',auth['isAuthenticated'](),controller[_0x3162('0xe')]);router[_0x3162('0xb')](_0x3162('0xf'),auth[_0x3162('0x7')](),controller[_0x3162('0x10')]);router[_0x3162('0xb')](_0x3162('0x11'),auth[_0x3162('0x7')](),controller[_0x3162('0x12')]);router['post']('/',auth[_0x3162('0x7')](),controller['create']);router[_0x3162('0x13')](_0x3162('0xf'),auth['isAuthenticated'](),controller['addTeams']);router[_0x3162('0x13')](_0x3162('0x11'),auth[_0x3162('0x7')](),controller['addAgents']);router[_0x3162('0x14')](_0x3162('0xc'),auth[_0x3162('0x7')](),controller['update']);router[_0x3162('0x15')](_0x3162('0xc'),auth[_0x3162('0x7')](),controller[_0x3162('0x16')]);router[_0x3162('0x15')](_0x3162('0xf'),auth[_0x3162('0x7')](),controller['removeTeams']);router[_0x3162('0x15')](_0x3162('0x11'),auth[_0x3162('0x7')](),controller[_0x3162('0x17')]);module['exports']=router;