b23ad6db7ee1620b8456419abe13c9c489a6a523
[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 _0xba01=['destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','get','isAuthenticated','show','/:id/fields','/:id/descriptions','getDescriptions','getTags','post','create','/:id/tags','/:id','update','delete'];(function(_0x5ce3c8,_0x2503bd){var _0xa76867=function(_0x52815e){while(--_0x52815e){_0x5ce3c8['push'](_0x5ce3c8['shift']());}};_0xa76867(++_0x2503bd);}(_0xba01,0x152));var _0x1ba0=function(_0x3f08bf,_0x5ef23d){_0x3f08bf=_0x3f08bf-0x0;var _0x28187b=_0xba01[_0x3f08bf];return _0x28187b;};'use strict';var multer=require('multer');var util=require(_0x1ba0('0x0'));var path=require(_0x1ba0('0x1'));var timeout=require(_0x1ba0('0x2'));var express=require(_0x1ba0('0x3'));var router=express[_0x1ba0('0x4')]();var auth=require(_0x1ba0('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intFreshdeskConfiguration.controller');router[_0x1ba0('0x6')]('/',auth[_0x1ba0('0x7')](),controller['index']);router[_0x1ba0('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x1ba0('0x8')]);router[_0x1ba0('0x6')](_0x1ba0('0x9'),auth[_0x1ba0('0x7')](),controller['getFields']);router[_0x1ba0('0x6')]('/:id/subjects',auth[_0x1ba0('0x7')](),controller['getSubjects']);router[_0x1ba0('0x6')](_0x1ba0('0xa'),auth[_0x1ba0('0x7')](),controller[_0x1ba0('0xb')]);router['get']('/:id/tags',auth[_0x1ba0('0x7')](),controller[_0x1ba0('0xc')]);router[_0x1ba0('0xd')]('/',auth[_0x1ba0('0x7')](),controller[_0x1ba0('0xe')]);router[_0x1ba0('0xd')](_0x1ba0('0xf'),auth[_0x1ba0('0x7')](),controller['setTags']);router['put'](_0x1ba0('0x10'),auth['isAuthenticated'](),controller[_0x1ba0('0x11')]);router[_0x1ba0('0x12')](_0x1ba0('0x10'),auth[_0x1ba0('0x7')](),controller[_0x1ba0('0x13')]);module[_0x1ba0('0x14')]=router;