Built motion from commit 9d0783e6.|2.6.13
[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 _0xdd0f=['put','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','isAuthenticated','get','/:id','show','getFields','/:id/subjects','getSubjects','getDescriptions','post'];(function(_0x4ed520,_0x21be63){var _0x4415a6=function(_0x14b151){while(--_0x14b151){_0x4ed520['push'](_0x4ed520['shift']());}};_0x4415a6(++_0x21be63);}(_0xdd0f,0x180));var _0xfdd0=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xdd0f[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xfdd0('0x0'));var util=require(_0xfdd0('0x1'));var path=require(_0xfdd0('0x2'));var timeout=require(_0xfdd0('0x3'));var express=require(_0xfdd0('0x4'));var router=express['Router']();var fs_extra=require(_0xfdd0('0x5'));var auth=require(_0xfdd0('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intSugarcrmConfiguration.controller');router['get']('/',auth[_0xfdd0('0x7')](),controller['index']);router[_0xfdd0('0x8')](_0xfdd0('0x9'),auth[_0xfdd0('0x7')](),controller[_0xfdd0('0xa')]);router[_0xfdd0('0x8')]('/:id/fields',auth[_0xfdd0('0x7')](),controller[_0xfdd0('0xb')]);router[_0xfdd0('0x8')](_0xfdd0('0xc'),auth[_0xfdd0('0x7')](),controller[_0xfdd0('0xd')]);router[_0xfdd0('0x8')]('/:id/descriptions',auth[_0xfdd0('0x7')](),controller[_0xfdd0('0xe')]);router[_0xfdd0('0xf')]('/',auth[_0xfdd0('0x7')](),controller['create']);router[_0xfdd0('0x10')](_0xfdd0('0x9'),auth[_0xfdd0('0x7')](),controller[_0xfdd0('0x11')]);router['delete']('/:id',auth[_0xfdd0('0x7')](),controller[_0xfdd0('0x12')]);module[_0xfdd0('0x13')]=router;