Built motion from commit d9028345.|2.5.43
[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 _0x9631=['exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','create','update','destroy'];(function(_0x3317c9,_0x2b83e8){var _0x41184a=function(_0x5402be){while(--_0x5402be){_0x3317c9['push'](_0x3317c9['shift']());}};_0x41184a(++_0x2b83e8);}(_0x9631,0x71));var _0x1963=function(_0x28e376,_0x282696){_0x28e376=_0x28e376-0x0;var _0x23c705=_0x9631[_0x28e376];return _0x23c705;};'use strict';var multer=require(_0x1963('0x0'));var util=require(_0x1963('0x1'));var path=require('path');var timeout=require(_0x1963('0x2'));var express=require(_0x1963('0x3'));var router=express[_0x1963('0x4')]();var fs_extra=require(_0x1963('0x5'));var auth=require(_0x1963('0x6'));var interaction=require(_0x1963('0x7'));var config=require('../../config/environment');var controller=require('./intFreshdeskField.controller');router[_0x1963('0x8')]('/',auth[_0x1963('0x9')](),controller['index']);router[_0x1963('0x8')](_0x1963('0xa'),auth['isAuthenticated'](),controller[_0x1963('0xb')]);router['post']('/',auth[_0x1963('0x9')](),controller[_0x1963('0xc')]);router['put'](_0x1963('0xa'),auth[_0x1963('0x9')](),controller[_0x1963('0xd')]);router['delete']('/:id',auth[_0x1963('0x9')](),controller[_0x1963('0xe')]);module[_0x1963('0xf')]=router;