3cec1e71eb5e5c9b2fa19edf718a91b636e1070e
[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 _0xf065=['create','/:id','update','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intSugarcrmConfiguration.controller','isAuthenticated','show','/:id/fields','getFields','get','/:id/subjects','/:id/descriptions','getDescriptions'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xf065,0x1e4));var _0x5f06=function(_0x1e921c,_0x2f5173){_0x1e921c=_0x1e921c-0x0;var _0x2f9649=_0xf065[_0x1e921c];return _0x2f9649;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5f06('0x0'));var timeout=require(_0x5f06('0x1'));var express=require(_0x5f06('0x2'));var router=express[_0x5f06('0x3')]();var fs_extra=require(_0x5f06('0x4'));var auth=require(_0x5f06('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x5f06('0x6'));var controller=require(_0x5f06('0x7'));router['get']('/',auth[_0x5f06('0x8')](),controller['index']);router['get']('/:id',auth[_0x5f06('0x8')](),controller[_0x5f06('0x9')]);router['get'](_0x5f06('0xa'),auth[_0x5f06('0x8')](),controller[_0x5f06('0xb')]);router[_0x5f06('0xc')](_0x5f06('0xd'),auth[_0x5f06('0x8')](),controller['getSubjects']);router[_0x5f06('0xc')](_0x5f06('0xe'),auth['isAuthenticated'](),controller[_0x5f06('0xf')]);router['post']('/',auth[_0x5f06('0x8')](),controller[_0x5f06('0x10')]);router['put'](_0x5f06('0x11'),auth[_0x5f06('0x8')](),controller[_0x5f06('0x12')]);router['delete']('/:id',auth[_0x5f06('0x8')](),controller['destroy']);module[_0x5f06('0x13')]=router;