c7e921da4d1d618472f32b4247a28a76317844d7
[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 _0x73aa=['./intFreshsalesField.controller','get','isAuthenticated','index','/:id','show','create','put','update','delete','destroy','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x3782f1,_0xdb9da7){var _0x59aa2c=function(_0x3ecfb1){while(--_0x3ecfb1){_0x3782f1['push'](_0x3782f1['shift']());}};_0x59aa2c(++_0xdb9da7);}(_0x73aa,0x1a9));var _0xa73a=function(_0x3afe18,_0x26922c){_0x3afe18=_0x3afe18-0x0;var _0x19ed1f=_0x73aa[_0x3afe18];return _0x19ed1f;};'use strict';var multer=require(_0xa73a('0x0'));var util=require('util');var path=require(_0xa73a('0x1'));var timeout=require(_0xa73a('0x2'));var express=require(_0xa73a('0x3'));var router=express[_0xa73a('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xa73a('0x5'));var config=require(_0xa73a('0x6'));var controller=require(_0xa73a('0x7'));router[_0xa73a('0x8')]('/',auth[_0xa73a('0x9')](),controller[_0xa73a('0xa')]);router[_0xa73a('0x8')](_0xa73a('0xb'),auth[_0xa73a('0x9')](),controller[_0xa73a('0xc')]);router['post']('/',auth[_0xa73a('0x9')](),controller[_0xa73a('0xd')]);router[_0xa73a('0xe')](_0xa73a('0xb'),auth['isAuthenticated'](),controller[_0xa73a('0xf')]);router[_0xa73a('0x10')]('/:id',auth[_0xa73a('0x9')](),controller[_0xa73a('0x11')]);module['exports']=router;