18577a854d21195170791abe992c56dc7c084ee7
[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 _0xbf82=['multer','path','express','Router','fs-extra','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated','index','post','create','/:id','update','delete','destroy','exports'];(function(_0x4dfb03,_0x5837a5){var _0x5a85da=function(_0x4f3629){while(--_0x4f3629){_0x4dfb03['push'](_0x4dfb03['shift']());}};_0x5a85da(++_0x5837a5);}(_0xbf82,0x1cb));var _0x2bf8=function(_0x32c0a4,_0x309956){_0x32c0a4=_0x32c0a4-0x0;var _0x1a2dff=_0xbf82[_0x32c0a4];return _0x1a2dff;};'use strict';var multer=require(_0x2bf8('0x0'));var util=require('util');var path=require(_0x2bf8('0x1'));var timeout=require('connect-timeout');var express=require(_0x2bf8('0x2'));var router=express[_0x2bf8('0x3')]();var fs_extra=require(_0x2bf8('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2bf8('0x5'));var controller=require(_0x2bf8('0x6'));router[_0x2bf8('0x7')]('/',auth[_0x2bf8('0x8')](),controller[_0x2bf8('0x9')]);router['get']('/:id',auth[_0x2bf8('0x8')](),controller['show']);router[_0x2bf8('0xa')]('/',auth[_0x2bf8('0x8')](),controller[_0x2bf8('0xb')]);router['put'](_0x2bf8('0xc'),auth[_0x2bf8('0x8')](),controller[_0x2bf8('0xd')]);router[_0x2bf8('0xe')](_0x2bf8('0xc'),auth[_0x2bf8('0x8')](),controller[_0x2bf8('0xf')]);module[_0x2bf8('0x10')]=router;