Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / api / intVtigerField / 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 _0xae94=['./intVtigerField.controller','get','isAuthenticated','index','/:id','show','create','delete','exports','multer','connect-timeout','express','Router','fs-extra','../../config/environment'];(function(_0x16f9bf,_0x50b53d){var _0x2e54f5=function(_0xca76b1){while(--_0xca76b1){_0x16f9bf['push'](_0x16f9bf['shift']());}};_0x2e54f5(++_0x50b53d);}(_0xae94,0xdb));var _0x4ae9=function(_0xe2b770,_0x96d8c3){_0xe2b770=_0xe2b770-0x0;var _0x4f2a9a=_0xae94[_0xe2b770];return _0x4f2a9a;};'use strict';var multer=require(_0x4ae9('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x4ae9('0x1'));var express=require(_0x4ae9('0x2'));var router=express[_0x4ae9('0x3')]();var fs_extra=require(_0x4ae9('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4ae9('0x5'));var controller=require(_0x4ae9('0x6'));router[_0x4ae9('0x7')]('/',auth[_0x4ae9('0x8')](),controller[_0x4ae9('0x9')]);router['get'](_0x4ae9('0xa'),auth[_0x4ae9('0x8')](),controller[_0x4ae9('0xb')]);router['post']('/',auth[_0x4ae9('0x8')](),controller[_0x4ae9('0xc')]);router['put'](_0x4ae9('0xa'),auth[_0x4ae9('0x8')](),controller['update']);router[_0x4ae9('0xd')]('/:id',auth[_0x4ae9('0x8')](),controller['destroy']);module[_0x4ae9('0xe')]=router;