69651941d0252ca9867fcc32d582c924c1982a54
[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 _0x7a5b=['../../config/environment','index','get','isAuthenticated','create','put','/:id','update','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0xc7bbe3,_0x367ade){var _0x372e8d=function(_0x1dec02){while(--_0x1dec02){_0xc7bbe3['push'](_0xc7bbe3['shift']());}};_0x372e8d(++_0x367ade);}(_0x7a5b,0xda));var _0xb7a5=function(_0x5c5f44,_0x469cd8){_0x5c5f44=_0x5c5f44-0x0;var _0x38625d=_0x7a5b[_0x5c5f44];return _0x38625d;};'use strict';var multer=require(_0xb7a5('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb7a5('0x1'));var express=require(_0xb7a5('0x2'));var router=express[_0xb7a5('0x3')]();var auth=require(_0xb7a5('0x4'));var interaction=require(_0xb7a5('0x5'));var config=require(_0xb7a5('0x6'));var controller=require('./intSugarcrmField.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xb7a5('0x7')]);router[_0xb7a5('0x8')]('/:id',auth[_0xb7a5('0x9')](),controller['show']);router['post']('/',auth[_0xb7a5('0x9')](),controller[_0xb7a5('0xa')]);router[_0xb7a5('0xb')](_0xb7a5('0xc'),auth[_0xb7a5('0x9')](),controller[_0xb7a5('0xd')]);router['delete'](_0xb7a5('0xc'),auth[_0xb7a5('0x9')](),controller[_0xb7a5('0xe')]);module[_0xb7a5('0xf')]=router;