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