27bf56534a51923f1ee77d823ad60cc3d9b3226e
[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 _0xb5fd=['../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','/:id','show','getConfigurations','/:id/fields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x3adaaa,_0x2d681c){var _0x5b675a=function(_0x3d9523){while(--_0x3d9523){_0x3adaaa['push'](_0x3adaaa['shift']());}};_0x5b675a(++_0x2d681c);}(_0xb5fd,0x71));var _0xdb5f=function(_0x144ec5,_0x499f0e){_0x144ec5=_0x144ec5-0x0;var _0x212a7b=_0xb5fd[_0x144ec5];return _0x212a7b;};'use strict';var multer=require('multer');var util=require(_0xdb5f('0x0'));var path=require(_0xdb5f('0x1'));var timeout=require(_0xdb5f('0x2'));var express=require(_0xdb5f('0x3'));var router=express[_0xdb5f('0x4')]();var fs_extra=require(_0xdb5f('0x5'));var auth=require(_0xdb5f('0x6'));var interaction=require(_0xdb5f('0x7'));var config=require(_0xdb5f('0x8'));var controller=require(_0xdb5f('0x9'));router[_0xdb5f('0xa')]('/',auth[_0xdb5f('0xb')](),controller['index']);router['get'](_0xdb5f('0xc'),auth[_0xdb5f('0xb')](),controller[_0xdb5f('0xd')]);router[_0xdb5f('0xa')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xdb5f('0xe')]);router[_0xdb5f('0xa')](_0xdb5f('0xf'),auth['isAuthenticated'](),controller['getFields']);router[_0xdb5f('0x10')]('/',auth[_0xdb5f('0xb')](),controller[_0xdb5f('0x11')]);router[_0xdb5f('0x10')](_0xdb5f('0x12'),auth[_0xdb5f('0xb')](),controller[_0xdb5f('0x13')]);router[_0xdb5f('0x14')](_0xdb5f('0xc'),auth[_0xdb5f('0xb')](),controller[_0xdb5f('0x15')]);router[_0xdb5f('0x16')]('/:id',auth['isAuthenticated'](),controller[_0xdb5f('0x17')]);module['exports']=router;