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