Built motion from commit 4fa9d4a7.|2.6.31
[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 _0x113a=['exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','/:id','post','update','delete','destroy'];(function(_0x544692,_0x491cfe){var _0x16b981=function(_0x3f646f){while(--_0x3f646f){_0x544692['push'](_0x544692['shift']());}};_0x16b981(++_0x491cfe);}(_0x113a,0x1e1));var _0xa113=function(_0x1d0538,_0x463841){_0x1d0538=_0x1d0538-0x0;var _0xbd00ef=_0x113a[_0x1d0538];return _0xbd00ef;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa113('0x0'));var timeout=require(_0xa113('0x1'));var express=require(_0xa113('0x2'));var router=express[_0xa113('0x3')]();var fs_extra=require(_0xa113('0x4'));var auth=require(_0xa113('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xa113('0x6'));var controller=require(_0xa113('0x7'));router[_0xa113('0x8')]('/',auth[_0xa113('0x9')](),controller['index']);router[_0xa113('0x8')](_0xa113('0xa'),auth[_0xa113('0x9')](),controller['show']);router[_0xa113('0xb')]('/',auth[_0xa113('0x9')](),controller['create']);router['put'](_0xa113('0xa'),auth['isAuthenticated'](),controller[_0xa113('0xc')]);router[_0xa113('0xd')](_0xa113('0xa'),auth[_0xa113('0x9')](),controller[_0xa113('0xe')]);module[_0xa113('0xf')]=router;