b025bbaa8f4ecdeb1524348362f28e7fb2a49c34
[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 _0xadad=['/:id','/:id/fields','getFields','/:id/subjects','post','create','update','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','get'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xadad,0xa9));var _0xdada=function(_0x508c71,_0x55b144){_0x508c71=_0x508c71-0x0;var _0x1a1f53=_0xadad[_0x508c71];return _0x1a1f53;};'use strict';var multer=require(_0xdada('0x0'));var util=require(_0xdada('0x1'));var path=require(_0xdada('0x2'));var timeout=require(_0xdada('0x3'));var express=require(_0xdada('0x4'));var router=express[_0xdada('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xdada('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xdada('0x7'));var controller=require('./intSugarcrmConfiguration.controller');router['get']('/',auth[_0xdada('0x8')](),controller[_0xdada('0x9')]);router[_0xdada('0xa')](_0xdada('0xb'),auth[_0xdada('0x8')](),controller['show']);router[_0xdada('0xa')](_0xdada('0xc'),auth['isAuthenticated'](),controller[_0xdada('0xd')]);router['get'](_0xdada('0xe'),auth['isAuthenticated'](),controller['getSubjects']);router[_0xdada('0xa')]('/:id/descriptions',auth[_0xdada('0x8')](),controller['getDescriptions']);router[_0xdada('0xf')]('/',auth[_0xdada('0x8')](),controller[_0xdada('0x10')]);router['put'](_0xdada('0xb'),auth[_0xdada('0x8')](),controller[_0xdada('0x11')]);router['delete'](_0xdada('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;