8c0cd581734e5fed3741f26e7e61d9b1a8699a82
[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 _0xd93a=['multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','post','put','update','delete','/:id','destroy','exports'];(function(_0x113945,_0x102a24){var _0x5836c8=function(_0x5430a8){while(--_0x5430a8){_0x113945['push'](_0x113945['shift']());}};_0x5836c8(++_0x102a24);}(_0xd93a,0x1c2));var _0xad93=function(_0x299fcd,_0x6b0886){_0x299fcd=_0x299fcd-0x0;var _0x4b15b0=_0xd93a[_0x299fcd];return _0x4b15b0;};'use strict';var multer=require(_0xad93('0x0'));var util=require(_0xad93('0x1'));var path=require('path');var timeout=require(_0xad93('0x2'));var express=require(_0xad93('0x3'));var router=express[_0xad93('0x4')]();var auth=require(_0xad93('0x5'));var interaction=require(_0xad93('0x6'));var config=require(_0xad93('0x7'));var controller=require('./intSugarcrmField.controller');router[_0xad93('0x8')]('/',auth[_0xad93('0x9')](),controller[_0xad93('0xa')]);router['get']('/:id',auth[_0xad93('0x9')](),controller['show']);router[_0xad93('0xb')]('/',auth[_0xad93('0x9')](),controller['create']);router[_0xad93('0xc')]('/:id',auth[_0xad93('0x9')](),controller[_0xad93('0xd')]);router[_0xad93('0xe')](_0xad93('0xf'),auth[_0xad93('0x9')](),controller[_0xad93('0x10')]);module[_0xad93('0x11')]=router;