46a397911278caeb5079ef9d4ce2204bf414343e
[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 _0x8447=['express','Router','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','post','create','put','/:id','destroy','util','path','connect-timeout'];(function(_0x37a9d7,_0x2b6fde){var _0x1343d3=function(_0x3bde45){while(--_0x3bde45){_0x37a9d7['push'](_0x37a9d7['shift']());}};_0x1343d3(++_0x2b6fde);}(_0x8447,0x1bd));var _0x7844=function(_0xbf14f,_0x175fbb){_0xbf14f=_0xbf14f-0x0;var _0x4398a1=_0x8447[_0xbf14f];return _0x4398a1;};'use strict';var multer=require('multer');var util=require(_0x7844('0x0'));var path=require(_0x7844('0x1'));var timeout=require(_0x7844('0x2'));var express=require(_0x7844('0x3'));var router=express[_0x7844('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x7844('0x5'));var config=require(_0x7844('0x6'));var controller=require('./intFreshsalesField.controller');router[_0x7844('0x7')]('/',auth['isAuthenticated'](),controller[_0x7844('0x8')]);router['get']('/:id',auth[_0x7844('0x9')](),controller[_0x7844('0xa')]);router[_0x7844('0xb')]('/',auth[_0x7844('0x9')](),controller[_0x7844('0xc')]);router[_0x7844('0xd')]('/:id',auth[_0x7844('0x9')](),controller['update']);router['delete'](_0x7844('0xe'),auth[_0x7844('0x9')](),controller[_0x7844('0xf')]);module['exports']=router;