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