Built motion from commit ddca4d0d.|2.5.47
[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 _0xb8fd=['util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','/:id','isAuthenticated','show','create','update','delete','destroy','exports','multer'];(function(_0x38b8e3,_0x6eb75f){var _0x2263ff=function(_0x480156){while(--_0x480156){_0x38b8e3['push'](_0x38b8e3['shift']());}};_0x2263ff(++_0x6eb75f);}(_0xb8fd,0x98));var _0xdb8f=function(_0x36ae6b,_0x13ac4f){_0x36ae6b=_0x36ae6b-0x0;var _0x29567e=_0xb8fd[_0x36ae6b];return _0x29567e;};'use strict';var multer=require(_0xdb8f('0x0'));var util=require(_0xdb8f('0x1'));var path=require(_0xdb8f('0x2'));var timeout=require('connect-timeout');var express=require(_0xdb8f('0x3'));var router=express[_0xdb8f('0x4')]();var fs_extra=require(_0xdb8f('0x5'));var auth=require(_0xdb8f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xdb8f('0x7'));var controller=require('./intFreshdeskField.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xdb8f('0x8')](_0xdb8f('0x9'),auth[_0xdb8f('0xa')](),controller[_0xdb8f('0xb')]);router['post']('/',auth[_0xdb8f('0xa')](),controller[_0xdb8f('0xc')]);router['put'](_0xdb8f('0x9'),auth['isAuthenticated'](),controller[_0xdb8f('0xd')]);router[_0xdb8f('0xe')](_0xdb8f('0x9'),auth['isAuthenticated'](),controller[_0xdb8f('0xf')]);module[_0xdb8f('0x10')]=router;