035de63ca6da76ddc01f90aa45417eee4d706d9b
[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 _0x24a6=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','destroy','exports','multer'];(function(_0x4bbdae,_0x54f13b){var _0x4dd6b9=function(_0x36a32d){while(--_0x36a32d){_0x4bbdae['push'](_0x4bbdae['shift']());}};_0x4dd6b9(++_0x54f13b);}(_0x24a6,0x14f));var _0x624a=function(_0x1f8c88,_0x6c095c){_0x1f8c88=_0x1f8c88-0x0;var _0x19ef02=_0x24a6[_0x1f8c88];return _0x19ef02;};'use strict';var multer=require(_0x624a('0x0'));var util=require('util');var path=require(_0x624a('0x1'));var timeout=require(_0x624a('0x2'));var express=require(_0x624a('0x3'));var router=express[_0x624a('0x4')]();var fs_extra=require(_0x624a('0x5'));var auth=require(_0x624a('0x6'));var interaction=require(_0x624a('0x7'));var config=require(_0x624a('0x8'));var controller=require(_0x624a('0x9'));router[_0x624a('0xa')]('/',auth[_0x624a('0xb')](),controller[_0x624a('0xc')]);router[_0x624a('0xa')](_0x624a('0xd'),auth[_0x624a('0xb')](),controller[_0x624a('0xe')]);router[_0x624a('0xf')]('/',auth[_0x624a('0xb')](),controller[_0x624a('0x10')]);router[_0x624a('0x11')](_0x624a('0xd'),auth[_0x624a('0xb')](),controller[_0x624a('0x12')]);router['delete']('/:id',auth[_0x624a('0xb')](),controller[_0x624a('0x13')]);module[_0x624a('0x14')]=router;