Built motion from commit (unavailable).|2.5.10
[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 _0xca22=['getDescriptions','/:id/tags','create','post','setTags','put','delete','destroy','exports','multer','util','path','Router','../../components/interaction/service','../../config/environment','./intFreshdeskConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','/:id/descriptions'];(function(_0x37bd26,_0x5ad346){var _0xe83dc4=function(_0x1ac229){while(--_0x1ac229){_0x37bd26['push'](_0x37bd26['shift']());}};_0xe83dc4(++_0x5ad346);}(_0xca22,0xef));var _0x2ca2=function(_0x59294a,_0x3b6891){_0x59294a=_0x59294a-0x0;var _0x5c51d6=_0xca22[_0x59294a];return _0x5c51d6;};'use strict';var multer=require(_0x2ca2('0x0'));var util=require(_0x2ca2('0x1'));var path=require(_0x2ca2('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x2ca2('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x2ca2('0x4'));var config=require(_0x2ca2('0x5'));var controller=require(_0x2ca2('0x6'));router[_0x2ca2('0x7')]('/',auth[_0x2ca2('0x8')](),controller[_0x2ca2('0x9')]);router[_0x2ca2('0x7')](_0x2ca2('0xa'),auth[_0x2ca2('0x8')](),controller[_0x2ca2('0xb')]);router[_0x2ca2('0x7')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router[_0x2ca2('0x7')](_0x2ca2('0xc'),auth[_0x2ca2('0x8')](),controller['getSubjects']);router['get'](_0x2ca2('0xd'),auth[_0x2ca2('0x8')](),controller[_0x2ca2('0xe')]);router[_0x2ca2('0x7')](_0x2ca2('0xf'),auth[_0x2ca2('0x8')](),controller['getTags']);router['post']('/',auth[_0x2ca2('0x8')](),controller[_0x2ca2('0x10')]);router[_0x2ca2('0x11')]('/:id/tags',auth[_0x2ca2('0x8')](),controller[_0x2ca2('0x12')]);router[_0x2ca2('0x13')]('/:id',auth[_0x2ca2('0x8')](),controller['update']);router[_0x2ca2('0x14')](_0x2ca2('0xa'),auth[_0x2ca2('0x8')](),controller[_0x2ca2('0x15')]);module[_0x2ca2('0x16')]=router;