4f098f09163116d06d487b5b636d73a7279a9129
[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 _0x938c=['get','index','/:id','isAuthenticated','show','post','create','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller'];(function(_0x467f98,_0x43f1b4){var _0x124c95=function(_0x49d3d1){while(--_0x49d3d1){_0x467f98['push'](_0x467f98['shift']());}};_0x124c95(++_0x43f1b4);}(_0x938c,0x137));var _0xc938=function(_0xaa2b47,_0x1dbf0b){_0xaa2b47=_0xaa2b47-0x0;var _0xf1a306=_0x938c[_0xaa2b47];return _0xf1a306;};'use strict';var multer=require(_0xc938('0x0'));var util=require(_0xc938('0x1'));var path=require(_0xc938('0x2'));var timeout=require(_0xc938('0x3'));var express=require(_0xc938('0x4'));var router=express[_0xc938('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xc938('0x6'));var config=require(_0xc938('0x7'));var controller=require(_0xc938('0x8'));router[_0xc938('0x9')]('/',auth['isAuthenticated'](),controller[_0xc938('0xa')]);router[_0xc938('0x9')](_0xc938('0xb'),auth[_0xc938('0xc')](),controller[_0xc938('0xd')]);router[_0xc938('0xe')]('/',auth[_0xc938('0xc')](),controller[_0xc938('0xf')]);router[_0xc938('0x10')](_0xc938('0xb'),auth['isAuthenticated'](),controller[_0xc938('0x11')]);router['delete']('/:id',auth[_0xc938('0xc')](),controller[_0xc938('0x12')]);module[_0xc938('0x13')]=router;