Built motion from commit 85328c08.|2.5.50
[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 _0xea40=['multer','util','path','express','fs-extra','../../components/interaction/service','index','get','/:id','isAuthenticated','post','create','put','delete','destroy','exports'];(function(_0x19a102,_0x156131){var _0x51b0de=function(_0x2f1162){while(--_0x2f1162){_0x19a102['push'](_0x19a102['shift']());}};_0x51b0de(++_0x156131);}(_0xea40,0x120));var _0x0ea4=function(_0x136492,_0x701cf4){_0x136492=_0x136492-0x0;var _0x1f0083=_0xea40[_0x136492];return _0x1f0083;};'use strict';var multer=require(_0x0ea4('0x0'));var util=require(_0x0ea4('0x1'));var path=require(_0x0ea4('0x2'));var timeout=require('connect-timeout');var express=require(_0x0ea4('0x3'));var router=express['Router']();var fs_extra=require(_0x0ea4('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x0ea4('0x5'));var config=require('../../config/environment');var controller=require('./intFreshdeskField.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x0ea4('0x6')]);router[_0x0ea4('0x7')](_0x0ea4('0x8'),auth[_0x0ea4('0x9')](),controller['show']);router[_0x0ea4('0xa')]('/',auth[_0x0ea4('0x9')](),controller[_0x0ea4('0xb')]);router[_0x0ea4('0xc')]('/:id',auth[_0x0ea4('0x9')](),controller['update']);router[_0x0ea4('0xd')](_0x0ea4('0x8'),auth[_0x0ea4('0x9')](),controller[_0x0ea4('0xe')]);module[_0x0ea4('0xf')]=router;