Built motion from commit 6f14c8ba.|2.6.29
[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 _0xaced=['multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','delete','destroy','exports'];(function(_0x135cd4,_0x73d928){var _0x31c5d5=function(_0xc45385){while(--_0xc45385){_0x135cd4['push'](_0x135cd4['shift']());}};_0x31c5d5(++_0x73d928);}(_0xaced,0x18c));var _0xdace=function(_0x101b10,_0x5d48e3){_0x101b10=_0x101b10-0x0;var _0x187002=_0xaced[_0x101b10];return _0x187002;};'use strict';var multer=require(_0xdace('0x0'));var util=require(_0xdace('0x1'));var path=require(_0xdace('0x2'));var timeout=require(_0xdace('0x3'));var express=require(_0xdace('0x4'));var router=express['Router']();var fs_extra=require(_0xdace('0x5'));var auth=require(_0xdace('0x6'));var interaction=require(_0xdace('0x7'));var config=require(_0xdace('0x8'));var controller=require('./intVtigerAccount.controller');router[_0xdace('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xdace('0x9')](_0xdace('0xa'),auth[_0xdace('0xb')](),controller[_0xdace('0xc')]);router['get']('/:id/configurations',auth[_0xdace('0xb')](),controller[_0xdace('0xd')]);router[_0xdace('0x9')](_0xdace('0xe'),auth['isAuthenticated'](),controller[_0xdace('0xf')]);router[_0xdace('0x10')]('/',auth[_0xdace('0xb')](),controller[_0xdace('0x11')]);router['post'](_0xdace('0x12'),auth[_0xdace('0xb')](),controller['addConfiguration']);router['put']('/:id',auth[_0xdace('0xb')](),controller['update']);router[_0xdace('0x13')](_0xdace('0xa'),auth[_0xdace('0xb')](),controller[_0xdace('0x14')]);module[_0xdace('0x15')]=router;