Built motion from commit b5413ace.|2.6.9
[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 _0x5ab9=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','post','isAuthenticated','create','put','/:id','update','delete','destroy','exports','multer','util'];(function(_0x3dc304,_0x4c7598){var _0x3bcf32=function(_0x2fe1d4){while(--_0x2fe1d4){_0x3dc304['push'](_0x3dc304['shift']());}};_0x3bcf32(++_0x4c7598);}(_0x5ab9,0x64));var _0x95ab=function(_0x1b338e,_0x25ac31){_0x1b338e=_0x1b338e-0x0;var _0x3ae2f4=_0x5ab9[_0x1b338e];return _0x3ae2f4;};'use strict';var multer=require(_0x95ab('0x0'));var util=require(_0x95ab('0x1'));var path=require('path');var timeout=require(_0x95ab('0x2'));var express=require('express');var router=express[_0x95ab('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x95ab('0x4'));var interaction=require(_0x95ab('0x5'));var config=require(_0x95ab('0x6'));var controller=require('./intSugarcrmField.controller');router[_0x95ab('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x95ab('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x95ab('0x8')]('/',auth[_0x95ab('0x9')](),controller[_0x95ab('0xa')]);router[_0x95ab('0xb')](_0x95ab('0xc'),auth[_0x95ab('0x9')](),controller[_0x95ab('0xd')]);router[_0x95ab('0xe')](_0x95ab('0xc'),auth['isAuthenticated'](),controller[_0x95ab('0xf')]);module[_0x95ab('0x10')]=router;