Built motion from commit 85328c08.|2.5.50
[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 _0x455d=['update','delete','destroy','exports','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','getFields','create','post','addConfiguration'];(function(_0x24f326,_0x616a7){var _0x488e2d=function(_0x293d9a){while(--_0x293d9a){_0x24f326['push'](_0x24f326['shift']());}};_0x488e2d(++_0x616a7);}(_0x455d,0x190));var _0xd455=function(_0x5decc1,_0x294575){_0x5decc1=_0x5decc1-0x0;var _0x4babfe=_0x455d[_0x5decc1];return _0x4babfe;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xd455('0x0'));var timeout=require(_0xd455('0x1'));var express=require(_0xd455('0x2'));var router=express['Router']();var fs_extra=require(_0xd455('0x3'));var auth=require(_0xd455('0x4'));var interaction=require(_0xd455('0x5'));var config=require(_0xd455('0x6'));var controller=require(_0xd455('0x7'));router[_0xd455('0x8')]('/',auth[_0xd455('0x9')](),controller[_0xd455('0xa')]);router[_0xd455('0x8')]('/:id',auth[_0xd455('0x9')](),controller[_0xd455('0xb')]);router['get'](_0xd455('0xc'),auth[_0xd455('0x9')](),controller[_0xd455('0xd')]);router[_0xd455('0x8')]('/:id/fields',auth[_0xd455('0x9')](),controller[_0xd455('0xe')]);router['post']('/',auth[_0xd455('0x9')](),controller[_0xd455('0xf')]);router[_0xd455('0x10')](_0xd455('0xc'),auth[_0xd455('0x9')](),controller[_0xd455('0x11')]);router['put']('/:id',auth[_0xd455('0x9')](),controller[_0xd455('0x12')]);router[_0xd455('0x13')]('/:id',auth[_0xd455('0x9')](),controller[_0xd455('0x14')]);module[_0xd455('0x15')]=router;