79a2477e3cc838168d7374440313300a48d6185c
[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 _0xba71=['getFields','/:id/subjects','/:id/descriptions','getDescriptions','/:id/tags','create','post','put','/:id','update','delete','destroy','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/fields'];(function(_0x5d5f03,_0x4d8cfc){var _0x4e1cb8=function(_0x1f84a){while(--_0x1f84a){_0x5d5f03['push'](_0x5d5f03['shift']());}};_0x4e1cb8(++_0x4d8cfc);}(_0xba71,0x120));var _0x1ba7=function(_0x38e191,_0x8d5355){_0x38e191=_0x38e191-0x0;var _0x4af767=_0xba71[_0x38e191];return _0x4af767;};'use strict';var multer=require(_0x1ba7('0x0'));var util=require(_0x1ba7('0x1'));var path=require(_0x1ba7('0x2'));var timeout=require(_0x1ba7('0x3'));var express=require('express');var router=express[_0x1ba7('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1ba7('0x5'));var config=require(_0x1ba7('0x6'));var controller=require('./intFreshdeskConfiguration.controller');router[_0x1ba7('0x7')]('/',auth[_0x1ba7('0x8')](),controller[_0x1ba7('0x9')]);router[_0x1ba7('0x7')]('/:id',auth[_0x1ba7('0x8')](),controller['show']);router[_0x1ba7('0x7')](_0x1ba7('0xa'),auth['isAuthenticated'](),controller[_0x1ba7('0xb')]);router[_0x1ba7('0x7')](_0x1ba7('0xc'),auth[_0x1ba7('0x8')](),controller['getSubjects']);router[_0x1ba7('0x7')](_0x1ba7('0xd'),auth[_0x1ba7('0x8')](),controller[_0x1ba7('0xe')]);router['get'](_0x1ba7('0xf'),auth['isAuthenticated'](),controller['getTags']);router['post']('/',auth[_0x1ba7('0x8')](),controller[_0x1ba7('0x10')]);router[_0x1ba7('0x11')](_0x1ba7('0xf'),auth['isAuthenticated'](),controller['setTags']);router[_0x1ba7('0x12')](_0x1ba7('0x13'),auth['isAuthenticated'](),controller[_0x1ba7('0x14')]);router[_0x1ba7('0x15')]('/:id',auth[_0x1ba7('0x8')](),controller[_0x1ba7('0x16')]);module['exports']=router;