Built motion from commit 9d0783e6.|2.6.13
[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 _0xb17f=['../../config/environment','get','isAuthenticated','/:id','getFields','/:id/subjects','getSubjects','/:id/descriptions','/:id/tags','getTags','post','create','setTags','put','update','destroy','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xb17f,0x169));var _0xfb17=function(_0x374bc9,_0x4111df){_0x374bc9=_0x374bc9-0x0;var _0x18d5d6=_0xb17f[_0x374bc9];return _0x18d5d6;};'use strict';var multer=require(_0xfb17('0x0'));var util=require(_0xfb17('0x1'));var path=require(_0xfb17('0x2'));var timeout=require('connect-timeout');var express=require(_0xfb17('0x3'));var router=express['Router']();var fs_extra=require(_0xfb17('0x4'));var auth=require(_0xfb17('0x5'));var interaction=require(_0xfb17('0x6'));var config=require(_0xfb17('0x7'));var controller=require('./intFreshdeskConfiguration.controller');router[_0xfb17('0x8')]('/',auth[_0xfb17('0x9')](),controller['index']);router[_0xfb17('0x8')](_0xfb17('0xa'),auth[_0xfb17('0x9')](),controller['show']);router['get']('/:id/fields',auth['isAuthenticated'](),controller[_0xfb17('0xb')]);router[_0xfb17('0x8')](_0xfb17('0xc'),auth['isAuthenticated'](),controller[_0xfb17('0xd')]);router[_0xfb17('0x8')](_0xfb17('0xe'),auth[_0xfb17('0x9')](),controller['getDescriptions']);router['get'](_0xfb17('0xf'),auth[_0xfb17('0x9')](),controller[_0xfb17('0x10')]);router[_0xfb17('0x11')]('/',auth[_0xfb17('0x9')](),controller[_0xfb17('0x12')]);router[_0xfb17('0x11')](_0xfb17('0xf'),auth[_0xfb17('0x9')](),controller[_0xfb17('0x13')]);router[_0xfb17('0x14')](_0xfb17('0xa'),auth[_0xfb17('0x9')](),controller[_0xfb17('0x15')]);router['delete'](_0xfb17('0xa'),auth[_0xfb17('0x9')](),controller[_0xfb17('0x16')]);module['exports']=router;