d27526f303397e8e7a604ad76fb1a332bc9b8bad
[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 _0x1bf0=['isAuthenticated','/:id','show','/:id/fields','getFields','getSubjects','getDescriptions','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','get'];(function(_0x6077d0,_0x4d45c3){var _0x50f77c=function(_0x11f671){while(--_0x11f671){_0x6077d0['push'](_0x6077d0['shift']());}};_0x50f77c(++_0x4d45c3);}(_0x1bf0,0x116));var _0x01bf=function(_0x236da9,_0x3da09b){_0x236da9=_0x236da9-0x0;var _0x57f0d4=_0x1bf0[_0x236da9];return _0x57f0d4;};'use strict';var multer=require(_0x01bf('0x0'));var util=require(_0x01bf('0x1'));var path=require(_0x01bf('0x2'));var timeout=require(_0x01bf('0x3'));var express=require(_0x01bf('0x4'));var router=express['Router']();var fs_extra=require(_0x01bf('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x01bf('0x6'));var config=require(_0x01bf('0x7'));var controller=require(_0x01bf('0x8'));router[_0x01bf('0x9')]('/',auth[_0x01bf('0xa')](),controller['index']);router[_0x01bf('0x9')](_0x01bf('0xb'),auth[_0x01bf('0xa')](),controller[_0x01bf('0xc')]);router['get'](_0x01bf('0xd'),auth['isAuthenticated'](),controller[_0x01bf('0xe')]);router[_0x01bf('0x9')]('/:id/subjects',auth[_0x01bf('0xa')](),controller[_0x01bf('0xf')]);router[_0x01bf('0x9')]('/:id/descriptions',auth[_0x01bf('0xa')](),controller[_0x01bf('0x10')]);router[_0x01bf('0x11')]('/',auth[_0x01bf('0xa')](),controller[_0x01bf('0x12')]);router[_0x01bf('0x13')](_0x01bf('0xb'),auth['isAuthenticated'](),controller[_0x01bf('0x14')]);router[_0x01bf('0x15')](_0x01bf('0xb'),auth['isAuthenticated'](),controller[_0x01bf('0x16')]);module[_0x01bf('0x17')]=router;