98d2b4ab2f2546968f3e0978a615897353a3abdd
[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 _0x20c1=['/:id','get','/:id/fields','getFields','/:id/subjects','/:id/descriptions','post','delete','destroy','multer','util','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','isAuthenticated','index'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0x20c1,0x117));var _0x120c=function(_0x3d42c5,_0x380059){_0x3d42c5=_0x3d42c5-0x0;var _0xb1c254=_0x20c1[_0x3d42c5];return _0xb1c254;};'use strict';var multer=require(_0x120c('0x0'));var util=require(_0x120c('0x1'));var path=require('path');var timeout=require(_0x120c('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x120c('0x3'));var interaction=require(_0x120c('0x4'));var config=require(_0x120c('0x5'));var controller=require(_0x120c('0x6'));router['get']('/',auth[_0x120c('0x7')](),controller[_0x120c('0x8')]);router['get'](_0x120c('0x9'),auth[_0x120c('0x7')](),controller['show']);router[_0x120c('0xa')](_0x120c('0xb'),auth[_0x120c('0x7')](),controller[_0x120c('0xc')]);router[_0x120c('0xa')](_0x120c('0xd'),auth['isAuthenticated'](),controller['getSubjects']);router[_0x120c('0xa')](_0x120c('0xe'),auth[_0x120c('0x7')](),controller['getDescriptions']);router[_0x120c('0xf')]('/',auth[_0x120c('0x7')](),controller['create']);router['put'](_0x120c('0x9'),auth[_0x120c('0x7')](),controller['update']);router[_0x120c('0x10')](_0x120c('0x9'),auth[_0x120c('0x7')](),controller[_0x120c('0x11')]);module['exports']=router;