ba7e75d94205df74b23cc37149ad109d1dfdabd0
[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 _0x0467=['index','/:id','show','/:id/fields','getFields','/:id/descriptions','getDescriptions','post','update','delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','get','isAuthenticated'];(function(_0x10385f,_0x1f7083){var _0xa48457=function(_0x5dceba){while(--_0x5dceba){_0x10385f['push'](_0x10385f['shift']());}};_0xa48457(++_0x1f7083);}(_0x0467,0xfd));var _0x7046=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x0467[_0x3947c9];return _0x2e7871;};'use strict';var multer=require(_0x7046('0x0'));var util=require('util');var path=require(_0x7046('0x1'));var timeout=require(_0x7046('0x2'));var express=require(_0x7046('0x3'));var router=express[_0x7046('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x7046('0x5'));var interaction=require(_0x7046('0x6'));var config=require(_0x7046('0x7'));var controller=require(_0x7046('0x8'));router[_0x7046('0x9')]('/',auth[_0x7046('0xa')](),controller[_0x7046('0xb')]);router[_0x7046('0x9')](_0x7046('0xc'),auth[_0x7046('0xa')](),controller[_0x7046('0xd')]);router[_0x7046('0x9')](_0x7046('0xe'),auth[_0x7046('0xa')](),controller[_0x7046('0xf')]);router[_0x7046('0x9')]('/:id/subjects',auth[_0x7046('0xa')](),controller['getSubjects']);router[_0x7046('0x9')](_0x7046('0x10'),auth[_0x7046('0xa')](),controller[_0x7046('0x11')]);router[_0x7046('0x12')]('/',auth[_0x7046('0xa')](),controller['create']);router['put'](_0x7046('0xc'),auth[_0x7046('0xa')](),controller[_0x7046('0x13')]);router[_0x7046('0x14')]('/:id',auth[_0x7046('0xa')](),controller['destroy']);module[_0x7046('0x15')]=router;