2600054f521b98428b96cbf49f21ef9943248dc3
[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 _0x727c=['index','/:id','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','put','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x1ee5fe,_0x57e68b){var _0x2947f6=function(_0x403481){while(--_0x403481){_0x1ee5fe['push'](_0x1ee5fe['shift']());}};_0x2947f6(++_0x57e68b);}(_0x727c,0x182));var _0xc727=function(_0x34a14d,_0xc49d24){_0x34a14d=_0x34a14d-0x0;var _0x2015f2=_0x727c[_0x34a14d];return _0x2015f2;};'use strict';var multer=require(_0xc727('0x0'));var util=require(_0xc727('0x1'));var path=require(_0xc727('0x2'));var timeout=require(_0xc727('0x3'));var express=require('express');var router=express[_0xc727('0x4')]();var auth=require(_0xc727('0x5'));var interaction=require(_0xc727('0x6'));var config=require(_0xc727('0x7'));var controller=require('./intSugarcrmConfiguration.controller');router[_0xc727('0x8')]('/',auth[_0xc727('0x9')](),controller[_0xc727('0xa')]);router['get'](_0xc727('0xb'),auth[_0xc727('0x9')](),controller['show']);router[_0xc727('0x8')](_0xc727('0xc'),auth[_0xc727('0x9')](),controller[_0xc727('0xd')]);router[_0xc727('0x8')](_0xc727('0xe'),auth[_0xc727('0x9')](),controller[_0xc727('0xf')]);router['get'](_0xc727('0x10'),auth[_0xc727('0x9')](),controller[_0xc727('0x11')]);router[_0xc727('0x12')]('/',auth[_0xc727('0x9')](),controller['create']);router[_0xc727('0x13')](_0xc727('0xb'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0xc727('0x9')](),controller[_0xc727('0x14')]);module[_0xc727('0x15')]=router;