3407ae67e8d847a6a65500535ed0e63b19ca12f8
[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 _0xcaf2=['delete','removeAgents','exports','multer','path','connect-timeout','Router','fs-extra','../../components/interaction/service','./faxQueue.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','create','put','update','destroy'];(function(_0x3ab68a,_0x13a49c){var _0x1e12f1=function(_0x19a398){while(--_0x19a398){_0x3ab68a['push'](_0x3ab68a['shift']());}};_0x1e12f1(++_0x13a49c);}(_0xcaf2,0x8a));var _0x2caf=function(_0x4f7a97,_0x14f986){_0x4f7a97=_0x4f7a97-0x0;var _0x2d97cb=_0xcaf2[_0x4f7a97];return _0x2d97cb;};'use strict';var multer=require(_0x2caf('0x0'));var util=require('util');var path=require(_0x2caf('0x1'));var timeout=require(_0x2caf('0x2'));var express=require('express');var router=express[_0x2caf('0x3')]();var fs_extra=require(_0x2caf('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2caf('0x5'));var config=require('../../config/environment');var controller=require(_0x2caf('0x6'));router[_0x2caf('0x7')]('/',auth[_0x2caf('0x8')](),controller['index']);router[_0x2caf('0x7')](_0x2caf('0x9'),auth[_0x2caf('0x8')](),controller[_0x2caf('0xa')]);router['get'](_0x2caf('0xb'),auth[_0x2caf('0x8')](),controller[_0x2caf('0xc')]);router[_0x2caf('0x7')](_0x2caf('0xd'),auth[_0x2caf('0x8')](),controller[_0x2caf('0xe')]);router[_0x2caf('0x7')](_0x2caf('0xf'),auth['isAuthenticated'](),controller[_0x2caf('0x10')]);router[_0x2caf('0x7')](_0x2caf('0x11'),auth[_0x2caf('0x8')](),controller[_0x2caf('0x12')]);router[_0x2caf('0x13')]('/',auth[_0x2caf('0x8')](),controller[_0x2caf('0x14')]);router['post'](_0x2caf('0xf'),auth[_0x2caf('0x8')](),controller['addTeams']);router['post']('/:id/users',auth[_0x2caf('0x8')](),controller['addAgents']);router[_0x2caf('0x15')](_0x2caf('0xb'),auth[_0x2caf('0x8')](),controller[_0x2caf('0x16')]);router['delete'](_0x2caf('0xb'),auth['isAuthenticated'](),controller[_0x2caf('0x17')]);router['delete']('/:id/teams',auth[_0x2caf('0x8')](),controller['removeTeams']);router[_0x2caf('0x18')](_0x2caf('0x11'),auth['isAuthenticated'](),controller[_0x2caf('0x19')]);module[_0x2caf('0x1a')]=router;