3514e0d5957ff99b78f2d475319334632a5675a1
[motion2.git] / server / api / intFreshsalesField / 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 _0xff63=['update','destroy','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','isAuthenticated','index','get','/:id','show','create'];(function(_0x322640,_0x550f79){var _0x2b332c=function(_0xa934a6){while(--_0xa934a6){_0x322640['push'](_0x322640['shift']());}};_0x2b332c(++_0x550f79);}(_0xff63,0x168));var _0x3ff6=function(_0x56ef6e,_0x21cbd5){_0x56ef6e=_0x56ef6e-0x0;var _0x836204=_0xff63[_0x56ef6e];return _0x836204;};'use strict';var multer=require('multer');var util=require(_0x3ff6('0x0'));var path=require(_0x3ff6('0x1'));var timeout=require('connect-timeout');var express=require(_0x3ff6('0x2'));var router=express[_0x3ff6('0x3')]();var auth=require(_0x3ff6('0x4'));var interaction=require(_0x3ff6('0x5'));var config=require(_0x3ff6('0x6'));var controller=require(_0x3ff6('0x7'));router['get']('/',auth[_0x3ff6('0x8')](),controller[_0x3ff6('0x9')]);router[_0x3ff6('0xa')](_0x3ff6('0xb'),auth[_0x3ff6('0x8')](),controller[_0x3ff6('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x3ff6('0xd')]);router['put'](_0x3ff6('0xb'),auth['isAuthenticated'](),controller[_0x3ff6('0xe')]);router['delete']('/:id',auth[_0x3ff6('0x8')](),controller[_0x3ff6('0xf')]);module[_0x3ff6('0x10')]=router;