Built motion from commit (unavailable).|2.5.8
[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 _0xc858=['exports','path','Router','../../components/auth/service','./intSugarcrmField.controller','get','isAuthenticated','index','/:id','post','create','put'];(function(_0x5d17d2,_0x5ea611){var _0x3126bb=function(_0x274a52){while(--_0x274a52){_0x5d17d2['push'](_0x5d17d2['shift']());}};_0x3126bb(++_0x5ea611);}(_0xc858,0x121));var _0x8c85=function(_0x2904eb,_0x4f23a1){_0x2904eb=_0x2904eb-0x0;var _0x42bd3d=_0xc858[_0x2904eb];return _0x42bd3d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x8c85('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8c85('0x1')]();var auth=require(_0x8c85('0x2'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x8c85('0x3'));router[_0x8c85('0x4')]('/',auth[_0x8c85('0x5')](),controller[_0x8c85('0x6')]);router[_0x8c85('0x4')](_0x8c85('0x7'),auth[_0x8c85('0x5')](),controller['show']);router[_0x8c85('0x8')]('/',auth['isAuthenticated'](),controller[_0x8c85('0x9')]);router[_0x8c85('0xa')](_0x8c85('0x7'),auth[_0x8c85('0x5')](),controller['update']);router['delete'](_0x8c85('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0x8c85('0xb')]=router;