999ea3b78ac304f73e95ca8866ea7811c9613ed7
[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 _0x6bea=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','create','/:id','update','delete','destroy','util','path','connect-timeout','express','Router'];(function(_0x4efc87,_0x17a7d1){var _0x191fc4=function(_0x19dda1){while(--_0x19dda1){_0x4efc87['push'](_0x4efc87['shift']());}};_0x191fc4(++_0x17a7d1);}(_0x6bea,0x85));var _0xa6be=function(_0x6c2f7e,_0x5ea309){_0x6c2f7e=_0x6c2f7e-0x0;var _0x6dce36=_0x6bea[_0x6c2f7e];return _0x6dce36;};'use strict';var multer=require('multer');var util=require(_0xa6be('0x0'));var path=require(_0xa6be('0x1'));var timeout=require(_0xa6be('0x2'));var express=require(_0xa6be('0x3'));var router=express[_0xa6be('0x4')]();var fs_extra=require(_0xa6be('0x5'));var auth=require(_0xa6be('0x6'));var interaction=require(_0xa6be('0x7'));var config=require(_0xa6be('0x8'));var controller=require('./intSugarcrmConfiguration.controller');router[_0xa6be('0x9')]('/',auth[_0xa6be('0xa')](),controller[_0xa6be('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xa6be('0x9')](_0xa6be('0xc'),auth[_0xa6be('0xa')](),controller[_0xa6be('0xd')]);router[_0xa6be('0x9')](_0xa6be('0xe'),auth[_0xa6be('0xa')](),controller[_0xa6be('0xf')]);router[_0xa6be('0x9')](_0xa6be('0x10'),auth['isAuthenticated'](),controller[_0xa6be('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa6be('0x12')]);router['put'](_0xa6be('0x13'),auth[_0xa6be('0xa')](),controller[_0xa6be('0x14')]);router[_0xa6be('0x15')](_0xa6be('0x13'),auth[_0xa6be('0xa')](),controller[_0xa6be('0x16')]);module['exports']=router;