Built motion from commit (unavailable).|2.5.4
[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 _0xb242=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','getFields','/:id/subjects','getSubjects','getDescriptions','/:id/tags','getTags','post','setTags','put','update','exports','util','path','connect-timeout','express','Router'];(function(_0xa6271,_0x3e9ce1){var _0x4fbc16=function(_0x596149){while(--_0x596149){_0xa6271['push'](_0xa6271['shift']());}};_0x4fbc16(++_0x3e9ce1);}(_0xb242,0x1f3));var _0x2b24=function(_0x531d15,_0x599af5){_0x531d15=_0x531d15-0x0;var _0x271a18=_0xb242[_0x531d15];return _0x271a18;};'use strict';var multer=require('multer');var util=require(_0x2b24('0x0'));var path=require(_0x2b24('0x1'));var timeout=require(_0x2b24('0x2'));var express=require(_0x2b24('0x3'));var router=express[_0x2b24('0x4')]();var auth=require(_0x2b24('0x5'));var interaction=require(_0x2b24('0x6'));var config=require('../../config/environment');var controller=require('./intDeskConfiguration.controller');router[_0x2b24('0x7')]('/',auth[_0x2b24('0x8')](),controller['index']);router[_0x2b24('0x7')](_0x2b24('0x9'),auth[_0x2b24('0x8')](),controller['show']);router[_0x2b24('0x7')]('/:id/fields',auth[_0x2b24('0x8')](),controller[_0x2b24('0xa')]);router['get'](_0x2b24('0xb'),auth['isAuthenticated'](),controller[_0x2b24('0xc')]);router[_0x2b24('0x7')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x2b24('0xd')]);router['get'](_0x2b24('0xe'),auth[_0x2b24('0x8')](),controller[_0x2b24('0xf')]);router[_0x2b24('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x2b24('0x10')](_0x2b24('0xe'),auth[_0x2b24('0x8')](),controller[_0x2b24('0x11')]);router[_0x2b24('0x12')]('/:id',auth[_0x2b24('0x8')](),controller[_0x2b24('0x13')]);router['delete'](_0x2b24('0x9'),auth[_0x2b24('0x8')](),controller['destroy']);module[_0x2b24('0x14')]=router;