Built motion from commit e6806ed6.|2.6.0
[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 _0xdd80=['path','connect-timeout','express','Router','../../components/interaction/service','./intSugarcrmField.controller','isAuthenticated','get','/:id','show','create','destroy'];(function(_0x1ac2c2,_0xd68751){var _0x44034a=function(_0x22fba8){while(--_0x22fba8){_0x1ac2c2['push'](_0x1ac2c2['shift']());}};_0x44034a(++_0xd68751);}(_0xdd80,0xfc));var _0x0dd8=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0xdd80[_0x5ddb1c];return _0x354adc;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0dd8('0x0'));var timeout=require(_0x0dd8('0x1'));var express=require(_0x0dd8('0x2'));var router=express[_0x0dd8('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x0dd8('0x4'));var config=require('../../config/environment');var controller=require(_0x0dd8('0x5'));router['get']('/',auth[_0x0dd8('0x6')](),controller['index']);router[_0x0dd8('0x7')](_0x0dd8('0x8'),auth[_0x0dd8('0x6')](),controller[_0x0dd8('0x9')]);router['post']('/',auth[_0x0dd8('0x6')](),controller[_0x0dd8('0xa')]);router['put'](_0x0dd8('0x8'),auth[_0x0dd8('0x6')](),controller['update']);router['delete'](_0x0dd8('0x8'),auth[_0x0dd8('0x6')](),controller[_0x0dd8('0xb')]);module['exports']=router;