Built motion from commit 43538d75.|2.5.35
[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 _0x1259=['post','put','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshdeskField.controller','isAuthenticated','index','get','/:id','show'];(function(_0x3e717b,_0x5a9916){var _0x55e40f=function(_0x4b9d0e){while(--_0x4b9d0e){_0x3e717b['push'](_0x3e717b['shift']());}};_0x55e40f(++_0x5a9916);}(_0x1259,0x180));var _0x9125=function(_0x1b4b25,_0x314c18){_0x1b4b25=_0x1b4b25-0x0;var _0x47a055=_0x1259[_0x1b4b25];return _0x47a055;};'use strict';var multer=require(_0x9125('0x0'));var util=require(_0x9125('0x1'));var path=require(_0x9125('0x2'));var timeout=require(_0x9125('0x3'));var express=require(_0x9125('0x4'));var router=express[_0x9125('0x5')]();var fs_extra=require(_0x9125('0x6'));var auth=require(_0x9125('0x7'));var interaction=require(_0x9125('0x8'));var config=require('../../config/environment');var controller=require(_0x9125('0x9'));router['get']('/',auth[_0x9125('0xa')](),controller[_0x9125('0xb')]);router[_0x9125('0xc')](_0x9125('0xd'),auth[_0x9125('0xa')](),controller[_0x9125('0xe')]);router[_0x9125('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x9125('0x10')](_0x9125('0xd'),auth[_0x9125('0xa')](),controller['update']);router[_0x9125('0x11')](_0x9125('0xd'),auth['isAuthenticated'](),controller[_0x9125('0x12')]);module['exports']=router;