0dcc8fe62db659ecb91a29883eefc6f590d41f88
[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 _0xdcc3=['/:id','show','post','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','index'];(function(_0x4755ce,_0x2f79cc){var _0x3dc15e=function(_0x22cc11){while(--_0x22cc11){_0x4755ce['push'](_0x4755ce['shift']());}};_0x3dc15e(++_0x2f79cc);}(_0xdcc3,0xf1));var _0x3dcc=function(_0x2cbb4b,_0x10654c){_0x2cbb4b=_0x2cbb4b-0x0;var _0x568e16=_0xdcc3[_0x2cbb4b];return _0x568e16;};'use strict';var multer=require(_0x3dcc('0x0'));var util=require(_0x3dcc('0x1'));var path=require(_0x3dcc('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3dcc('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3dcc('0x4'));var interaction=require(_0x3dcc('0x5'));var config=require(_0x3dcc('0x6'));var controller=require(_0x3dcc('0x7'));router[_0x3dcc('0x8')]('/',auth[_0x3dcc('0x9')](),controller[_0x3dcc('0xa')]);router['get'](_0x3dcc('0xb'),auth[_0x3dcc('0x9')](),controller[_0x3dcc('0xc')]);router[_0x3dcc('0xd')]('/',auth[_0x3dcc('0x9')](),controller['create']);router['put'](_0x3dcc('0xb'),auth[_0x3dcc('0x9')](),controller[_0x3dcc('0xe')]);router[_0x3dcc('0xf')]('/:id',auth[_0x3dcc('0x9')](),controller[_0x3dcc('0x10')]);module[_0x3dcc('0x11')]=router;