Built motion from commit 3c2ce842.|2.6.31
[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 _0x5cdb=['util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','delete','exports','multer'];(function(_0x547e1d,_0x213e23){var _0x31cd5c=function(_0x232f77){while(--_0x232f77){_0x547e1d['push'](_0x547e1d['shift']());}};_0x31cd5c(++_0x213e23);}(_0x5cdb,0xc2));var _0xb5cd=function(_0x779b4d,_0x1ad17f){_0x779b4d=_0x779b4d-0x0;var _0x14447e=_0x5cdb[_0x779b4d];return _0x14447e;};'use strict';var multer=require(_0xb5cd('0x0'));var util=require(_0xb5cd('0x1'));var path=require(_0xb5cd('0x2'));var timeout=require(_0xb5cd('0x3'));var express=require(_0xb5cd('0x4'));var router=express[_0xb5cd('0x5')]();var fs_extra=require(_0xb5cd('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xb5cd('0x7'));var config=require(_0xb5cd('0x8'));var controller=require('./intVtigerField.controller');router['get']('/',auth[_0xb5cd('0x9')](),controller['index']);router[_0xb5cd('0xa')](_0xb5cd('0xb'),auth[_0xb5cd('0x9')](),controller[_0xb5cd('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xb5cd('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xb5cd('0xd')](_0xb5cd('0xb'),auth[_0xb5cd('0x9')](),controller['destroy']);module[_0xb5cd('0xe')]=router;