efffdf1b10a600a6993d5eba76f01e27b82aac51
[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 _0x4f6f=['update','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../config/environment','./intFreshsalesField.controller','isAuthenticated','index','get','create','put','/:id'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x4f6f,0x157));var _0xf4f6=function(_0x59e862,_0x477bf2){_0x59e862=_0x59e862-0x0;var _0x1a25ee=_0x4f6f[_0x59e862];return _0x1a25ee;};'use strict';var multer=require(_0xf4f6('0x0'));var util=require(_0xf4f6('0x1'));var path=require(_0xf4f6('0x2'));var timeout=require('connect-timeout');var express=require(_0xf4f6('0x3'));var router=express['Router']();var fs_extra=require(_0xf4f6('0x4'));var auth=require(_0xf4f6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf4f6('0x6'));var controller=require(_0xf4f6('0x7'));router['get']('/',auth[_0xf4f6('0x8')](),controller[_0xf4f6('0x9')]);router[_0xf4f6('0xa')]('/:id',auth[_0xf4f6('0x8')](),controller['show']);router['post']('/',auth[_0xf4f6('0x8')](),controller[_0xf4f6('0xb')]);router[_0xf4f6('0xc')](_0xf4f6('0xd'),auth[_0xf4f6('0x8')](),controller[_0xf4f6('0xe')]);router['delete'](_0xf4f6('0xd'),auth[_0xf4f6('0x8')](),controller[_0xf4f6('0xf')]);module[_0xf4f6('0x10')]=router;