Built motion from commit 953226e6.|2.6.32
[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 _0x16b1=['../../config/environment','get','isAuthenticated','show','post','create','put','/:id','update','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x54a229,_0x479dd1){var _0x36232e=function(_0x48a4d3){while(--_0x48a4d3){_0x54a229['push'](_0x54a229['shift']());}};_0x36232e(++_0x479dd1);}(_0x16b1,0x7d));var _0x116b=function(_0x47f6bb,_0x2bad5b){_0x47f6bb=_0x47f6bb-0x0;var _0xd73348=_0x16b1[_0x47f6bb];return _0xd73348;};'use strict';var multer=require(_0x116b('0x0'));var util=require(_0x116b('0x1'));var path=require(_0x116b('0x2'));var timeout=require('connect-timeout');var express=require(_0x116b('0x3'));var router=express[_0x116b('0x4')]();var fs_extra=require(_0x116b('0x5'));var auth=require(_0x116b('0x6'));var interaction=require(_0x116b('0x7'));var config=require(_0x116b('0x8'));var controller=require('./intSugarcrmField.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x116b('0x9')]('/:id',auth[_0x116b('0xa')](),controller[_0x116b('0xb')]);router[_0x116b('0xc')]('/',auth[_0x116b('0xa')](),controller[_0x116b('0xd')]);router[_0x116b('0xe')](_0x116b('0xf'),auth['isAuthenticated'](),controller[_0x116b('0x10')]);router['delete'](_0x116b('0xf'),auth[_0x116b('0xa')](),controller[_0x116b('0x11')]);module[_0x116b('0x12')]=router;