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