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