Built motion from commit 47436d59.|2.6.7
[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 _0xd435=['multer','util','connect-timeout','express','Router','fs-extra','isAuthenticated','index','get','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','post','create','put','/:id','update','destroy'];(function(_0x91e09b,_0x353fdf){var _0x5df3a9=function(_0x10d99b){while(--_0x10d99b){_0x91e09b['push'](_0x91e09b['shift']());}};_0x5df3a9(++_0x353fdf);}(_0xd435,0x1f4));var _0x5d43=function(_0x275791,_0x5635de){_0x275791=_0x275791-0x0;var _0x1faf5e=_0xd435[_0x275791];return _0x1faf5e;};'use strict';var multer=require(_0x5d43('0x0'));var util=require(_0x5d43('0x1'));var path=require('path');var timeout=require(_0x5d43('0x2'));var express=require(_0x5d43('0x3'));var router=express[_0x5d43('0x4')]();var fs_extra=require(_0x5d43('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intSugarcrmConfiguration.controller');router['get']('/',auth[_0x5d43('0x6')](),controller[_0x5d43('0x7')]);router[_0x5d43('0x8')]('/:id',auth[_0x5d43('0x6')](),controller[_0x5d43('0x9')]);router[_0x5d43('0x8')](_0x5d43('0xa'),auth[_0x5d43('0x6')](),controller[_0x5d43('0xb')]);router[_0x5d43('0x8')](_0x5d43('0xc'),auth[_0x5d43('0x6')](),controller['getSubjects']);router['get'](_0x5d43('0xd'),auth['isAuthenticated'](),controller['getDescriptions']);router[_0x5d43('0xe')]('/',auth[_0x5d43('0x6')](),controller[_0x5d43('0xf')]);router[_0x5d43('0x10')](_0x5d43('0x11'),auth[_0x5d43('0x6')](),controller[_0x5d43('0x12')]);router['delete'](_0x5d43('0x11'),auth[_0x5d43('0x6')](),controller[_0x5d43('0x13')]);module['exports']=router;