Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / intSugarcrmConfiguration / 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 _0x3e2a=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intSugarcrmConfiguration.controller','isAuthenticated','index','get','/:id','/:id/fields','getFields','/:id/descriptions','post','create','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x8afdd0,_0x548ad1){var _0x3de7ac=function(_0x2dc2c4){while(--_0x2dc2c4){_0x8afdd0['push'](_0x8afdd0['shift']());}};_0x3de7ac(++_0x548ad1);}(_0x3e2a,0x10c));var _0xa3e2=function(_0xe9e1a,_0x3b0917){_0xe9e1a=_0xe9e1a-0x0;var _0x1f2005=_0x3e2a[_0xe9e1a];return _0x1f2005;};'use strict';var multer=require(_0xa3e2('0x0'));var util=require(_0xa3e2('0x1'));var path=require(_0xa3e2('0x2'));var timeout=require(_0xa3e2('0x3'));var express=require(_0xa3e2('0x4'));var router=express[_0xa3e2('0x5')]();var fs_extra=require(_0xa3e2('0x6'));var auth=require(_0xa3e2('0x7'));var interaction=require(_0xa3e2('0x8'));var config=require('../../config/environment');var controller=require(_0xa3e2('0x9'));router['get']('/',auth[_0xa3e2('0xa')](),controller[_0xa3e2('0xb')]);router[_0xa3e2('0xc')](_0xa3e2('0xd'),auth[_0xa3e2('0xa')](),controller['show']);router[_0xa3e2('0xc')](_0xa3e2('0xe'),auth['isAuthenticated'](),controller[_0xa3e2('0xf')]);router[_0xa3e2('0xc')]('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']);router[_0xa3e2('0xc')](_0xa3e2('0x10'),auth[_0xa3e2('0xa')](),controller['getDescriptions']);router[_0xa3e2('0x11')]('/',auth[_0xa3e2('0xa')](),controller[_0xa3e2('0x12')]);router['put'](_0xa3e2('0xd'),auth[_0xa3e2('0xa')](),controller['update']);router[_0xa3e2('0x13')](_0xa3e2('0xd'),auth['isAuthenticated'](),controller[_0xa3e2('0x14')]);module['exports']=router;