Built motion from commit 639a1a7f.|2.6.19
[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 _0x5bbd=['util','path','connect-timeout','express','Router','fs-extra','./intFreshsalesField.controller','get','isAuthenticated','show','post','put','/:id','delete','multer'];(function(_0x552645,_0xfb6f1){var _0x4bdf04=function(_0x5bd97c){while(--_0x5bd97c){_0x552645['push'](_0x552645['shift']());}};_0x4bdf04(++_0xfb6f1);}(_0x5bbd,0x12b));var _0xd5bb=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5bbd[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xd5bb('0x0'));var util=require(_0xd5bb('0x1'));var path=require(_0xd5bb('0x2'));var timeout=require(_0xd5bb('0x3'));var express=require(_0xd5bb('0x4'));var router=express[_0xd5bb('0x5')]();var fs_extra=require(_0xd5bb('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xd5bb('0x7'));router[_0xd5bb('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xd5bb('0x8')]('/:id',auth[_0xd5bb('0x9')](),controller[_0xd5bb('0xa')]);router[_0xd5bb('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xd5bb('0xc')](_0xd5bb('0xd'),auth[_0xd5bb('0x9')](),controller['update']);router[_0xd5bb('0xe')](_0xd5bb('0xd'),auth[_0xd5bb('0x9')](),controller['destroy']);module['exports']=router;