74bbc04cedaaba652e9c3967e879c811bfe163e6
[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 _0x78f6=['/:id/subjects','getSubjects','getTags','post','create','put','update','delete','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields'];(function(_0x1b96e4,_0x488023){var _0x5a1549=function(_0x40b540){while(--_0x40b540){_0x1b96e4['push'](_0x1b96e4['shift']());}};_0x5a1549(++_0x488023);}(_0x78f6,0x81));var _0x678f=function(_0x121365,_0x334777){_0x121365=_0x121365-0x0;var _0x238d3d=_0x78f6[_0x121365];return _0x238d3d;};'use strict';var multer=require(_0x678f('0x0'));var util=require(_0x678f('0x1'));var path=require('path');var timeout=require(_0x678f('0x2'));var express=require('express');var router=express[_0x678f('0x3')]();var auth=require(_0x678f('0x4'));var interaction=require(_0x678f('0x5'));var config=require(_0x678f('0x6'));var controller=require(_0x678f('0x7'));router[_0x678f('0x8')]('/',auth[_0x678f('0x9')](),controller[_0x678f('0xa')]);router[_0x678f('0x8')](_0x678f('0xb'),auth[_0x678f('0x9')](),controller[_0x678f('0xc')]);router[_0x678f('0x8')](_0x678f('0xd'),auth['isAuthenticated'](),controller[_0x678f('0xe')]);router[_0x678f('0x8')](_0x678f('0xf'),auth['isAuthenticated'](),controller[_0x678f('0x10')]);router[_0x678f('0x8')]('/:id/descriptions',auth[_0x678f('0x9')](),controller['getDescriptions']);router[_0x678f('0x8')]('/:id/tags',auth[_0x678f('0x9')](),controller[_0x678f('0x11')]);router[_0x678f('0x12')]('/',auth[_0x678f('0x9')](),controller[_0x678f('0x13')]);router[_0x678f('0x12')]('/:id/tags',auth[_0x678f('0x9')](),controller['setTags']);router[_0x678f('0x14')](_0x678f('0xb'),auth['isAuthenticated'](),controller[_0x678f('0x15')]);router[_0x678f('0x16')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x678f('0x17')]=router;