Built motion from commit (unavailable).|2.4.14
[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 _0xafb9=['/:id','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','/:id/tags','getTags','post','create'];(function(_0x4caf0d,_0x580ea2){var _0x473297=function(_0xf159ac){while(--_0xf159ac){_0x4caf0d['push'](_0x4caf0d['shift']());}};_0x473297(++_0x580ea2);}(_0xafb9,0x68));var _0x9afb=function(_0xfbe414,_0x34f9b4){_0xfbe414=_0xfbe414-0x0;var _0x383e5f=_0xafb9[_0xfbe414];return _0x383e5f;};'use strict';var multer=require(_0x9afb('0x0'));var util=require(_0x9afb('0x1'));var path=require(_0x9afb('0x2'));var timeout=require(_0x9afb('0x3'));var express=require(_0x9afb('0x4'));var router=express[_0x9afb('0x5')]();var auth=require(_0x9afb('0x6'));var interaction=require(_0x9afb('0x7'));var config=require(_0x9afb('0x8'));var controller=require('./intDeskConfiguration.controller');router['get']('/',auth[_0x9afb('0x9')](),controller['index']);router[_0x9afb('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x9afb('0xb')]);router[_0x9afb('0xa')](_0x9afb('0xc'),auth['isAuthenticated'](),controller[_0x9afb('0xd')]);router[_0x9afb('0xa')](_0x9afb('0xe'),auth[_0x9afb('0x9')](),controller[_0x9afb('0xf')]);router['get']('/:id/descriptions',auth[_0x9afb('0x9')](),controller[_0x9afb('0x10')]);router[_0x9afb('0xa')](_0x9afb('0x11'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x12')]);router[_0x9afb('0x13')]('/',auth[_0x9afb('0x9')](),controller[_0x9afb('0x14')]);router[_0x9afb('0x13')]('/:id/tags',auth[_0x9afb('0x9')](),controller['setTags']);router['put'](_0x9afb('0x15'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x16')]);router[_0x9afb('0x17')](_0x9afb('0x15'),auth[_0x9afb('0x9')](),controller[_0x9afb('0x18')]);module['exports']=router;