Built motion from commit (unavailable).|2.5.30
[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 _0xcf96=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','./intFreshdeskConfiguration.controller','get','isAuthenticated','/:id','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','update','path'];(function(_0x2c2c8,_0x187b6e){var _0x1f99d7=function(_0x294d7a){while(--_0x294d7a){_0x2c2c8['push'](_0x2c2c8['shift']());}};_0x1f99d7(++_0x187b6e);}(_0xcf96,0x83));var _0x6cf9=function(_0x5ca57f,_0xeb3f8){_0x5ca57f=_0x5ca57f-0x0;var _0x251392=_0xcf96[_0x5ca57f];return _0x251392;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6cf9('0x0'));var timeout=require(_0x6cf9('0x1'));var express=require(_0x6cf9('0x2'));var router=express[_0x6cf9('0x3')]();var fs_extra=require(_0x6cf9('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x6cf9('0x5'));var config=require('../../config/environment');var controller=require(_0x6cf9('0x6'));router[_0x6cf9('0x7')]('/',auth[_0x6cf9('0x8')](),controller['index']);router[_0x6cf9('0x7')](_0x6cf9('0x9'),auth[_0x6cf9('0x8')](),controller[_0x6cf9('0xa')]);router['get']('/:id/fields',auth[_0x6cf9('0x8')](),controller[_0x6cf9('0xb')]);router['get'](_0x6cf9('0xc'),auth[_0x6cf9('0x8')](),controller[_0x6cf9('0xd')]);router[_0x6cf9('0x7')](_0x6cf9('0xe'),auth['isAuthenticated'](),controller[_0x6cf9('0xf')]);router[_0x6cf9('0x7')](_0x6cf9('0x10'),auth['isAuthenticated'](),controller[_0x6cf9('0x11')]);router[_0x6cf9('0x12')]('/',auth[_0x6cf9('0x8')](),controller[_0x6cf9('0x13')]);router['post'](_0x6cf9('0x10'),auth[_0x6cf9('0x8')](),controller[_0x6cf9('0x14')]);router['put'](_0x6cf9('0x9'),auth[_0x6cf9('0x8')](),controller[_0x6cf9('0x15')]);router['delete'](_0x6cf9('0x9'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;