Built motion from commit 3c2ce842.|2.6.31
[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 _0x9567=['../../components/auth/service','../../components/interaction/service','./intFreshsalesField.controller','isAuthenticated','get','/:id','show','create','delete','exports','multer','util','path','connect-timeout','express'];(function(_0xe10254,_0x54a924){var _0x286ef9=function(_0x169e41){while(--_0x169e41){_0xe10254['push'](_0xe10254['shift']());}};_0x286ef9(++_0x54a924);}(_0x9567,0xdc));var _0x7956=function(_0x95c465,_0x1f7f82){_0x95c465=_0x95c465-0x0;var _0x386c2d=_0x9567[_0x95c465];return _0x386c2d;};'use strict';var multer=require(_0x7956('0x0'));var util=require(_0x7956('0x1'));var path=require(_0x7956('0x2'));var timeout=require(_0x7956('0x3'));var express=require(_0x7956('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x7956('0x5'));var interaction=require(_0x7956('0x6'));var config=require('../../config/environment');var controller=require(_0x7956('0x7'));router['get']('/',auth[_0x7956('0x8')](),controller['index']);router[_0x7956('0x9')](_0x7956('0xa'),auth['isAuthenticated'](),controller[_0x7956('0xb')]);router['post']('/',auth[_0x7956('0x8')](),controller[_0x7956('0xc')]);router['put'](_0x7956('0xa'),auth[_0x7956('0x8')](),controller['update']);router[_0x7956('0xd')](_0x7956('0xa'),auth[_0x7956('0x8')](),controller['destroy']);module[_0x7956('0xe')]=router;