Built motion from commit 19a84241.|2.5.34
[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 _0xceab=['/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','../../config/environment','index','/:id','get','isAuthenticated','getFields','/:id/subjects','getSubjects'];(function(_0x26adcb,_0x516ac9){var _0x4ab9cc=function(_0x58fe07){while(--_0x58fe07){_0x26adcb['push'](_0x26adcb['shift']());}};_0x4ab9cc(++_0x516ac9);}(_0xceab,0x163));var _0xbcea=function(_0x5d0d1d,_0x27d492){_0x5d0d1d=_0x5d0d1d-0x0;var _0x5c0361=_0xceab[_0x5d0d1d];return _0x5c0361;};'use strict';var multer=require(_0xbcea('0x0'));var util=require(_0xbcea('0x1'));var path=require(_0xbcea('0x2'));var timeout=require(_0xbcea('0x3'));var express=require(_0xbcea('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xbcea('0x5'));var controller=require('./intFreshdeskConfiguration.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xbcea('0x6')]);router['get'](_0xbcea('0x7'),auth['isAuthenticated'](),controller['show']);router[_0xbcea('0x8')]('/:id/fields',auth[_0xbcea('0x9')](),controller[_0xbcea('0xa')]);router['get'](_0xbcea('0xb'),auth[_0xbcea('0x9')](),controller[_0xbcea('0xc')]);router[_0xbcea('0x8')](_0xbcea('0xd'),auth[_0xbcea('0x9')](),controller[_0xbcea('0xe')]);router['get'](_0xbcea('0xf'),auth[_0xbcea('0x9')](),controller[_0xbcea('0x10')]);router[_0xbcea('0x11')]('/',auth[_0xbcea('0x9')](),controller[_0xbcea('0x12')]);router[_0xbcea('0x11')](_0xbcea('0xf'),auth[_0xbcea('0x9')](),controller['setTags']);router[_0xbcea('0x13')](_0xbcea('0x7'),auth[_0xbcea('0x9')](),controller[_0xbcea('0x14')]);router[_0xbcea('0x15')](_0xbcea('0x7'),auth[_0xbcea('0x9')](),controller[_0xbcea('0x16')]);module['exports']=router;