ae48b7f1d5cdd018d8ea09fcde45a12913d93861
[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 _0xf566=['create','addConfiguration','put','update','delete','exports','multer','util','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','getFields','post'];(function(_0x16fb2e,_0x419d67){var _0xf5a924=function(_0x2ac4d4){while(--_0x2ac4d4){_0x16fb2e['push'](_0x16fb2e['shift']());}};_0xf5a924(++_0x419d67);}(_0xf566,0x180));var _0x6f56=function(_0x5601f8,_0x211c63){_0x5601f8=_0x5601f8-0x0;var _0x1e1901=_0xf566[_0x5601f8];return _0x1e1901;};'use strict';var multer=require(_0x6f56('0x0'));var util=require(_0x6f56('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6f56('0x2'));var router=express['Router']();var auth=require(_0x6f56('0x3'));var interaction=require(_0x6f56('0x4'));var config=require(_0x6f56('0x5'));var controller=require(_0x6f56('0x6'));router[_0x6f56('0x7')]('/',auth[_0x6f56('0x8')](),controller['index']);router[_0x6f56('0x7')](_0x6f56('0x9'),auth[_0x6f56('0x8')](),controller[_0x6f56('0xa')]);router['get'](_0x6f56('0xb'),auth['isAuthenticated'](),controller[_0x6f56('0xc')]);router[_0x6f56('0x7')]('/:id/fields',auth[_0x6f56('0x8')](),controller[_0x6f56('0xd')]);router[_0x6f56('0xe')]('/',auth[_0x6f56('0x8')](),controller[_0x6f56('0xf')]);router[_0x6f56('0xe')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x6f56('0x10')]);router[_0x6f56('0x11')](_0x6f56('0x9'),auth[_0x6f56('0x8')](),controller[_0x6f56('0x12')]);router[_0x6f56('0x13')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x6f56('0x14')]=router;