Built motion from commit (unavailable).|2.5.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 _0xa513=['/:id/subjects','getSubjects','post','put','update','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','/:id/fields','getFields'];(function(_0x4d6034,_0x495113){var _0x519b3f=function(_0x5ef206){while(--_0x5ef206){_0x4d6034['push'](_0x4d6034['shift']());}};_0x519b3f(++_0x495113);}(_0xa513,0xc5));var _0x3a51=function(_0x4b2f61,_0x31bc15){_0x4b2f61=_0x4b2f61-0x0;var _0x2b48c1=_0xa513[_0x4b2f61];return _0x2b48c1;};'use strict';var multer=require(_0x3a51('0x0'));var util=require(_0x3a51('0x1'));var path=require('path');var timeout=require(_0x3a51('0x2'));var express=require('express');var router=express[_0x3a51('0x3')]();var auth=require(_0x3a51('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3a51('0x5'));var controller=require('./intSugarcrmConfiguration.controller');router[_0x3a51('0x6')]('/',auth[_0x3a51('0x7')](),controller[_0x3a51('0x8')]);router[_0x3a51('0x6')](_0x3a51('0x9'),auth[_0x3a51('0x7')](),controller['show']);router[_0x3a51('0x6')](_0x3a51('0xa'),auth[_0x3a51('0x7')](),controller[_0x3a51('0xb')]);router[_0x3a51('0x6')](_0x3a51('0xc'),auth[_0x3a51('0x7')](),controller[_0x3a51('0xd')]);router[_0x3a51('0x6')]('/:id/descriptions',auth[_0x3a51('0x7')](),controller['getDescriptions']);router[_0x3a51('0xe')]('/',auth[_0x3a51('0x7')](),controller['create']);router[_0x3a51('0xf')](_0x3a51('0x9'),auth[_0x3a51('0x7')](),controller[_0x3a51('0x10')]);router['delete'](_0x3a51('0x9'),auth['isAuthenticated'](),controller[_0x3a51('0x11')]);module[_0x3a51('0x12')]=router;