ced7a8d35ad6efd343ed915dc35c962e7ce53de6
[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 _0x6f22=['/:id/fields','/:id/subjects','getSubjects','getDescriptions','post','create','setTags','/:id','exports','multer','util','path','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get'];(function(_0x388b47,_0x5cefc6){var _0x2996b9=function(_0x42e6c8){while(--_0x42e6c8){_0x388b47['push'](_0x388b47['shift']());}};_0x2996b9(++_0x5cefc6);}(_0x6f22,0x171));var _0x26f2=function(_0x188199,_0x5c95c3){_0x188199=_0x188199-0x0;var _0x35c809=_0x6f22[_0x188199];return _0x35c809;};'use strict';var multer=require(_0x26f2('0x0'));var util=require(_0x26f2('0x1'));var path=require(_0x26f2('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x26f2('0x3'));var auth=require(_0x26f2('0x4'));var interaction=require(_0x26f2('0x5'));var config=require(_0x26f2('0x6'));var controller=require('./intFreshdeskConfiguration.controller');router['get']('/',auth[_0x26f2('0x7')](),controller['index']);router[_0x26f2('0x8')]('/:id',auth[_0x26f2('0x7')](),controller['show']);router[_0x26f2('0x8')](_0x26f2('0x9'),auth['isAuthenticated'](),controller['getFields']);router[_0x26f2('0x8')](_0x26f2('0xa'),auth[_0x26f2('0x7')](),controller[_0x26f2('0xb')]);router[_0x26f2('0x8')]('/:id/descriptions',auth[_0x26f2('0x7')](),controller[_0x26f2('0xc')]);router[_0x26f2('0x8')]('/:id/tags',auth['isAuthenticated'](),controller['getTags']);router[_0x26f2('0xd')]('/',auth[_0x26f2('0x7')](),controller[_0x26f2('0xe')]);router[_0x26f2('0xd')]('/:id/tags',auth[_0x26f2('0x7')](),controller[_0x26f2('0xf')]);router['put'](_0x26f2('0x10'),auth[_0x26f2('0x7')](),controller['update']);router['delete'](_0x26f2('0x10'),auth[_0x26f2('0x7')](),controller['destroy']);module[_0x26f2('0x11')]=router;