90bcefb53761ca062c2a6cf14ce6a6caaa9c1b2a
[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 _0x1c63=['../../components/auth/service','../../components/interaction/service','./intDeskConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','post','create','put','/:id','update','delete','multer','util','path','connect-timeout','Router'];(function(_0x2a9200,_0x427e3f){var _0x1a4afc=function(_0x4e1cb1){while(--_0x4e1cb1){_0x2a9200['push'](_0x2a9200['shift']());}};_0x1a4afc(++_0x427e3f);}(_0x1c63,0xdc));var _0x31c6=function(_0x5e2ac7,_0x45265d){_0x5e2ac7=_0x5e2ac7-0x0;var _0x4fb946=_0x1c63[_0x5e2ac7];return _0x4fb946;};'use strict';var multer=require(_0x31c6('0x0'));var util=require(_0x31c6('0x1'));var path=require(_0x31c6('0x2'));var timeout=require(_0x31c6('0x3'));var express=require('express');var router=express[_0x31c6('0x4')]();var auth=require(_0x31c6('0x5'));var interaction=require(_0x31c6('0x6'));var config=require('../../config/environment');var controller=require(_0x31c6('0x7'));router[_0x31c6('0x8')]('/',auth[_0x31c6('0x9')](),controller[_0x31c6('0xa')]);router[_0x31c6('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x31c6('0xb')]);router[_0x31c6('0x8')](_0x31c6('0xc'),auth[_0x31c6('0x9')](),controller[_0x31c6('0xd')]);router['get'](_0x31c6('0xe'),auth[_0x31c6('0x9')](),controller[_0x31c6('0xf')]);router[_0x31c6('0x8')](_0x31c6('0x10'),auth['isAuthenticated'](),controller[_0x31c6('0x11')]);router['get'](_0x31c6('0x12'),auth[_0x31c6('0x9')](),controller['getTags']);router[_0x31c6('0x13')]('/',auth[_0x31c6('0x9')](),controller[_0x31c6('0x14')]);router[_0x31c6('0x13')](_0x31c6('0x12'),auth[_0x31c6('0x9')](),controller['setTags']);router[_0x31c6('0x15')](_0x31c6('0x16'),auth[_0x31c6('0x9')](),controller[_0x31c6('0x17')]);router[_0x31c6('0x18')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;