Built motion from commit 994c64e1.|2.6.1
[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 _0x031b=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','post','create','update','delete','destroy','exports','multer','util','path'];(function(_0x37ff2c,_0x5a2761){var _0x547bd0=function(_0x1a1d21){while(--_0x1a1d21){_0x37ff2c['push'](_0x37ff2c['shift']());}};_0x547bd0(++_0x5a2761);}(_0x031b,0x165));var _0xb031=function(_0x11ecc,_0x2b76c8){_0x11ecc=_0x11ecc-0x0;var _0x4d5bbf=_0x031b[_0x11ecc];return _0x4d5bbf;};'use strict';var multer=require(_0xb031('0x0'));var util=require(_0xb031('0x1'));var path=require(_0xb031('0x2'));var timeout=require(_0xb031('0x3'));var express=require(_0xb031('0x4'));var router=express[_0xb031('0x5')]();var fs_extra=require(_0xb031('0x6'));var auth=require(_0xb031('0x7'));var interaction=require(_0xb031('0x8'));var config=require(_0xb031('0x9'));var controller=require('./intSugarcrmConfiguration.controller');router[_0xb031('0xa')]('/',auth[_0xb031('0xb')](),controller['index']);router['get'](_0xb031('0xc'),auth[_0xb031('0xb')](),controller['show']);router[_0xb031('0xa')](_0xb031('0xd'),auth[_0xb031('0xb')](),controller[_0xb031('0xe')]);router['get'](_0xb031('0xf'),auth['isAuthenticated'](),controller['getSubjects']);router[_0xb031('0xa')](_0xb031('0x10'),auth[_0xb031('0xb')](),controller[_0xb031('0x11')]);router[_0xb031('0x12')]('/',auth['isAuthenticated'](),controller[_0xb031('0x13')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xb031('0x14')]);router[_0xb031('0x15')](_0xb031('0xc'),auth['isAuthenticated'](),controller[_0xb031('0x16')]);module[_0xb031('0x17')]=router;