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