Built motion from commit 85328c08.|2.5.50
[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 _0x9fef=['path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','isAuthenticated','index','get','show','create','update','delete','destroy','exports','multer','util'];(function(_0x3692a3,_0x1d59ad){var _0x299bd1=function(_0x3b043e){while(--_0x3b043e){_0x3692a3['push'](_0x3692a3['shift']());}};_0x299bd1(++_0x1d59ad);}(_0x9fef,0xe2));var _0xf9fe=function(_0x2a2b9d,_0x29ad81){_0x2a2b9d=_0x2a2b9d-0x0;var _0x314b2d=_0x9fef[_0x2a2b9d];return _0x314b2d;};'use strict';var multer=require(_0xf9fe('0x0'));var util=require(_0xf9fe('0x1'));var path=require(_0xf9fe('0x2'));var timeout=require(_0xf9fe('0x3'));var express=require(_0xf9fe('0x4'));var router=express[_0xf9fe('0x5')]();var fs_extra=require(_0xf9fe('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xf9fe('0x7'));var config=require(_0xf9fe('0x8'));var controller=require(_0xf9fe('0x9'));router['get']('/',auth[_0xf9fe('0xa')](),controller[_0xf9fe('0xb')]);router[_0xf9fe('0xc')]('/:id',auth[_0xf9fe('0xa')](),controller[_0xf9fe('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf9fe('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xf9fe('0xf')]);router[_0xf9fe('0x10')]('/:id',auth[_0xf9fe('0xa')](),controller[_0xf9fe('0x11')]);module[_0xf9fe('0x12')]=router;