c86acc5afbd160ab9cf6a47f27ae1bb4bf51f161
[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 _0x8ce3=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','exports','multer','util','connect-timeout','express','Router'];(function(_0x18d8fe,_0x3e23b6){var _0x207e53=function(_0x2a13c7){while(--_0x2a13c7){_0x18d8fe['push'](_0x18d8fe['shift']());}};_0x207e53(++_0x3e23b6);}(_0x8ce3,0xc3));var _0x38ce=function(_0x5532e1,_0x388cd1){_0x5532e1=_0x5532e1-0x0;var _0x276bb5=_0x8ce3[_0x5532e1];return _0x276bb5;};'use strict';var multer=require(_0x38ce('0x0'));var util=require(_0x38ce('0x1'));var path=require('path');var timeout=require(_0x38ce('0x2'));var express=require(_0x38ce('0x3'));var router=express[_0x38ce('0x4')]();var fs_extra=require(_0x38ce('0x5'));var auth=require(_0x38ce('0x6'));var interaction=require(_0x38ce('0x7'));var config=require(_0x38ce('0x8'));var controller=require(_0x38ce('0x9'));router['get']('/',auth[_0x38ce('0xa')](),controller[_0x38ce('0xb')]);router['get'](_0x38ce('0xc'),auth[_0x38ce('0xa')](),controller[_0x38ce('0xd')]);router['get'](_0x38ce('0xe'),auth['isAuthenticated'](),controller[_0x38ce('0xf')]);router['get'](_0x38ce('0x10'),auth[_0x38ce('0xa')](),controller[_0x38ce('0x11')]);router[_0x38ce('0x12')]('/',auth[_0x38ce('0xa')](),controller[_0x38ce('0x13')]);router[_0x38ce('0x12')](_0x38ce('0xe'),auth[_0x38ce('0xa')](),controller[_0x38ce('0x14')]);router[_0x38ce('0x15')](_0x38ce('0xc'),auth[_0x38ce('0xa')](),controller[_0x38ce('0x16')]);router[_0x38ce('0x17')](_0x38ce('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x38ce('0x18')]=router;