Built motion from commit (unavailable).|2.5.31
[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 _0x82a7=['Router','fs-extra','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','/:id','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x559806,_0x5a4080){var _0x4a7bdc=function(_0x1caeb8){while(--_0x1caeb8){_0x559806['push'](_0x559806['shift']());}};_0x4a7bdc(++_0x5a4080);}(_0x82a7,0x1c4));var _0x782a=function(_0x22598a,_0x44af51){_0x22598a=_0x22598a-0x0;var _0x270cac=_0x82a7[_0x22598a];return _0x270cac;};'use strict';var multer=require('multer');var util=require(_0x782a('0x0'));var path=require(_0x782a('0x1'));var timeout=require(_0x782a('0x2'));var express=require(_0x782a('0x3'));var router=express[_0x782a('0x4')]();var fs_extra=require(_0x782a('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x782a('0x6'));var config=require(_0x782a('0x7'));var controller=require(_0x782a('0x8'));router[_0x782a('0x9')]('/',auth[_0x782a('0xa')](),controller[_0x782a('0xb')]);router[_0x782a('0x9')](_0x782a('0xc'),auth[_0x782a('0xa')](),controller['show']);router[_0x782a('0x9')]('/:id/configurations',auth[_0x782a('0xa')](),controller['getConfigurations']);router['get'](_0x782a('0xd'),auth['isAuthenticated'](),controller[_0x782a('0xe')]);router[_0x782a('0xf')]('/',auth['isAuthenticated'](),controller[_0x782a('0x10')]);router['post'](_0x782a('0x11'),auth[_0x782a('0xa')](),controller[_0x782a('0x12')]);router[_0x782a('0x13')](_0x782a('0xc'),auth[_0x782a('0xa')](),controller[_0x782a('0x14')]);router[_0x782a('0x15')](_0x782a('0xc'),auth[_0x782a('0xa')](),controller[_0x782a('0x16')]);module[_0x782a('0x17')]=router;