21fdd45747f629e3daa96d921d2efe9cf55c35af
[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 _0x7c75=['multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','index','/:id','show','post','create','update','destroy'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0x7c75,0x156));var _0x57c7=function(_0x39096d,_0x51f8a0){_0x39096d=_0x39096d-0x0;var _0x13da4f=_0x7c75[_0x39096d];return _0x13da4f;};'use strict';var multer=require(_0x57c7('0x0'));var util=require(_0x57c7('0x1'));var path=require(_0x57c7('0x2'));var timeout=require('connect-timeout');var express=require(_0x57c7('0x3'));var router=express[_0x57c7('0x4')]();var auth=require(_0x57c7('0x5'));var interaction=require(_0x57c7('0x6'));var config=require(_0x57c7('0x7'));var controller=require(_0x57c7('0x8'));router[_0x57c7('0x9')]('/',auth[_0x57c7('0xa')](),controller[_0x57c7('0xb')]);router[_0x57c7('0x9')](_0x57c7('0xc'),auth[_0x57c7('0xa')](),controller[_0x57c7('0xd')]);router[_0x57c7('0xe')]('/',auth[_0x57c7('0xa')](),controller[_0x57c7('0xf')]);router['put'](_0x57c7('0xc'),auth['isAuthenticated'](),controller[_0x57c7('0x10')]);router['delete']('/:id',auth[_0x57c7('0xa')](),controller[_0x57c7('0x11')]);module['exports']=router;