Built motion from commit 753c950e.|2.5.42
[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 _0x59f0=['post','put','/:id','delete','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index'];(function(_0x5cc528,_0x356dc3){var _0x52cbea=function(_0x4e2476){while(--_0x4e2476){_0x5cc528['push'](_0x5cc528['shift']());}};_0x52cbea(++_0x356dc3);}(_0x59f0,0x1d7));var _0x059f=function(_0x431b03,_0x4c4c50){_0x431b03=_0x431b03-0x0;var _0x5e0134=_0x59f0[_0x431b03];return _0x5e0134;};'use strict';var multer=require('multer');var util=require(_0x059f('0x0'));var path=require(_0x059f('0x1'));var timeout=require(_0x059f('0x2'));var express=require('express');var router=express[_0x059f('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x059f('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x059f('0x5'));var controller=require('./intFreshdeskField.controller');router[_0x059f('0x6')]('/',auth[_0x059f('0x7')](),controller[_0x059f('0x8')]);router[_0x059f('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x059f('0x9')]('/',auth[_0x059f('0x7')](),controller['create']);router[_0x059f('0xa')](_0x059f('0xb'),auth[_0x059f('0x7')](),controller['update']);router[_0x059f('0xc')]('/:id',auth[_0x059f('0x7')](),controller[_0x059f('0xd')]);module[_0x059f('0xe')]=router;