9a3416c829ad65e04d194cb6be1742d6d8fcc0da
[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 _0xf022=['isAuthenticated','index','get','create','/:id','update','delete','destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller'];(function(_0x4865e6,_0x1ae761){var _0x10ac0f=function(_0x3afdbc){while(--_0x3afdbc){_0x4865e6['push'](_0x4865e6['shift']());}};_0x10ac0f(++_0x1ae761);}(_0xf022,0x99));var _0x2f02=function(_0x1e17eb,_0x2e15c5){_0x1e17eb=_0x1e17eb-0x0;var _0x4de4c7=_0xf022[_0x1e17eb];return _0x4de4c7;};'use strict';var multer=require('multer');var util=require(_0x2f02('0x0'));var path=require(_0x2f02('0x1'));var timeout=require(_0x2f02('0x2'));var express=require('express');var router=express[_0x2f02('0x3')]();var fs_extra=require(_0x2f02('0x4'));var auth=require(_0x2f02('0x5'));var interaction=require(_0x2f02('0x6'));var config=require(_0x2f02('0x7'));var controller=require(_0x2f02('0x8'));router['get']('/',auth[_0x2f02('0x9')](),controller[_0x2f02('0xa')]);router[_0x2f02('0xb')]('/:id',auth[_0x2f02('0x9')](),controller['show']);router['post']('/',auth[_0x2f02('0x9')](),controller[_0x2f02('0xc')]);router['put'](_0x2f02('0xd'),auth[_0x2f02('0x9')](),controller[_0x2f02('0xe')]);router[_0x2f02('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x2f02('0x10')]);module[_0x2f02('0x11')]=router;