Built motion from commit 9d7072cc.|2.5.39
[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 _0x5a01=['isAuthenticated','index','/:id','show','/:id/fields','/:id/subjects','getSubjects','getDescriptions','post','create','update','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./intSugarcrmConfiguration.controller','get'];(function(_0x244cbd,_0xee056c){var _0x7ea4f9=function(_0xcc059e){while(--_0xcc059e){_0x244cbd['push'](_0x244cbd['shift']());}};_0x7ea4f9(++_0xee056c);}(_0x5a01,0x12b));var _0x15a0=function(_0x523adf,_0x3e1620){_0x523adf=_0x523adf-0x0;var _0x283870=_0x5a01[_0x523adf];return _0x283870;};'use strict';var multer=require(_0x15a0('0x0'));var util=require(_0x15a0('0x1'));var path=require(_0x15a0('0x2'));var timeout=require('connect-timeout');var express=require(_0x15a0('0x3'));var router=express[_0x15a0('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x15a0('0x5'));var config=require(_0x15a0('0x6'));var controller=require(_0x15a0('0x7'));router[_0x15a0('0x8')]('/',auth[_0x15a0('0x9')](),controller[_0x15a0('0xa')]);router['get'](_0x15a0('0xb'),auth['isAuthenticated'](),controller[_0x15a0('0xc')]);router[_0x15a0('0x8')](_0x15a0('0xd'),auth[_0x15a0('0x9')](),controller['getFields']);router[_0x15a0('0x8')](_0x15a0('0xe'),auth[_0x15a0('0x9')](),controller[_0x15a0('0xf')]);router[_0x15a0('0x8')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x15a0('0x10')]);router[_0x15a0('0x11')]('/',auth[_0x15a0('0x9')](),controller[_0x15a0('0x12')]);router['put'](_0x15a0('0xb'),auth['isAuthenticated'](),controller[_0x15a0('0x13')]);router['delete'](_0x15a0('0xb'),auth[_0x15a0('0x9')](),controller[_0x15a0('0x14')]);module[_0x15a0('0x15')]=router;