d4b1ed2f6001aecb4dfbbfc69ac3505eeaf0bd5a
[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 _0x84dc=['../../config/environment','get','index','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','delete','/:id','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x5a9e8d,_0x10c258){var _0x3a575c=function(_0x50cf63){while(--_0x50cf63){_0x5a9e8d['push'](_0x5a9e8d['shift']());}};_0x3a575c(++_0x10c258);}(_0x84dc,0x19e));var _0xc84d=function(_0x718b91,_0x37ed71){_0x718b91=_0x718b91-0x0;var _0x4d8a66=_0x84dc[_0x718b91];return _0x4d8a66;};'use strict';var multer=require(_0xc84d('0x0'));var util=require(_0xc84d('0x1'));var path=require(_0xc84d('0x2'));var timeout=require(_0xc84d('0x3'));var express=require(_0xc84d('0x4'));var router=express[_0xc84d('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc84d('0x6'));var controller=require('./intSugarcrmConfiguration.controller');router[_0xc84d('0x7')]('/',auth['isAuthenticated'](),controller[_0xc84d('0x8')]);router['get']('/:id',auth[_0xc84d('0x9')](),controller[_0xc84d('0xa')]);router['get'](_0xc84d('0xb'),auth['isAuthenticated'](),controller[_0xc84d('0xc')]);router['get'](_0xc84d('0xd'),auth[_0xc84d('0x9')](),controller[_0xc84d('0xe')]);router[_0xc84d('0x7')](_0xc84d('0xf'),auth[_0xc84d('0x9')](),controller[_0xc84d('0x10')]);router[_0xc84d('0x11')]('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0xc84d('0x9')](),controller['update']);router[_0xc84d('0x12')](_0xc84d('0x13'),auth[_0xc84d('0x9')](),controller['destroy']);module[_0xc84d('0x14')]=router;