bde4ee207536714fc1b45a655b03884304585a9e
[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 _0xac95=['multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./intVtigerAccount.controller','isAuthenticated','index','get','show','/:id/configurations','getConfigurations','getFields','post','addConfiguration','put','/:id','delete','destroy'];(function(_0xc7348b,_0x145880){var _0x307cec=function(_0x4f1554){while(--_0x4f1554){_0xc7348b['push'](_0xc7348b['shift']());}};_0x307cec(++_0x145880);}(_0xac95,0xa8));var _0x5ac9=function(_0x368730,_0x4dca0a){_0x368730=_0x368730-0x0;var _0x4d895c=_0xac95[_0x368730];return _0x4d895c;};'use strict';var multer=require(_0x5ac9('0x0'));var util=require(_0x5ac9('0x1'));var path=require(_0x5ac9('0x2'));var timeout=require(_0x5ac9('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x5ac9('0x4'));var auth=require(_0x5ac9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x5ac9('0x6'));var controller=require(_0x5ac9('0x7'));router['get']('/',auth[_0x5ac9('0x8')](),controller[_0x5ac9('0x9')]);router[_0x5ac9('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x5ac9('0xb')]);router[_0x5ac9('0xa')](_0x5ac9('0xc'),auth[_0x5ac9('0x8')](),controller[_0x5ac9('0xd')]);router[_0x5ac9('0xa')]('/:id/fields',auth[_0x5ac9('0x8')](),controller[_0x5ac9('0xe')]);router['post']('/',auth[_0x5ac9('0x8')](),controller['create']);router[_0x5ac9('0xf')]('/:id/configurations',auth[_0x5ac9('0x8')](),controller[_0x5ac9('0x10')]);router[_0x5ac9('0x11')](_0x5ac9('0x12'),auth['isAuthenticated'](),controller['update']);router[_0x5ac9('0x13')]('/:id',auth[_0x5ac9('0x8')](),controller[_0x5ac9('0x14')]);module['exports']=router;