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