2967b99ef96a5f2f9fc3f1566d3644414ed458d2
[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 _0xe131=['../../config/environment','get','isAuthenticated','/:id','/:id/fields','getFields','/:id/subjects','getDescriptions','post','create','update','delete','destroy','exports','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4ae6ef,_0xc2af80){var _0x3cbb4e=function(_0x569ad5){while(--_0x569ad5){_0x4ae6ef['push'](_0x4ae6ef['shift']());}};_0x3cbb4e(++_0xc2af80);}(_0xe131,0x118));var _0x1e13=function(_0x3f2e09,_0x231aee){_0x3f2e09=_0x3f2e09-0x0;var _0x2268e5=_0xe131[_0x3f2e09];return _0x2268e5;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x1e13('0x0'));var router=express[_0x1e13('0x1')]();var fs_extra=require(_0x1e13('0x2'));var auth=require(_0x1e13('0x3'));var interaction=require(_0x1e13('0x4'));var config=require(_0x1e13('0x5'));var controller=require('./intSugarcrmConfiguration.controller');router[_0x1e13('0x6')]('/',auth[_0x1e13('0x7')](),controller['index']);router[_0x1e13('0x6')](_0x1e13('0x8'),auth[_0x1e13('0x7')](),controller['show']);router[_0x1e13('0x6')](_0x1e13('0x9'),auth['isAuthenticated'](),controller[_0x1e13('0xa')]);router[_0x1e13('0x6')](_0x1e13('0xb'),auth[_0x1e13('0x7')](),controller['getSubjects']);router[_0x1e13('0x6')]('/:id/descriptions',auth[_0x1e13('0x7')](),controller[_0x1e13('0xc')]);router[_0x1e13('0xd')]('/',auth[_0x1e13('0x7')](),controller[_0x1e13('0xe')]);router['put']('/:id',auth[_0x1e13('0x7')](),controller[_0x1e13('0xf')]);router[_0x1e13('0x10')]('/:id',auth[_0x1e13('0x7')](),controller[_0x1e13('0x11')]);module[_0x1e13('0x12')]=router;