b048ff0762ae3075978a67431abb8325daff49a3
[motion2.git] / server / api / intFreshdeskField / 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 _0x208f=['destroy','exports','multer','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','isAuthenticated','index','get','show','post','create','put','update','delete','/:id'];(function(_0x340670,_0x3f1b8b){var _0x4181a9=function(_0x18f682){while(--_0x18f682){_0x340670['push'](_0x340670['shift']());}};_0x4181a9(++_0x3f1b8b);}(_0x208f,0x16b));var _0xf208=function(_0x2d19d0,_0x384301){_0x2d19d0=_0x2d19d0-0x0;var _0x31655f=_0x208f[_0x2d19d0];return _0x31655f;};'use strict';var multer=require(_0xf208('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf208('0x1'));var router=express[_0xf208('0x2')]();var fs_extra=require(_0xf208('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xf208('0x4'));var config=require(_0xf208('0x5'));var controller=require(_0xf208('0x6'));router['get']('/',auth[_0xf208('0x7')](),controller[_0xf208('0x8')]);router[_0xf208('0x9')]('/:id',auth['isAuthenticated'](),controller[_0xf208('0xa')]);router[_0xf208('0xb')]('/',auth['isAuthenticated'](),controller[_0xf208('0xc')]);router[_0xf208('0xd')]('/:id',auth[_0xf208('0x7')](),controller[_0xf208('0xe')]);router[_0xf208('0xf')](_0xf208('0x10'),auth[_0xf208('0x7')](),controller[_0xf208('0x11')]);module[_0xf208('0x12')]=router;