dd383232bc22e8305a06379b8ea30e45fa9c577e
[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 _0x244a=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','/:id/subjects','/:id/descriptions','getDescriptions','post','put','update','delete','destroy','multer','connect-timeout','Router'];(function(_0x4264f1,_0x4f0491){var _0xa7d13a=function(_0x2e6c7a){while(--_0x2e6c7a){_0x4264f1['push'](_0x4264f1['shift']());}};_0xa7d13a(++_0x4f0491);}(_0x244a,0x90));var _0xa244=function(_0x4add85,_0x20180b){_0x4add85=_0x4add85-0x0;var _0xb12b40=_0x244a[_0x4add85];return _0xb12b40;};'use strict';var multer=require(_0xa244('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa244('0x1'));var express=require('express');var router=express[_0xa244('0x2')]();var fs_extra=require(_0xa244('0x3'));var auth=require(_0xa244('0x4'));var interaction=require(_0xa244('0x5'));var config=require(_0xa244('0x6'));var controller=require(_0xa244('0x7'));router[_0xa244('0x8')]('/',auth[_0xa244('0x9')](),controller['index']);router[_0xa244('0x8')](_0xa244('0xa'),auth['isAuthenticated'](),controller[_0xa244('0xb')]);router['get'](_0xa244('0xc'),auth[_0xa244('0x9')](),controller['getFields']);router[_0xa244('0x8')](_0xa244('0xd'),auth[_0xa244('0x9')](),controller['getSubjects']);router[_0xa244('0x8')](_0xa244('0xe'),auth['isAuthenticated'](),controller[_0xa244('0xf')]);router[_0xa244('0x10')]('/',auth[_0xa244('0x9')](),controller['create']);router[_0xa244('0x11')](_0xa244('0xa'),auth[_0xa244('0x9')](),controller[_0xa244('0x12')]);router[_0xa244('0x13')](_0xa244('0xa'),auth['isAuthenticated'](),controller[_0xa244('0x14')]);module['exports']=router;