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