68f86468b20e97fa6dd994456f3a8bc567de5220
[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 _0x0977=['create','put','update','delete','destroy','exports','multer','path','express','Router','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post'];(function(_0x491a7f,_0x28bb80){var _0x3d8f44=function(_0xdaa716){while(--_0xdaa716){_0x491a7f['push'](_0x491a7f['shift']());}};_0x3d8f44(++_0x28bb80);}(_0x0977,0x1e6));var _0x7097=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x0977[_0x3bf83f];return _0x22c4a9;};'use strict';var multer=require(_0x7097('0x0'));var util=require('util');var path=require(_0x7097('0x1'));var timeout=require('connect-timeout');var express=require(_0x7097('0x2'));var router=express[_0x7097('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x7097('0x4'));var config=require(_0x7097('0x5'));var controller=require(_0x7097('0x6'));router[_0x7097('0x7')]('/',auth[_0x7097('0x8')](),controller[_0x7097('0x9')]);router[_0x7097('0x7')](_0x7097('0xa'),auth[_0x7097('0x8')](),controller[_0x7097('0xb')]);router['get']('/:id/fields',auth[_0x7097('0x8')](),controller[_0x7097('0xc')]);router[_0x7097('0x7')](_0x7097('0xd'),auth[_0x7097('0x8')](),controller[_0x7097('0xe')]);router['get'](_0x7097('0xf'),auth['isAuthenticated'](),controller[_0x7097('0x10')]);router[_0x7097('0x11')]('/',auth[_0x7097('0x8')](),controller[_0x7097('0x12')]);router[_0x7097('0x13')](_0x7097('0xa'),auth['isAuthenticated'](),controller[_0x7097('0x14')]);router[_0x7097('0x15')](_0x7097('0xa'),auth[_0x7097('0x8')](),controller[_0x7097('0x16')]);module[_0x7097('0x17')]=router;