Built motion from commit 56b8093a.|2.6.29
[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 _0x6aa9=['update','destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./intVtigerField.controller','isAuthenticated','index','get','post','create','put','/:id'];(function(_0x4685a,_0x36b41d){var _0x333507=function(_0x342f60){while(--_0x342f60){_0x4685a['push'](_0x4685a['shift']());}};_0x333507(++_0x36b41d);}(_0x6aa9,0xed));var _0x96aa=function(_0x4914ea,_0xb7ea91){_0x4914ea=_0x4914ea-0x0;var _0x13e98c=_0x6aa9[_0x4914ea];return _0x13e98c;};'use strict';var multer=require('multer');var util=require(_0x96aa('0x0'));var path=require(_0x96aa('0x1'));var timeout=require(_0x96aa('0x2'));var express=require(_0x96aa('0x3'));var router=express['Router']();var fs_extra=require(_0x96aa('0x4'));var auth=require(_0x96aa('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x96aa('0x6'));var controller=require(_0x96aa('0x7'));router['get']('/',auth[_0x96aa('0x8')](),controller[_0x96aa('0x9')]);router[_0x96aa('0xa')]('/:id',auth[_0x96aa('0x8')](),controller['show']);router[_0x96aa('0xb')]('/',auth[_0x96aa('0x8')](),controller[_0x96aa('0xc')]);router[_0x96aa('0xd')](_0x96aa('0xe'),auth[_0x96aa('0x8')](),controller[_0x96aa('0xf')]);router['delete'](_0x96aa('0xe'),auth[_0x96aa('0x8')](),controller[_0x96aa('0x10')]);module[_0x96aa('0x11')]=router;