Built motion from commit 0900f080.|2.5.45
[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 _0xc113=['./intVtigerField.controller','get','isAuthenticated','/:id','post','put','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x3c6dce,_0x5424dd){var _0x1450e9=function(_0xd51b5c){while(--_0xd51b5c){_0x3c6dce['push'](_0x3c6dce['shift']());}};_0x1450e9(++_0x5424dd);}(_0xc113,0x14a));var _0x3c11=function(_0x59aeec,_0x35b0ed){_0x59aeec=_0x59aeec-0x0;var _0xb99a5a=_0xc113[_0x59aeec];return _0xb99a5a;};'use strict';var multer=require(_0x3c11('0x0'));var util=require('util');var path=require(_0x3c11('0x1'));var timeout=require(_0x3c11('0x2'));var express=require('express');var router=express[_0x3c11('0x3')]();var fs_extra=require(_0x3c11('0x4'));var auth=require(_0x3c11('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x3c11('0x6'));router[_0x3c11('0x7')]('/',auth[_0x3c11('0x8')](),controller['index']);router[_0x3c11('0x7')](_0x3c11('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x3c11('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x3c11('0xb')](_0x3c11('0x9'),auth[_0x3c11('0x8')](),controller[_0x3c11('0xc')]);router[_0x3c11('0xd')](_0x3c11('0x9'),auth['isAuthenticated'](),controller[_0x3c11('0xe')]);module[_0x3c11('0xf')]=router;