Built motion from commit 9d0783e6.|2.6.13
[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 _0x265a=['util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','create','put','update','delete','destroy','multer'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x265a,0x1a8));var _0xa265=function(_0x5484dc,_0x57933d){_0x5484dc=_0x5484dc-0x0;var _0x23da66=_0x265a[_0x5484dc];return _0x23da66;};'use strict';var multer=require(_0xa265('0x0'));var util=require(_0xa265('0x1'));var path=require(_0xa265('0x2'));var timeout=require('connect-timeout');var express=require(_0xa265('0x3'));var router=express[_0xa265('0x4')]();var fs_extra=require(_0xa265('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xa265('0x6'));var config=require(_0xa265('0x7'));var controller=require('./intFreshdeskField.controller');router[_0xa265('0x8')]('/',auth[_0xa265('0x9')](),controller[_0xa265('0xa')]);router[_0xa265('0x8')](_0xa265('0xb'),auth[_0xa265('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xa265('0xc')]);router[_0xa265('0xd')](_0xa265('0xb'),auth[_0xa265('0x9')](),controller[_0xa265('0xe')]);router[_0xa265('0xf')](_0xa265('0xb'),auth[_0xa265('0x9')](),controller[_0xa265('0x10')]);module['exports']=router;