5a8726a6636cc0578afc871d521632c49c9e03c5
[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 _0xf562=['isAuthenticated','show','post','create','/:id','update','delete','destroy','exports','multer','util','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get'];(function(_0x187c0f,_0x30d4fd){var _0x1ce7d7=function(_0x5e8d34){while(--_0x5e8d34){_0x187c0f['push'](_0x187c0f['shift']());}};_0x1ce7d7(++_0x30d4fd);}(_0xf562,0x129));var _0x2f56=function(_0x33b718,_0x134497){_0x33b718=_0x33b718-0x0;var _0xb7e013=_0xf562[_0x33b718];return _0xb7e013;};'use strict';var multer=require(_0x2f56('0x0'));var util=require(_0x2f56('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x2f56('0x2'));var router=express[_0x2f56('0x3')]();var fs_extra=require(_0x2f56('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2f56('0x5'));var config=require(_0x2f56('0x6'));var controller=require(_0x2f56('0x7'));router[_0x2f56('0x8')]('/',auth[_0x2f56('0x9')](),controller['index']);router[_0x2f56('0x8')]('/:id',auth[_0x2f56('0x9')](),controller[_0x2f56('0xa')]);router[_0x2f56('0xb')]('/',auth['isAuthenticated'](),controller[_0x2f56('0xc')]);router['put'](_0x2f56('0xd'),auth[_0x2f56('0x9')](),controller[_0x2f56('0xe')]);router[_0x2f56('0xf')](_0x2f56('0xd'),auth[_0x2f56('0x9')](),controller[_0x2f56('0x10')]);module[_0x2f56('0x11')]=router;