Built motion from commit 9d1906d1.|2.5.40
[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 _0xf380=['../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','/:id','show','getFields','post','create','/:id/configurations','addConfiguration','update','delete','destroy','util','connect-timeout','Router','fs-extra'];(function(_0xdd38e9,_0x1be68e){var _0x1b7b08=function(_0x4371b6){while(--_0x4371b6){_0xdd38e9['push'](_0xdd38e9['shift']());}};_0x1b7b08(++_0x1be68e);}(_0xf380,0xb9));var _0x0f38=function(_0x89279a,_0x4a526a){_0x89279a=_0x89279a-0x0;var _0x4f25e1=_0xf380[_0x89279a];return _0x4f25e1;};'use strict';var multer=require('multer');var util=require(_0x0f38('0x0'));var path=require('path');var timeout=require(_0x0f38('0x1'));var express=require('express');var router=express[_0x0f38('0x2')]();var fs_extra=require(_0x0f38('0x3'));var auth=require(_0x0f38('0x4'));var interaction=require(_0x0f38('0x5'));var config=require(_0x0f38('0x6'));var controller=require(_0x0f38('0x7'));router[_0x0f38('0x8')]('/',auth[_0x0f38('0x9')](),controller[_0x0f38('0xa')]);router['get'](_0x0f38('0xb'),auth[_0x0f38('0x9')](),controller[_0x0f38('0xc')]);router[_0x0f38('0x8')]('/:id/configurations',auth[_0x0f38('0x9')](),controller['getConfigurations']);router[_0x0f38('0x8')]('/:id/fields',auth[_0x0f38('0x9')](),controller[_0x0f38('0xd')]);router[_0x0f38('0xe')]('/',auth[_0x0f38('0x9')](),controller[_0x0f38('0xf')]);router[_0x0f38('0xe')](_0x0f38('0x10'),auth[_0x0f38('0x9')](),controller[_0x0f38('0x11')]);router['put'](_0x0f38('0xb'),auth[_0x0f38('0x9')](),controller[_0x0f38('0x12')]);router[_0x0f38('0x13')]('/:id',auth[_0x0f38('0x9')](),controller[_0x0f38('0x14')]);module['exports']=router;