ac009aec3ac4b5a4690bff6ebfd369ee85999a6c
[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 _0x7969=['../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','get','/:id','isAuthenticated','show','create','put','update','destroy','multer','util','express','Router'];(function(_0x563498,_0x415c8d){var _0x271b65=function(_0x594ba4){while(--_0x594ba4){_0x563498['push'](_0x563498['shift']());}};_0x271b65(++_0x415c8d);}(_0x7969,0x146));var _0x9796=function(_0x533256,_0x44df61){_0x533256=_0x533256-0x0;var _0x5a77ae=_0x7969[_0x533256];return _0x5a77ae;};'use strict';var multer=require(_0x9796('0x0'));var util=require(_0x9796('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9796('0x2'));var router=express[_0x9796('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9796('0x4'));var config=require(_0x9796('0x5'));var controller=require(_0x9796('0x6'));router[_0x9796('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x9796('0x8'),auth[_0x9796('0x9')](),controller[_0x9796('0xa')]);router['post']('/',auth[_0x9796('0x9')](),controller[_0x9796('0xb')]);router[_0x9796('0xc')]('/:id',auth[_0x9796('0x9')](),controller[_0x9796('0xd')]);router['delete'](_0x9796('0x8'),auth['isAuthenticated'](),controller[_0x9796('0xe')]);module['exports']=router;