Built motion from commit (unavailable).|2.5.30
[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 _0xc8b1=['post','create','setTags','update','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','/:id/tags'];(function(_0x3661f0,_0x57c3f9){var _0x5a9cbd=function(_0x473393){while(--_0x473393){_0x3661f0['push'](_0x3661f0['shift']());}};_0x5a9cbd(++_0x57c3f9);}(_0xc8b1,0x130));var _0x1c8b=function(_0x23eb87,_0x1c1466){_0x23eb87=_0x23eb87-0x0;var _0x1fd49c=_0xc8b1[_0x23eb87];return _0x1fd49c;};'use strict';var multer=require(_0x1c8b('0x0'));var util=require(_0x1c8b('0x1'));var path=require(_0x1c8b('0x2'));var timeout=require(_0x1c8b('0x3'));var express=require(_0x1c8b('0x4'));var router=express['Router']();var fs_extra=require(_0x1c8b('0x5'));var auth=require(_0x1c8b('0x6'));var interaction=require(_0x1c8b('0x7'));var config=require(_0x1c8b('0x8'));var controller=require('./intDeskConfiguration.controller');router[_0x1c8b('0x9')]('/',auth[_0x1c8b('0xa')](),controller[_0x1c8b('0xb')]);router[_0x1c8b('0x9')](_0x1c8b('0xc'),auth['isAuthenticated'](),controller[_0x1c8b('0xd')]);router[_0x1c8b('0x9')](_0x1c8b('0xe'),auth[_0x1c8b('0xa')](),controller[_0x1c8b('0xf')]);router[_0x1c8b('0x9')](_0x1c8b('0x10'),auth['isAuthenticated'](),controller[_0x1c8b('0x11')]);router[_0x1c8b('0x9')](_0x1c8b('0x12'),auth[_0x1c8b('0xa')](),controller['getDescriptions']);router['get'](_0x1c8b('0x13'),auth[_0x1c8b('0xa')](),controller['getTags']);router[_0x1c8b('0x14')]('/',auth['isAuthenticated'](),controller[_0x1c8b('0x15')]);router['post'](_0x1c8b('0x13'),auth[_0x1c8b('0xa')](),controller[_0x1c8b('0x16')]);router['put']('/:id',auth[_0x1c8b('0xa')](),controller[_0x1c8b('0x17')]);router[_0x1c8b('0x18')](_0x1c8b('0xc'),auth['isAuthenticated'](),controller[_0x1c8b('0x19')]);module[_0x1c8b('0x1a')]=router;