Built motion from commit e0fa946e.|2.6.5
[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 _0x939f=['create','put','destroy','exports','multer','util','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post'];(function(_0xf734b7,_0x228b4c){var _0x4c38a3=function(_0x2f8e61){while(--_0x2f8e61){_0xf734b7['push'](_0xf734b7['shift']());}};_0x4c38a3(++_0x228b4c);}(_0x939f,0x1c6));var _0xf939=function(_0x2a5262,_0x578588){_0x2a5262=_0x2a5262-0x0;var _0x483802=_0x939f[_0x2a5262];return _0x483802;};'use strict';var multer=require(_0xf939('0x0'));var util=require(_0xf939('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf939('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xf939('0x3'));var config=require(_0xf939('0x4'));var controller=require('./intSugarcrmField.controller');router['get']('/',auth[_0xf939('0x5')](),controller[_0xf939('0x6')]);router[_0xf939('0x7')](_0xf939('0x8'),auth[_0xf939('0x5')](),controller[_0xf939('0x9')]);router[_0xf939('0xa')]('/',auth[_0xf939('0x5')](),controller[_0xf939('0xb')]);router[_0xf939('0xc')](_0xf939('0x8'),auth[_0xf939('0x5')](),controller['update']);router['delete'](_0xf939('0x8'),auth[_0xf939('0x5')](),controller[_0xf939('0xd')]);module[_0xf939('0xe')]=router;