Built motion from commit (unavailable).|2.5.0
[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 _0x45eb=['multer','path','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','index','/:id/subjects','getSubjects','getDescriptions','/:id/tags','getTags','post','create','setTags','put','update','delete','destroy'];(function(_0x2be8c2,_0x14a4b5){var _0x97f531=function(_0xcee58d){while(--_0xcee58d){_0x2be8c2['push'](_0x2be8c2['shift']());}};_0x97f531(++_0x14a4b5);}(_0x45eb,0x8c));var _0xb45e=function(_0x51932d,_0x1ffbf7){_0x51932d=_0x51932d-0x0;var _0x1ca2f4=_0x45eb[_0x51932d];return _0x1ca2f4;};'use strict';var multer=require(_0xb45e('0x0'));var util=require('util');var path=require(_0xb45e('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xb45e('0x2'));var config=require(_0xb45e('0x3'));var controller=require(_0xb45e('0x4'));router[_0xb45e('0x5')]('/',auth[_0xb45e('0x6')](),controller[_0xb45e('0x7')]);router[_0xb45e('0x5')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xb45e('0x5')]('/:id/fields',auth[_0xb45e('0x6')](),controller['getFields']);router[_0xb45e('0x5')](_0xb45e('0x8'),auth[_0xb45e('0x6')](),controller[_0xb45e('0x9')]);router[_0xb45e('0x5')]('/:id/descriptions',auth[_0xb45e('0x6')](),controller[_0xb45e('0xa')]);router['get'](_0xb45e('0xb'),auth['isAuthenticated'](),controller[_0xb45e('0xc')]);router[_0xb45e('0xd')]('/',auth[_0xb45e('0x6')](),controller[_0xb45e('0xe')]);router[_0xb45e('0xd')](_0xb45e('0xb'),auth['isAuthenticated'](),controller[_0xb45e('0xf')]);router[_0xb45e('0x10')]('/:id',auth[_0xb45e('0x6')](),controller[_0xb45e('0x11')]);router[_0xb45e('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xb45e('0x13')]);module['exports']=router;