e7b877742aaea651b4d7ac55439e043f57b582b1
[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 _0x8f1a=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','index','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/tags','post','create','setTags','/:id','destroy','exports','multer','util'];(function(_0x314a8c,_0x1c2e8d){var _0x1d4607=function(_0x3df20c){while(--_0x3df20c){_0x314a8c['push'](_0x314a8c['shift']());}};_0x1d4607(++_0x1c2e8d);}(_0x8f1a,0xcd));var _0xa8f1=function(_0x2e9efe,_0x5e5a95){_0x2e9efe=_0x2e9efe-0x0;var _0x53b696=_0x8f1a[_0x2e9efe];return _0x53b696;};'use strict';var multer=require(_0xa8f1('0x0'));var util=require(_0xa8f1('0x1'));var path=require(_0xa8f1('0x2'));var timeout=require(_0xa8f1('0x3'));var express=require(_0xa8f1('0x4'));var router=express[_0xa8f1('0x5')]();var auth=require(_0xa8f1('0x6'));var interaction=require(_0xa8f1('0x7'));var config=require('../../config/environment');var controller=require('./intDeskConfiguration.controller');router[_0xa8f1('0x8')]('/',auth['isAuthenticated'](),controller[_0xa8f1('0x9')]);router[_0xa8f1('0x8')]('/:id',auth[_0xa8f1('0xa')](),controller[_0xa8f1('0xb')]);router[_0xa8f1('0x8')](_0xa8f1('0xc'),auth[_0xa8f1('0xa')](),controller[_0xa8f1('0xd')]);router[_0xa8f1('0x8')](_0xa8f1('0xe'),auth['isAuthenticated'](),controller[_0xa8f1('0xf')]);router[_0xa8f1('0x8')]('/:id/descriptions',auth[_0xa8f1('0xa')](),controller['getDescriptions']);router[_0xa8f1('0x8')](_0xa8f1('0x10'),auth[_0xa8f1('0xa')](),controller['getTags']);router[_0xa8f1('0x11')]('/',auth[_0xa8f1('0xa')](),controller[_0xa8f1('0x12')]);router[_0xa8f1('0x11')](_0xa8f1('0x10'),auth['isAuthenticated'](),controller[_0xa8f1('0x13')]);router['put'](_0xa8f1('0x14'),auth[_0xa8f1('0xa')](),controller['update']);router['delete'](_0xa8f1('0x14'),auth[_0xa8f1('0xa')](),controller[_0xa8f1('0x15')]);module[_0xa8f1('0x16')]=router;