Built motion from commit (unavailable).|2.5.6
[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 _0x40b1=['../../components/interaction/service','get','/:id','isAuthenticated','show','post','create','update','delete','destroy','exports','multer','path','connect-timeout','express','Router'];(function(_0x54ecd7,_0x212beb){var _0xd465a6=function(_0x46234e){while(--_0x46234e){_0x54ecd7['push'](_0x54ecd7['shift']());}};_0xd465a6(++_0x212beb);}(_0x40b1,0x11b));var _0x140b=function(_0x489e4a,_0x3d214d){_0x489e4a=_0x489e4a-0x0;var _0x463ccc=_0x40b1[_0x489e4a];return _0x463ccc;};'use strict';var multer=require(_0x140b('0x0'));var util=require('util');var path=require(_0x140b('0x1'));var timeout=require(_0x140b('0x2'));var express=require(_0x140b('0x3'));var router=express[_0x140b('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x140b('0x5'));var config=require('../../config/environment');var controller=require('./intSugarcrmField.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x140b('0x6')](_0x140b('0x7'),auth[_0x140b('0x8')](),controller[_0x140b('0x9')]);router[_0x140b('0xa')]('/',auth[_0x140b('0x8')](),controller[_0x140b('0xb')]);router['put'](_0x140b('0x7'),auth[_0x140b('0x8')](),controller[_0x140b('0xc')]);router[_0x140b('0xd')](_0x140b('0x7'),auth['isAuthenticated'](),controller[_0x140b('0xe')]);module[_0x140b('0xf')]=router;