962b2d2a47223030215ffb1c702aa0eb566cf085
[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 _0x9e54=['isAuthenticated','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','put','update','/:id','destroy','exports','multer','util','Router','../../components/auth/service','../../components/interaction/service','./intDeskConfiguration.controller','get','index'];(function(_0x2f9289,_0x326267){var _0x289aa2=function(_0x2b75cf){while(--_0x2b75cf){_0x2f9289['push'](_0x2f9289['shift']());}};_0x289aa2(++_0x326267);}(_0x9e54,0x88));var _0x49e5=function(_0x11eeda,_0x4a266f){_0x11eeda=_0x11eeda-0x0;var _0x385c89=_0x9e54[_0x11eeda];return _0x385c89;};'use strict';var multer=require(_0x49e5('0x0'));var util=require(_0x49e5('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x49e5('0x2')]();var auth=require(_0x49e5('0x3'));var interaction=require(_0x49e5('0x4'));var config=require('../../config/environment');var controller=require(_0x49e5('0x5'));router[_0x49e5('0x6')]('/',auth['isAuthenticated'](),controller[_0x49e5('0x7')]);router['get']('/:id',auth[_0x49e5('0x8')](),controller['show']);router[_0x49e5('0x6')](_0x49e5('0x9'),auth[_0x49e5('0x8')](),controller['getFields']);router['get'](_0x49e5('0xa'),auth['isAuthenticated'](),controller[_0x49e5('0xb')]);router[_0x49e5('0x6')](_0x49e5('0xc'),auth[_0x49e5('0x8')](),controller[_0x49e5('0xd')]);router['get'](_0x49e5('0xe'),auth['isAuthenticated'](),controller[_0x49e5('0xf')]);router[_0x49e5('0x10')]('/',auth[_0x49e5('0x8')](),controller[_0x49e5('0x11')]);router[_0x49e5('0x10')]('/:id/tags',auth['isAuthenticated'](),controller[_0x49e5('0x12')]);router[_0x49e5('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x49e5('0x14')]);router['delete'](_0x49e5('0x15'),auth['isAuthenticated'](),controller[_0x49e5('0x16')]);module[_0x49e5('0x17')]=router;