b7ae9ede0ebe315913ea5e55f57c48f79cbfa93d
[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 _0x7c1a=['/:id','delete','destroy','exports','util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','show','create'];(function(_0x29cb61,_0x494484){var _0x21d3e0=function(_0x3e0ac4){while(--_0x3e0ac4){_0x29cb61['push'](_0x29cb61['shift']());}};_0x21d3e0(++_0x494484);}(_0x7c1a,0xc7));var _0xa7c1=function(_0x37db8e,_0xabccb8){_0x37db8e=_0x37db8e-0x0;var _0x2cd105=_0x7c1a[_0x37db8e];return _0x2cd105;};'use strict';var multer=require('multer');var util=require(_0xa7c1('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa7c1('0x1')]();var fs_extra=require(_0xa7c1('0x2'));var auth=require(_0xa7c1('0x3'));var interaction=require(_0xa7c1('0x4'));var config=require(_0xa7c1('0x5'));var controller=require('./intFreshdeskField.controller');router['get']('/',auth[_0xa7c1('0x6')](),controller['index']);router['get']('/:id',auth[_0xa7c1('0x6')](),controller[_0xa7c1('0x7')]);router['post']('/',auth[_0xa7c1('0x6')](),controller[_0xa7c1('0x8')]);router['put'](_0xa7c1('0x9'),auth[_0xa7c1('0x6')](),controller['update']);router[_0xa7c1('0xa')](_0xa7c1('0x9'),auth[_0xa7c1('0x6')](),controller[_0xa7c1('0xb')]);module[_0xa7c1('0xc')]=router;