21c10e94604285137606449dc6e052cb00021073
[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 _0xf856=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intSugarcrmConfiguration.controller','isAuthenticated','index','/:id','get','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','update','delete','destroy','exports','multer','util'];(function(_0x40d548,_0x233d52){var _0x1791f8=function(_0x526c95){while(--_0x526c95){_0x40d548['push'](_0x40d548['shift']());}};_0x1791f8(++_0x233d52);}(_0xf856,0x94));var _0x6f85=function(_0x12c683,_0x5734d5){_0x12c683=_0x12c683-0x0;var _0x1cb61a=_0xf856[_0x12c683];return _0x1cb61a;};'use strict';var multer=require(_0x6f85('0x0'));var util=require(_0x6f85('0x1'));var path=require('path');var timeout=require(_0x6f85('0x2'));var express=require(_0x6f85('0x3'));var router=express[_0x6f85('0x4')]();var fs_extra=require(_0x6f85('0x5'));var auth=require(_0x6f85('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x6f85('0x7'));var controller=require(_0x6f85('0x8'));router['get']('/',auth[_0x6f85('0x9')](),controller[_0x6f85('0xa')]);router['get'](_0x6f85('0xb'),auth[_0x6f85('0x9')](),controller['show']);router[_0x6f85('0xc')](_0x6f85('0xd'),auth[_0x6f85('0x9')](),controller[_0x6f85('0xe')]);router['get'](_0x6f85('0xf'),auth['isAuthenticated'](),controller[_0x6f85('0x10')]);router[_0x6f85('0xc')](_0x6f85('0x11'),auth[_0x6f85('0x9')](),controller[_0x6f85('0x12')]);router[_0x6f85('0x13')]('/',auth[_0x6f85('0x9')](),controller[_0x6f85('0x14')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x6f85('0x15')]);router[_0x6f85('0x16')](_0x6f85('0xb'),auth['isAuthenticated'](),controller[_0x6f85('0x17')]);module[_0x6f85('0x18')]=router;