Built motion from commit f7863d46.|2.5.41
[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 _0xb4e6=['put','/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesField.controller','get','isAuthenticated','show','create'];(function(_0x42473f,_0x7851a){var _0x3376a6=function(_0x4277cf){while(--_0x4277cf){_0x42473f['push'](_0x42473f['shift']());}};_0x3376a6(++_0x7851a);}(_0xb4e6,0x1f4));var _0x6b4e=function(_0x3b231a,_0x53a00d){_0x3b231a=_0x3b231a-0x0;var _0x18d67a=_0xb4e6[_0x3b231a];return _0x18d67a;};'use strict';var multer=require(_0x6b4e('0x0'));var util=require('util');var path=require(_0x6b4e('0x1'));var timeout=require(_0x6b4e('0x2'));var express=require(_0x6b4e('0x3'));var router=express[_0x6b4e('0x4')]();var fs_extra=require(_0x6b4e('0x5'));var auth=require(_0x6b4e('0x6'));var interaction=require(_0x6b4e('0x7'));var config=require('../../config/environment');var controller=require(_0x6b4e('0x8'));router[_0x6b4e('0x9')]('/',auth[_0x6b4e('0xa')](),controller['index']);router[_0x6b4e('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x6b4e('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x6b4e('0xc')]);router[_0x6b4e('0xd')](_0x6b4e('0xe'),auth[_0x6b4e('0xa')](),controller[_0x6b4e('0xf')]);router[_0x6b4e('0x10')](_0x6b4e('0xe'),auth['isAuthenticated'](),controller[_0x6b4e('0x11')]);module[_0x6b4e('0x12')]=router;