1415c56e25bf4c409e6ab0e0870cf256bd99543c
[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 _0x8d3a=['/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','get','index','/:id','isAuthenticated','show','/:id/fields','getFields'];(function(_0x495ebf,_0x27df21){var _0x5841ef=function(_0x35bdfd){while(--_0x35bdfd){_0x495ebf['push'](_0x495ebf['shift']());}};_0x5841ef(++_0x27df21);}(_0x8d3a,0x112));var _0xa8d3=function(_0x1dd74c,_0x879fdf){_0x1dd74c=_0x1dd74c-0x0;var _0x3c16df=_0x8d3a[_0x1dd74c];return _0x3c16df;};'use strict';var multer=require(_0xa8d3('0x0'));var util=require(_0xa8d3('0x1'));var path=require(_0xa8d3('0x2'));var timeout=require(_0xa8d3('0x3'));var express=require(_0xa8d3('0x4'));var router=express[_0xa8d3('0x5')]();var auth=require(_0xa8d3('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intSugarcrmConfiguration.controller');router[_0xa8d3('0x7')]('/',auth['isAuthenticated'](),controller[_0xa8d3('0x8')]);router['get'](_0xa8d3('0x9'),auth[_0xa8d3('0xa')](),controller[_0xa8d3('0xb')]);router[_0xa8d3('0x7')](_0xa8d3('0xc'),auth[_0xa8d3('0xa')](),controller[_0xa8d3('0xd')]);router['get'](_0xa8d3('0xe'),auth['isAuthenticated'](),controller[_0xa8d3('0xf')]);router['get'](_0xa8d3('0x10'),auth[_0xa8d3('0xa')](),controller[_0xa8d3('0x11')]);router[_0xa8d3('0x12')]('/',auth['isAuthenticated'](),controller[_0xa8d3('0x13')]);router[_0xa8d3('0x14')]('/:id',auth['isAuthenticated'](),controller[_0xa8d3('0x15')]);router[_0xa8d3('0x16')](_0xa8d3('0x9'),auth[_0xa8d3('0xa')](),controller[_0xa8d3('0x17')]);module['exports']=router;