d1cfe780b9eaa6aa1b1c0d56b825ee0323fa10d0
[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 _0xf874=['fs-extra','../../components/auth/service','../../components/interaction/service','./intFreshsalesField.controller','get','show','isAuthenticated','create','put','/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router'];(function(_0x580971,_0x10984d){var _0x16d873=function(_0x594084){while(--_0x594084){_0x580971['push'](_0x580971['shift']());}};_0x16d873(++_0x10984d);}(_0xf874,0x177));var _0x4f87=function(_0x4651e1,_0x3c3ebf){_0x4651e1=_0x4651e1-0x0;var _0x56eb90=_0xf874[_0x4651e1];return _0x56eb90;};'use strict';var multer=require(_0x4f87('0x0'));var util=require('util');var path=require(_0x4f87('0x1'));var timeout=require(_0x4f87('0x2'));var express=require(_0x4f87('0x3'));var router=express[_0x4f87('0x4')]();var fs_extra=require(_0x4f87('0x5'));var auth=require(_0x4f87('0x6'));var interaction=require(_0x4f87('0x7'));var config=require('../../config/environment');var controller=require(_0x4f87('0x8'));router[_0x4f87('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x4f87('0xa')]);router['post']('/',auth[_0x4f87('0xb')](),controller[_0x4f87('0xc')]);router[_0x4f87('0xd')](_0x4f87('0xe'),auth['isAuthenticated'](),controller[_0x4f87('0xf')]);router[_0x4f87('0x10')](_0x4f87('0xe'),auth[_0x4f87('0xb')](),controller[_0x4f87('0x11')]);module[_0x4f87('0x12')]=router;