Built motion from commit (unavailable).|2.5.26
[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 _0x7002=['isAuthenticated','/:id','show','get','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','getTags','post','create','/:id/tags','put','update','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','./intFreshdeskConfiguration.controller'];(function(_0x2dafef,_0x5ba5c9){var _0x571a58=function(_0x4c899b){while(--_0x4c899b){_0x2dafef['push'](_0x2dafef['shift']());}};_0x571a58(++_0x5ba5c9);}(_0x7002,0x82));var _0x2700=function(_0x996bc8,_0x291e01){_0x996bc8=_0x996bc8-0x0;var _0x20b0ea=_0x7002[_0x996bc8];return _0x20b0ea;};'use strict';var multer=require(_0x2700('0x0'));var util=require(_0x2700('0x1'));var path=require(_0x2700('0x2'));var timeout=require(_0x2700('0x3'));var express=require(_0x2700('0x4'));var router=express['Router']();var fs_extra=require(_0x2700('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x2700('0x6'));var config=require('../../config/environment');var controller=require(_0x2700('0x7'));router['get']('/',auth[_0x2700('0x8')](),controller['index']);router['get'](_0x2700('0x9'),auth['isAuthenticated'](),controller[_0x2700('0xa')]);router[_0x2700('0xb')](_0x2700('0xc'),auth[_0x2700('0x8')](),controller['getFields']);router[_0x2700('0xb')](_0x2700('0xd'),auth['isAuthenticated'](),controller[_0x2700('0xe')]);router['get'](_0x2700('0xf'),auth[_0x2700('0x8')](),controller[_0x2700('0x10')]);router[_0x2700('0xb')]('/:id/tags',auth[_0x2700('0x8')](),controller[_0x2700('0x11')]);router[_0x2700('0x12')]('/',auth[_0x2700('0x8')](),controller[_0x2700('0x13')]);router[_0x2700('0x12')](_0x2700('0x14'),auth[_0x2700('0x8')](),controller['setTags']);router[_0x2700('0x15')]('/:id',auth[_0x2700('0x8')](),controller[_0x2700('0x16')]);router['delete'](_0x2700('0x9'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;