Built motion from commit b5996064.|2.6.21
[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 _0x7a6e=['isAuthenticated','/:id','show','create','update','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get'];(function(_0x4ff09b,_0x53f67d){var _0x3f5c2e=function(_0x124592){while(--_0x124592){_0x4ff09b['push'](_0x4ff09b['shift']());}};_0x3f5c2e(++_0x53f67d);}(_0x7a6e,0x197));var _0xe7a6=function(_0x3d248e,_0x497324){_0x3d248e=_0x3d248e-0x0;var _0x553b8e=_0x7a6e[_0x3d248e];return _0x553b8e;};'use strict';var multer=require(_0xe7a6('0x0'));var util=require(_0xe7a6('0x1'));var path=require(_0xe7a6('0x2'));var timeout=require(_0xe7a6('0x3'));var express=require(_0xe7a6('0x4'));var router=express['Router']();var fs_extra=require(_0xe7a6('0x5'));var auth=require(_0xe7a6('0x6'));var interaction=require(_0xe7a6('0x7'));var config=require(_0xe7a6('0x8'));var controller=require(_0xe7a6('0x9'));router[_0xe7a6('0xa')]('/',auth[_0xe7a6('0xb')](),controller['index']);router[_0xe7a6('0xa')](_0xe7a6('0xc'),auth[_0xe7a6('0xb')](),controller[_0xe7a6('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xe7a6('0xe')]);router['put'](_0xe7a6('0xc'),auth[_0xe7a6('0xb')](),controller[_0xe7a6('0xf')]);router[_0xe7a6('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xe7a6('0x11')]);module[_0xe7a6('0x12')]=router;