Built motion from commit c116dc8b.|2.6.30
[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 _0x8546=['../../components/interaction/service','../../config/environment','./intFreshdeskField.controller','isAuthenticated','index','get','show','post','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x5f23ec,_0x1bb346){var _0x19d1f7=function(_0xfa86da){while(--_0xfa86da){_0x5f23ec['push'](_0x5f23ec['shift']());}};_0x19d1f7(++_0x1bb346);}(_0x8546,0x77));var _0x6854=function(_0x4811ac,_0x54a2af){_0x4811ac=_0x4811ac-0x0;var _0x23c3d8=_0x8546[_0x4811ac];return _0x23c3d8;};'use strict';var multer=require(_0x6854('0x0'));var util=require(_0x6854('0x1'));var path=require(_0x6854('0x2'));var timeout=require(_0x6854('0x3'));var express=require(_0x6854('0x4'));var router=express[_0x6854('0x5')]();var fs_extra=require(_0x6854('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x6854('0x7'));var config=require(_0x6854('0x8'));var controller=require(_0x6854('0x9'));router['get']('/',auth[_0x6854('0xa')](),controller[_0x6854('0xb')]);router[_0x6854('0xc')]('/:id',auth[_0x6854('0xa')](),controller[_0x6854('0xd')]);router[_0x6854('0xe')]('/',auth[_0x6854('0xa')](),controller[_0x6854('0xf')]);router[_0x6854('0x10')](_0x6854('0x11'),auth['isAuthenticated'](),controller[_0x6854('0x12')]);router[_0x6854('0x13')](_0x6854('0x11'),auth[_0x6854('0xa')](),controller['destroy']);module[_0x6854('0x14')]=router;