33a9b012b1f58ee584096ccb2e51ef70569fd849
[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 _0xbe29=['get','show','put','/:id','delete','destroy','exports','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','isAuthenticated','index'];(function(_0x35af6d,_0x48afc4){var _0x1fd188=function(_0x5a0587){while(--_0x5a0587){_0x35af6d['push'](_0x35af6d['shift']());}};_0x1fd188(++_0x48afc4);}(_0xbe29,0x77));var _0x9be2=function(_0x4a599b,_0x1d2125){_0x4a599b=_0x4a599b-0x0;var _0x2d53d3=_0xbe29[_0x4a599b];return _0x2d53d3;};'use strict';var multer=require('multer');var util=require(_0x9be2('0x0'));var path=require('path');var timeout=require(_0x9be2('0x1'));var express=require(_0x9be2('0x2'));var router=express['Router']();var fs_extra=require(_0x9be2('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x9be2('0x4'));var config=require(_0x9be2('0x5'));var controller=require(_0x9be2('0x6'));router['get']('/',auth[_0x9be2('0x7')](),controller[_0x9be2('0x8')]);router[_0x9be2('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x9be2('0xa')]);router['post']('/',auth[_0x9be2('0x7')](),controller['create']);router[_0x9be2('0xb')](_0x9be2('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x9be2('0xd')](_0x9be2('0xc'),auth[_0x9be2('0x7')](),controller[_0x9be2('0xe')]);module[_0x9be2('0xf')]=router;