Built motion from commit (unavailable).|2.5.20
[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 _0x015a=['post','create','put','update','delete','exports','util','path','express','Router','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','/:id','show'];(function(_0x2aafdb,_0xda7260){var _0x222260=function(_0x4b5be2){while(--_0x4b5be2){_0x2aafdb['push'](_0x2aafdb['shift']());}};_0x222260(++_0xda7260);}(_0x015a,0xe3));var _0xa015=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x015a[_0x46698a];return _0x356db0;};'use strict';var multer=require('multer');var util=require(_0xa015('0x0'));var path=require(_0xa015('0x1'));var timeout=require('connect-timeout');var express=require(_0xa015('0x2'));var router=express[_0xa015('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xa015('0x4'));var config=require(_0xa015('0x5'));var controller=require(_0xa015('0x6'));router[_0xa015('0x7')]('/',auth[_0xa015('0x8')](),controller['index']);router[_0xa015('0x7')](_0xa015('0x9'),auth[_0xa015('0x8')](),controller[_0xa015('0xa')]);router[_0xa015('0xb')]('/',auth['isAuthenticated'](),controller[_0xa015('0xc')]);router[_0xa015('0xd')](_0xa015('0x9'),auth[_0xa015('0x8')](),controller[_0xa015('0xe')]);router[_0xa015('0xf')](_0xa015('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0xa015('0x10')]=router;