13e9a3d0daf056f2911c84a30288cc6481ae7722
[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 _0x4843=['./intSugarcrmField.controller','get','index','/:id','isAuthenticated','post','create','put','destroy','exports','multer','util','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x27f3c5,_0x1e6835){var _0x28ac2c=function(_0x2898dc){while(--_0x2898dc){_0x27f3c5['push'](_0x27f3c5['shift']());}};_0x28ac2c(++_0x1e6835);}(_0x4843,0x19a));var _0x3484=function(_0x576a0a,_0x2a925a){_0x576a0a=_0x576a0a-0x0;var _0x52f496=_0x4843[_0x576a0a];return _0x52f496;};'use strict';var multer=require(_0x3484('0x0'));var util=require(_0x3484('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x3484('0x2'));var auth=require(_0x3484('0x3'));var interaction=require(_0x3484('0x4'));var config=require(_0x3484('0x5'));var controller=require(_0x3484('0x6'));router[_0x3484('0x7')]('/',auth['isAuthenticated'](),controller[_0x3484('0x8')]);router[_0x3484('0x7')](_0x3484('0x9'),auth[_0x3484('0xa')](),controller['show']);router[_0x3484('0xb')]('/',auth[_0x3484('0xa')](),controller[_0x3484('0xc')]);router[_0x3484('0xd')](_0x3484('0x9'),auth[_0x3484('0xa')](),controller['update']);router['delete'](_0x3484('0x9'),auth['isAuthenticated'](),controller[_0x3484('0xe')]);module[_0x3484('0xf')]=router;