Built motion from commit 25580385.|2.6.2
[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 _0x424f=['show','post','create','put','delete','destroy','multer','util','connect-timeout','express','../../components/interaction/service','./intSugarcrmField.controller','get','index','/:id','isAuthenticated'];(function(_0x2b0a08,_0x3c62e2){var _0xdef916=function(_0x994197){while(--_0x994197){_0x2b0a08['push'](_0x2b0a08['shift']());}};_0xdef916(++_0x3c62e2);}(_0x424f,0xc6));var _0xf424=function(_0x22417e,_0xa44a31){_0x22417e=_0x22417e-0x0;var _0x9bd087=_0x424f[_0x22417e];return _0x9bd087;};'use strict';var multer=require(_0xf424('0x0'));var util=require(_0xf424('0x1'));var path=require('path');var timeout=require(_0xf424('0x2'));var express=require(_0xf424('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xf424('0x4'));var config=require('../../config/environment');var controller=require(_0xf424('0x5'));router[_0xf424('0x6')]('/',auth['isAuthenticated'](),controller[_0xf424('0x7')]);router[_0xf424('0x6')](_0xf424('0x8'),auth[_0xf424('0x9')](),controller[_0xf424('0xa')]);router[_0xf424('0xb')]('/',auth[_0xf424('0x9')](),controller[_0xf424('0xc')]);router[_0xf424('0xd')]('/:id',auth[_0xf424('0x9')](),controller['update']);router[_0xf424('0xe')](_0xf424('0x8'),auth[_0xf424('0x9')](),controller[_0xf424('0xf')]);module['exports']=router;