Built motion from commit 092f8824.|2.5.49
[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 _0x0791=['update','delete','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','create'];(function(_0x201457,_0xede44b){var _0x2a61ea=function(_0x1392a9){while(--_0x1392a9){_0x201457['push'](_0x201457['shift']());}};_0x2a61ea(++_0xede44b);}(_0x0791,0x144));var _0x1079=function(_0x32f26d,_0x2c0b5d){_0x32f26d=_0x32f26d-0x0;var _0x5d9ddc=_0x0791[_0x32f26d];return _0x5d9ddc;};'use strict';var multer=require('multer');var util=require(_0x1079('0x0'));var path=require(_0x1079('0x1'));var timeout=require(_0x1079('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x1079('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x1079('0x4'));var config=require(_0x1079('0x5'));var controller=require('./intFreshdeskField.controller');router[_0x1079('0x6')]('/',auth[_0x1079('0x7')](),controller[_0x1079('0x8')]);router[_0x1079('0x6')](_0x1079('0x9'),auth['isAuthenticated'](),controller[_0x1079('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x1079('0xb')]);router['put'](_0x1079('0x9'),auth[_0x1079('0x7')](),controller[_0x1079('0xc')]);router[_0x1079('0xd')]('/:id',auth[_0x1079('0x7')](),controller['destroy']);module['exports']=router;