82184c5c13f727c20e17c90f70591ce0749c6ef6
[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 _0xf3d3=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','get','/:id','show','post','isAuthenticated','create','put','update','destroy','path','connect-timeout'];(function(_0x164888,_0x1cda63){var _0x2817cc=function(_0xaf4c8b){while(--_0xaf4c8b){_0x164888['push'](_0x164888['shift']());}};_0x2817cc(++_0x1cda63);}(_0xf3d3,0xa0));var _0x3f3d=function(_0x1ab396,_0x221eca){_0x1ab396=_0x1ab396-0x0;var _0xc9bd7d=_0xf3d3[_0x1ab396];return _0xc9bd7d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3f3d('0x0'));var timeout=require(_0x3f3d('0x1'));var express=require(_0x3f3d('0x2'));var router=express[_0x3f3d('0x3')]();var fs_extra=require(_0x3f3d('0x4'));var auth=require(_0x3f3d('0x5'));var interaction=require(_0x3f3d('0x6'));var config=require(_0x3f3d('0x7'));var controller=require(_0x3f3d('0x8'));router[_0x3f3d('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x3f3d('0x9')](_0x3f3d('0xa'),auth['isAuthenticated'](),controller[_0x3f3d('0xb')]);router[_0x3f3d('0xc')]('/',auth[_0x3f3d('0xd')](),controller[_0x3f3d('0xe')]);router[_0x3f3d('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x3f3d('0x10')]);router['delete'](_0x3f3d('0xa'),auth[_0x3f3d('0xd')](),controller[_0x3f3d('0x11')]);module['exports']=router;