Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / api / intFreshdeskConfiguration / 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 _0x7c62=['getTags','post','setTags','put','update','delete','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/:id','show','/:id/fields','getFields','/:id/descriptions','getDescriptions'];(function(_0x2a6193,_0x2ec097){var _0x317a31=function(_0x478fa1){while(--_0x478fa1){_0x2a6193['push'](_0x2a6193['shift']());}};_0x317a31(++_0x2ec097);}(_0x7c62,0x12d));var _0x27c6=function(_0x1b4684,_0x5793c8){_0x1b4684=_0x1b4684-0x0;var _0x3b9024=_0x7c62[_0x1b4684];return _0x3b9024;};'use strict';var multer=require(_0x27c6('0x0'));var util=require(_0x27c6('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x27c6('0x2'));var router=express[_0x27c6('0x3')]();var auth=require(_0x27c6('0x4'));var interaction=require(_0x27c6('0x5'));var config=require('../../config/environment');var controller=require('./intFreshdeskConfiguration.controller');router['get']('/',auth[_0x27c6('0x6')](),controller['index']);router[_0x27c6('0x7')](_0x27c6('0x8'),auth[_0x27c6('0x6')](),controller[_0x27c6('0x9')]);router['get'](_0x27c6('0xa'),auth[_0x27c6('0x6')](),controller[_0x27c6('0xb')]);router[_0x27c6('0x7')]('/:id/subjects',auth[_0x27c6('0x6')](),controller['getSubjects']);router[_0x27c6('0x7')](_0x27c6('0xc'),auth[_0x27c6('0x6')](),controller[_0x27c6('0xd')]);router['get']('/:id/tags',auth[_0x27c6('0x6')](),controller[_0x27c6('0xe')]);router['post']('/',auth[_0x27c6('0x6')](),controller['create']);router[_0x27c6('0xf')]('/:id/tags',auth[_0x27c6('0x6')](),controller[_0x27c6('0x10')]);router[_0x27c6('0x11')](_0x27c6('0x8'),auth['isAuthenticated'](),controller[_0x27c6('0x12')]);router[_0x27c6('0x13')](_0x27c6('0x8'),auth[_0x27c6('0x6')](),controller[_0x27c6('0x14')]);module['exports']=router;