6949c822b2c41d7bb749dab6d40623f42655d65a
[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 _0x191e=['../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','isAuthenticated','index','get','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x443396,_0x543437){var _0x2c17e9=function(_0x28b0bb){while(--_0x28b0bb){_0x443396['push'](_0x443396['shift']());}};_0x2c17e9(++_0x543437);}(_0x191e,0x1c4));var _0xe191=function(_0x5777e9,_0x4efa7c){_0x5777e9=_0x5777e9-0x0;var _0x28f943=_0x191e[_0x5777e9];return _0x28f943;};'use strict';var multer=require(_0xe191('0x0'));var util=require(_0xe191('0x1'));var path=require(_0xe191('0x2'));var timeout=require(_0xe191('0x3'));var express=require(_0xe191('0x4'));var router=express[_0xe191('0x5')]();var auth=require(_0xe191('0x6'));var interaction=require(_0xe191('0x7'));var config=require(_0xe191('0x8'));var controller=require(_0xe191('0x9'));router['get']('/',auth[_0xe191('0xa')](),controller[_0xe191('0xb')]);router[_0xe191('0xc')](_0xe191('0xd'),auth[_0xe191('0xa')](),controller[_0xe191('0xe')]);router[_0xe191('0xc')](_0xe191('0xf'),auth['isAuthenticated'](),controller[_0xe191('0x10')]);router[_0xe191('0xc')](_0xe191('0x11'),auth[_0xe191('0xa')](),controller[_0xe191('0x12')]);router[_0xe191('0xc')](_0xe191('0x13'),auth[_0xe191('0xa')](),controller[_0xe191('0x14')]);router[_0xe191('0x15')]('/',auth[_0xe191('0xa')](),controller[_0xe191('0x16')]);router['put'](_0xe191('0xd'),auth[_0xe191('0xa')](),controller[_0xe191('0x17')]);router[_0xe191('0x18')]('/:id',auth['isAuthenticated'](),controller[_0xe191('0x19')]);module[_0xe191('0x1a')]=router;