Built motion from commit (unavailable).|2.4.2
[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 _0x165b=['index','/:id','show','/:id/fields','/:id/subjects','getSubjects','getDescriptions','/:id/tags','put','update','delete','exports','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x252328,_0x4c22f0){var _0xaa85b7=function(_0x2623d0){while(--_0x2623d0){_0x252328['push'](_0x252328['shift']());}};_0xaa85b7(++_0x4c22f0);}(_0x165b,0x1c1));var _0xb165=function(_0x5e875a,_0x3850a1){_0x5e875a=_0x5e875a-0x0;var _0xb5eb05=_0x165b[_0x5e875a];return _0xb5eb05;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb165('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb165('0x1')]();var auth=require(_0xb165('0x2'));var interaction=require(_0xb165('0x3'));var config=require(_0xb165('0x4'));var controller=require('./intDeskConfiguration.controller');router[_0xb165('0x5')]('/',auth[_0xb165('0x6')](),controller[_0xb165('0x7')]);router[_0xb165('0x5')](_0xb165('0x8'),auth[_0xb165('0x6')](),controller[_0xb165('0x9')]);router[_0xb165('0x5')](_0xb165('0xa'),auth[_0xb165('0x6')](),controller['getFields']);router['get'](_0xb165('0xb'),auth[_0xb165('0x6')](),controller[_0xb165('0xc')]);router['get']('/:id/descriptions',auth[_0xb165('0x6')](),controller[_0xb165('0xd')]);router['get'](_0xb165('0xe'),auth[_0xb165('0x6')](),controller['getTags']);router['post']('/',auth[_0xb165('0x6')](),controller['create']);router['post'](_0xb165('0xe'),auth[_0xb165('0x6')](),controller['setTags']);router[_0xb165('0xf')](_0xb165('0x8'),auth[_0xb165('0x6')](),controller[_0xb165('0x10')]);router[_0xb165('0x11')](_0xb165('0x8'),auth[_0xb165('0x6')](),controller['destroy']);module[_0xb165('0x12')]=router;