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