Built motion from commit b5996064.|2.6.21
[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 _0x5a71=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','/:id','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','put','update','delete','destroy','express'];(function(_0x95942,_0x85da80){var _0x6d7f81=function(_0x510549){while(--_0x510549){_0x95942['push'](_0x95942['shift']());}};_0x6d7f81(++_0x85da80);}(_0x5a71,0xbf));var _0x15a7=function(_0x351134,_0x392b05){_0x351134=_0x351134-0x0;var _0x5a5278=_0x5a71[_0x351134];return _0x5a5278;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x15a7('0x0'));var router=express[_0x15a7('0x1')]();var fs_extra=require(_0x15a7('0x2'));var auth=require(_0x15a7('0x3'));var interaction=require(_0x15a7('0x4'));var config=require(_0x15a7('0x5'));var controller=require(_0x15a7('0x6'));router[_0x15a7('0x7')]('/',auth[_0x15a7('0x8')](),controller['index']);router[_0x15a7('0x7')](_0x15a7('0x9'),auth[_0x15a7('0x8')](),controller['show']);router[_0x15a7('0x7')](_0x15a7('0xa'),auth[_0x15a7('0x8')](),controller['getFields']);router[_0x15a7('0x7')](_0x15a7('0xb'),auth[_0x15a7('0x8')](),controller[_0x15a7('0xc')]);router[_0x15a7('0x7')](_0x15a7('0xd'),auth[_0x15a7('0x8')](),controller[_0x15a7('0xe')]);router[_0x15a7('0x7')](_0x15a7('0xf'),auth[_0x15a7('0x8')](),controller[_0x15a7('0x10')]);router[_0x15a7('0x11')]('/',auth['isAuthenticated'](),controller[_0x15a7('0x12')]);router['post']('/:id/tags',auth[_0x15a7('0x8')](),controller[_0x15a7('0x13')]);router[_0x15a7('0x14')](_0x15a7('0x9'),auth[_0x15a7('0x8')](),controller[_0x15a7('0x15')]);router[_0x15a7('0x16')](_0x15a7('0x9'),auth['isAuthenticated'](),controller[_0x15a7('0x17')]);module['exports']=router;