Built motion from commit 74d9782e.|2.6.30
[motion2.git] / server / api / intVtigerAccount / 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 _0x34e5=['fs-extra','../../components/auth/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','post','create','addConfiguration','put','update','delete','destroy','exports','util','connect-timeout','express','Router'];(function(_0x4a3dce,_0x384a2b){var _0xf7f90c=function(_0x562d87){while(--_0x562d87){_0x4a3dce['push'](_0x4a3dce['shift']());}};_0xf7f90c(++_0x384a2b);}(_0x34e5,0x172));var _0x534e=function(_0x4ffe2e,_0x580ae9){_0x4ffe2e=_0x4ffe2e-0x0;var _0x70fec9=_0x34e5[_0x4ffe2e];return _0x70fec9;};'use strict';var multer=require('multer');var util=require(_0x534e('0x0'));var path=require('path');var timeout=require(_0x534e('0x1'));var express=require(_0x534e('0x2'));var router=express[_0x534e('0x3')]();var fs_extra=require(_0x534e('0x4'));var auth=require(_0x534e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x534e('0x6'));var controller=require(_0x534e('0x7'));router[_0x534e('0x8')]('/',auth[_0x534e('0x9')](),controller[_0x534e('0xa')]);router[_0x534e('0x8')](_0x534e('0xb'),auth['isAuthenticated'](),controller[_0x534e('0xc')]);router[_0x534e('0x8')](_0x534e('0xd'),auth['isAuthenticated'](),controller['getConfigurations']);router[_0x534e('0x8')]('/:id/fields',auth[_0x534e('0x9')](),controller['getFields']);router[_0x534e('0xe')]('/',auth[_0x534e('0x9')](),controller[_0x534e('0xf')]);router['post'](_0x534e('0xd'),auth[_0x534e('0x9')](),controller[_0x534e('0x10')]);router[_0x534e('0x11')](_0x534e('0xb'),auth['isAuthenticated'](),controller[_0x534e('0x12')]);router[_0x534e('0x13')](_0x534e('0xb'),auth[_0x534e('0x9')](),controller[_0x534e('0x14')]);module[_0x534e('0x15')]=router;