b2dd87a783cbfa1977e7620f592998c25dd3df66
[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 _0xa584=['path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','isAuthenticated','get','/:id','post','put','update','exports'];(function(_0x492e3a,_0x3ed35b){var _0x158b30=function(_0x4b76a7){while(--_0x4b76a7){_0x492e3a['push'](_0x492e3a['shift']());}};_0x158b30(++_0x3ed35b);}(_0xa584,0x1d1));var _0x4a58=function(_0x6f0fb5,_0x51ce61){_0x6f0fb5=_0x6f0fb5-0x0;var _0x95e7fa=_0xa584[_0x6f0fb5];return _0x95e7fa;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x4a58('0x0'));var timeout=require(_0x4a58('0x1'));var express=require(_0x4a58('0x2'));var router=express[_0x4a58('0x3')]();var fs_extra=require(_0x4a58('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x4a58('0x5'));var config=require(_0x4a58('0x6'));var controller=require(_0x4a58('0x7'));router['get']('/',auth[_0x4a58('0x8')](),controller['index']);router[_0x4a58('0x9')](_0x4a58('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x4a58('0xb')]('/',auth[_0x4a58('0x8')](),controller['create']);router[_0x4a58('0xc')](_0x4a58('0xa'),auth['isAuthenticated'](),controller[_0x4a58('0xd')]);router['delete'](_0x4a58('0xa'),auth[_0x4a58('0x8')](),controller['destroy']);module[_0x4a58('0xe')]=router;