Built motion from commit b5413ace.|2.6.9
[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 _0xb4b5=['update','delete','destroy','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','get','isAuthenticated','index','show','post','put','/:id'];(function(_0x1d50d1,_0x5c8945){var _0x136dae=function(_0x12c3aa){while(--_0x12c3aa){_0x1d50d1['push'](_0x1d50d1['shift']());}};_0x136dae(++_0x5c8945);}(_0xb4b5,0x180));var _0x5b4b=function(_0x43a5c7,_0x2286bf){_0x43a5c7=_0x43a5c7-0x0;var _0x3b12a2=_0xb4b5[_0x43a5c7];return _0x3b12a2;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5b4b('0x0'));var timeout=require(_0x5b4b('0x1'));var express=require(_0x5b4b('0x2'));var router=express[_0x5b4b('0x3')]();var fs_extra=require(_0x5b4b('0x4'));var auth=require(_0x5b4b('0x5'));var interaction=require(_0x5b4b('0x6'));var config=require(_0x5b4b('0x7'));var controller=require(_0x5b4b('0x8'));router[_0x5b4b('0x9')]('/',auth[_0x5b4b('0xa')](),controller[_0x5b4b('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x5b4b('0xc')]);router[_0x5b4b('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5b4b('0xe')](_0x5b4b('0xf'),auth[_0x5b4b('0xa')](),controller[_0x5b4b('0x10')]);router[_0x5b4b('0x11')](_0x5b4b('0xf'),auth[_0x5b4b('0xa')](),controller[_0x5b4b('0x12')]);module[_0x5b4b('0x13')]=router;