Built motion from commit 0900f080.|2.5.45
[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 _0x19b0=['setTags','put','destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/fields','getFields','getSubjects','/:id/tags','getTags','post'];(function(_0x488224,_0x1d8f47){var _0x51ee0a=function(_0xdae9c){while(--_0xdae9c){_0x488224['push'](_0x488224['shift']());}};_0x51ee0a(++_0x1d8f47);}(_0x19b0,0x1bc));var _0x019b=function(_0xd01dde,_0x2d4dc8){_0xd01dde=_0xd01dde-0x0;var _0x45725c=_0x19b0[_0xd01dde];return _0x45725c;};'use strict';var multer=require(_0x019b('0x0'));var util=require(_0x019b('0x1'));var path=require('path');var timeout=require(_0x019b('0x2'));var express=require('express');var router=express[_0x019b('0x3')]();var fs_extra=require(_0x019b('0x4'));var auth=require(_0x019b('0x5'));var interaction=require(_0x019b('0x6'));var config=require(_0x019b('0x7'));var controller=require('./intFreshdeskConfiguration.controller');router[_0x019b('0x8')]('/',auth[_0x019b('0x9')](),controller['index']);router['get'](_0x019b('0xa'),auth[_0x019b('0x9')](),controller[_0x019b('0xb')]);router[_0x019b('0x8')](_0x019b('0xc'),auth[_0x019b('0x9')](),controller[_0x019b('0xd')]);router[_0x019b('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x019b('0xe')]);router[_0x019b('0x8')]('/:id/descriptions',auth['isAuthenticated'](),controller['getDescriptions']);router[_0x019b('0x8')](_0x019b('0xf'),auth[_0x019b('0x9')](),controller[_0x019b('0x10')]);router[_0x019b('0x11')]('/',auth[_0x019b('0x9')](),controller['create']);router[_0x019b('0x11')](_0x019b('0xf'),auth[_0x019b('0x9')](),controller[_0x019b('0x12')]);router[_0x019b('0x13')](_0x019b('0xa'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x019b('0xa'),auth[_0x019b('0x9')](),controller[_0x019b('0x14')]);module[_0x019b('0x15')]=router;