Built motion from commit 43538d75.|2.5.35
[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 _0x0380=['index','/:id','show','create','put','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../config/environment','get','isAuthenticated'];(function(_0x3e9fb4,_0x5ee2b5){var _0x27be5e=function(_0x192bf0){while(--_0x192bf0){_0x3e9fb4['push'](_0x3e9fb4['shift']());}};_0x27be5e(++_0x5ee2b5);}(_0x0380,0x1e9));var _0x0038=function(_0x713a11,_0xaf9fa5){_0x713a11=_0x713a11-0x0;var _0x1b3879=_0x0380[_0x713a11];return _0x1b3879;};'use strict';var multer=require(_0x0038('0x0'));var util=require(_0x0038('0x1'));var path=require('path');var timeout=require(_0x0038('0x2'));var express=require('express');var router=express[_0x0038('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x0038('0x4'));var controller=require('./intSugarcrmField.controller');router[_0x0038('0x5')]('/',auth[_0x0038('0x6')](),controller[_0x0038('0x7')]);router[_0x0038('0x5')](_0x0038('0x8'),auth[_0x0038('0x6')](),controller[_0x0038('0x9')]);router['post']('/',auth[_0x0038('0x6')](),controller[_0x0038('0xa')]);router[_0x0038('0xb')]('/:id',auth[_0x0038('0x6')](),controller[_0x0038('0xc')]);router[_0x0038('0xd')](_0x0038('0x8'),auth['isAuthenticated'](),controller[_0x0038('0xe')]);module[_0x0038('0xf')]=router;