54c3c3b0e410791f734195e2f15630d7d794d77a
[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 _0xfb10=['delete','destroy','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','/:id','update'];(function(_0x11a2e4,_0x4b6f05){var _0x136fb6=function(_0x46c965){while(--_0x46c965){_0x11a2e4['push'](_0x11a2e4['shift']());}};_0x136fb6(++_0x4b6f05);}(_0xfb10,0xaa));var _0x0fb1=function(_0x4c0e05,_0x3401f9){_0x4c0e05=_0x4c0e05-0x0;var _0x3f7f46=_0xfb10[_0x4c0e05];return _0x3f7f46;};'use strict';var multer=require(_0x0fb1('0x0'));var util=require(_0x0fb1('0x1'));var path=require(_0x0fb1('0x2'));var timeout=require('connect-timeout');var express=require(_0x0fb1('0x3'));var router=express[_0x0fb1('0x4')]();var auth=require(_0x0fb1('0x5'));var interaction=require(_0x0fb1('0x6'));var config=require(_0x0fb1('0x7'));var controller=require('./intSugarcrmConfiguration.controller');router[_0x0fb1('0x8')]('/',auth[_0x0fb1('0x9')](),controller[_0x0fb1('0xa')]);router[_0x0fb1('0x8')]('/:id',auth[_0x0fb1('0x9')](),controller[_0x0fb1('0xb')]);router[_0x0fb1('0x8')](_0x0fb1('0xc'),auth[_0x0fb1('0x9')](),controller[_0x0fb1('0xd')]);router[_0x0fb1('0x8')](_0x0fb1('0xe'),auth[_0x0fb1('0x9')](),controller[_0x0fb1('0xf')]);router[_0x0fb1('0x8')](_0x0fb1('0x10'),auth[_0x0fb1('0x9')](),controller[_0x0fb1('0x11')]);router[_0x0fb1('0x12')]('/',auth[_0x0fb1('0x9')](),controller[_0x0fb1('0x13')]);router['put'](_0x0fb1('0x14'),auth[_0x0fb1('0x9')](),controller[_0x0fb1('0x15')]);router[_0x0fb1('0x16')](_0x0fb1('0x14'),auth[_0x0fb1('0x9')](),controller[_0x0fb1('0x17')]);module['exports']=router;