Built motion from commit d301b742.|2.6.29
[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 _0x8322=['/:id','show','create','put','update','delete','destroy','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','get','isAuthenticated','index'];(function(_0x1b7440,_0x4b7149){var _0xb79f70=function(_0x2b3693){while(--_0x2b3693){_0x1b7440['push'](_0x1b7440['shift']());}};_0xb79f70(++_0x4b7149);}(_0x8322,0x97));var _0x2832=function(_0x4b26b5,_0x4f71fd){_0x4b26b5=_0x4b26b5-0x0;var _0x4dec71=_0x8322[_0x4b26b5];return _0x4dec71;};'use strict';var multer=require(_0x2832('0x0'));var util=require(_0x2832('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x2832('0x2'));var router=express['Router']();var fs_extra=require(_0x2832('0x3'));var auth=require(_0x2832('0x4'));var interaction=require(_0x2832('0x5'));var config=require(_0x2832('0x6'));var controller=require(_0x2832('0x7'));router[_0x2832('0x8')]('/',auth[_0x2832('0x9')](),controller[_0x2832('0xa')]);router['get'](_0x2832('0xb'),auth[_0x2832('0x9')](),controller[_0x2832('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x2832('0xd')]);router[_0x2832('0xe')](_0x2832('0xb'),auth[_0x2832('0x9')](),controller[_0x2832('0xf')]);router[_0x2832('0x10')](_0x2832('0xb'),auth[_0x2832('0x9')](),controller[_0x2832('0x11')]);module['exports']=router;