Built motion from commit d5e4af8c.|2.6.23
[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 _0xcc58=['fs-extra','../../components/interaction/service','../../config/environment','get','index','post','create','/:id','isAuthenticated','delete','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x4ded61,_0x133b6b){var _0x2dcbea=function(_0x4804ab){while(--_0x4804ab){_0x4ded61['push'](_0x4ded61['shift']());}};_0x2dcbea(++_0x133b6b);}(_0xcc58,0x1e8));var _0x8cc5=function(_0x18c743,_0x58c7dc){_0x18c743=_0x18c743-0x0;var _0x391638=_0xcc58[_0x18c743];return _0x391638;};'use strict';var multer=require(_0x8cc5('0x0'));var util=require(_0x8cc5('0x1'));var path=require('path');var timeout=require(_0x8cc5('0x2'));var express=require(_0x8cc5('0x3'));var router=express[_0x8cc5('0x4')]();var fs_extra=require(_0x8cc5('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x8cc5('0x6'));var config=require(_0x8cc5('0x7'));var controller=require('./intFreshdeskField.controller');router[_0x8cc5('0x8')]('/',auth['isAuthenticated'](),controller[_0x8cc5('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0x8cc5('0xa')]('/',auth['isAuthenticated'](),controller[_0x8cc5('0xb')]);router['put'](_0x8cc5('0xc'),auth[_0x8cc5('0xd')](),controller['update']);router[_0x8cc5('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x8cc5('0xf')]);module[_0x8cc5('0x10')]=router;