6905113ba4c8cdf419dbfaf7fad09cfcd52aeeed
[motion2.git] / server / api / intDeskConfiguration / 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 _0xb4b6=['/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskConfiguration.controller','isAuthenticated','get','/:id','show','getFields'];(function(_0x187889,_0x1a815f){var _0x8d56eb=function(_0x2fe906){while(--_0x2fe906){_0x187889['push'](_0x187889['shift']());}};_0x8d56eb(++_0x1a815f);}(_0xb4b6,0x7e));var _0x6b4b=function(_0x42f336,_0x2c29f8){_0x42f336=_0x42f336-0x0;var _0x477f73=_0xb4b6[_0x42f336];return _0x477f73;};'use strict';var multer=require('multer');var util=require(_0x6b4b('0x0'));var path=require(_0x6b4b('0x1'));var timeout=require(_0x6b4b('0x2'));var express=require(_0x6b4b('0x3'));var router=express[_0x6b4b('0x4')]();var auth=require(_0x6b4b('0x5'));var interaction=require(_0x6b4b('0x6'));var config=require(_0x6b4b('0x7'));var controller=require(_0x6b4b('0x8'));router['get']('/',auth[_0x6b4b('0x9')](),controller['index']);router[_0x6b4b('0xa')](_0x6b4b('0xb'),auth[_0x6b4b('0x9')](),controller[_0x6b4b('0xc')]);router[_0x6b4b('0xa')]('/:id/fields',auth[_0x6b4b('0x9')](),controller[_0x6b4b('0xd')]);router[_0x6b4b('0xa')](_0x6b4b('0xe'),auth[_0x6b4b('0x9')](),controller[_0x6b4b('0xf')]);router[_0x6b4b('0xa')](_0x6b4b('0x10'),auth['isAuthenticated'](),controller[_0x6b4b('0x11')]);router['get'](_0x6b4b('0x12'),auth[_0x6b4b('0x9')](),controller[_0x6b4b('0x13')]);router[_0x6b4b('0x14')]('/',auth[_0x6b4b('0x9')](),controller[_0x6b4b('0x15')]);router[_0x6b4b('0x14')]('/:id/tags',auth[_0x6b4b('0x9')](),controller[_0x6b4b('0x16')]);router[_0x6b4b('0x17')]('/:id',auth['isAuthenticated'](),controller[_0x6b4b('0x18')]);router[_0x6b4b('0x19')]('/:id',auth[_0x6b4b('0x9')](),controller[_0x6b4b('0x1a')]);module[_0x6b4b('0x1b')]=router;