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