Built motion from commit (unavailable).|2.5.6
[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 _0x86ff=['../../config/environment','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service'];(function(_0x1f9f37,_0x18776e){var _0x21c080=function(_0x4acb93){while(--_0x4acb93){_0x1f9f37['push'](_0x1f9f37['shift']());}};_0x21c080(++_0x18776e);}(_0x86ff,0x174));var _0xf86f=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x86ff[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0xf86f('0x0'));var util=require(_0xf86f('0x1'));var path=require('path');var timeout=require(_0xf86f('0x2'));var express=require(_0xf86f('0x3'));var router=express[_0xf86f('0x4')]();var auth=require(_0xf86f('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf86f('0x6'));var controller=require('./intVtigerField.controller');router[_0xf86f('0x7')]('/',auth[_0xf86f('0x8')](),controller[_0xf86f('0x9')]);router['get']('/:id',auth[_0xf86f('0x8')](),controller[_0xf86f('0xa')]);router[_0xf86f('0xb')]('/',auth[_0xf86f('0x8')](),controller[_0xf86f('0xc')]);router[_0xf86f('0xd')](_0xf86f('0xe'),auth[_0xf86f('0x8')](),controller[_0xf86f('0xf')]);router[_0xf86f('0x10')](_0xf86f('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0xf86f('0x11')]=router;