Built motion from commit 838c2833.|2.6.24
[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 _0x1ac2=['../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerField.controller','index','get','/:id','isAuthenticated','post','put','update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x58152f,_0x1324d4){var _0x13fbab=function(_0x295fa0){while(--_0x295fa0){_0x58152f['push'](_0x58152f['shift']());}};_0x13fbab(++_0x1324d4);}(_0x1ac2,0x189));var _0x21ac=function(_0x35981b,_0x11809a){_0x35981b=_0x35981b-0x0;var _0x350e7e=_0x1ac2[_0x35981b];return _0x350e7e;};'use strict';var multer=require(_0x21ac('0x0'));var util=require('util');var path=require(_0x21ac('0x1'));var timeout=require(_0x21ac('0x2'));var express=require(_0x21ac('0x3'));var router=express[_0x21ac('0x4')]();var fs_extra=require(_0x21ac('0x5'));var auth=require(_0x21ac('0x6'));var interaction=require(_0x21ac('0x7'));var config=require(_0x21ac('0x8'));var controller=require(_0x21ac('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x21ac('0xa')]);router[_0x21ac('0xb')](_0x21ac('0xc'),auth[_0x21ac('0xd')](),controller['show']);router[_0x21ac('0xe')]('/',auth[_0x21ac('0xd')](),controller['create']);router[_0x21ac('0xf')](_0x21ac('0xc'),auth['isAuthenticated'](),controller[_0x21ac('0x10')]);router[_0x21ac('0x11')](_0x21ac('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x21ac('0x12')]=router;