Built motion from commit efa66e19.|2.6.22
[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 _0x3e3a=['exports','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete'];(function(_0x1158e1,_0x31b137){var _0x22ff3d=function(_0x4bf2ed){while(--_0x4bf2ed){_0x1158e1['push'](_0x1158e1['shift']());}};_0x22ff3d(++_0x31b137);}(_0x3e3a,0x1dc));var _0xa3e3=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x3e3a[_0x3ab51d];return _0x29a04e;};'use strict';var multer=require(_0xa3e3('0x0'));var util=require('util');var path=require(_0xa3e3('0x1'));var timeout=require(_0xa3e3('0x2'));var express=require(_0xa3e3('0x3'));var router=express['Router']();var fs_extra=require(_0xa3e3('0x4'));var auth=require(_0xa3e3('0x5'));var interaction=require(_0xa3e3('0x6'));var config=require(_0xa3e3('0x7'));var controller=require(_0xa3e3('0x8'));router[_0xa3e3('0x9')]('/',auth[_0xa3e3('0xa')](),controller[_0xa3e3('0xb')]);router[_0xa3e3('0x9')]('/:id',auth[_0xa3e3('0xa')](),controller[_0xa3e3('0xc')]);router[_0xa3e3('0xd')]('/',auth['isAuthenticated'](),controller[_0xa3e3('0xe')]);router[_0xa3e3('0xf')](_0xa3e3('0x10'),auth['isAuthenticated'](),controller['update']);router[_0xa3e3('0x11')](_0xa3e3('0x10'),auth[_0xa3e3('0xa')](),controller['destroy']);module[_0xa3e3('0x12')]=router;