Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / intSugarcrmField / 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 _0x0bb6=['connect-timeout','Router','../../components/auth/service','./intSugarcrmField.controller','isAuthenticated','get','/:id','show','create','destroy','exports','path'];(function(_0x533e1c,_0x3b7a0f){var _0x5087a9=function(_0x2ae7e2){while(--_0x2ae7e2){_0x533e1c['push'](_0x533e1c['shift']());}};_0x5087a9(++_0x3b7a0f);}(_0x0bb6,0x1eb));var _0x60bb=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x0bb6[_0x4a9fb1];return _0x348672;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x60bb('0x0'));var timeout=require(_0x60bb('0x1'));var express=require('express');var router=express[_0x60bb('0x2')]();var auth=require(_0x60bb('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x60bb('0x4'));router['get']('/',auth[_0x60bb('0x5')](),controller['index']);router[_0x60bb('0x6')](_0x60bb('0x7'),auth['isAuthenticated'](),controller[_0x60bb('0x8')]);router['post']('/',auth['isAuthenticated'](),controller[_0x60bb('0x9')]);router['put'](_0x60bb('0x7'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x60bb('0x7'),auth[_0x60bb('0x5')](),controller[_0x60bb('0xa')]);module[_0x60bb('0xb')]=router;