a1059a60284b3da52323f56c144f606ef7b20bd3
[motion2.git] / server / api / intDeskAccount / 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 _0x25fa=['create','addConfiguration','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','post'];(function(_0x8fb092,_0x883290){var _0xd63883=function(_0x567d8e){while(--_0x567d8e){_0x8fb092['push'](_0x8fb092['shift']());}};_0xd63883(++_0x883290);}(_0x25fa,0x109));var _0xa25f=function(_0x301805,_0x54808c){_0x301805=_0x301805-0x0;var _0x22c58e=_0x25fa[_0x301805];return _0x22c58e;};'use strict';var multer=require(_0xa25f('0x0'));var util=require('util');var path=require(_0xa25f('0x1'));var timeout=require(_0xa25f('0x2'));var express=require('express');var router=express[_0xa25f('0x3')]();var auth=require(_0xa25f('0x4'));var interaction=require(_0xa25f('0x5'));var config=require('../../config/environment');var controller=require('./intDeskAccount.controller');router[_0xa25f('0x6')]('/',auth['isAuthenticated'](),controller[_0xa25f('0x7')]);router[_0xa25f('0x6')](_0xa25f('0x8'),auth[_0xa25f('0x9')](),controller[_0xa25f('0xa')]);router[_0xa25f('0x6')](_0xa25f('0xb'),auth[_0xa25f('0x9')](),controller[_0xa25f('0xc')]);router['get'](_0xa25f('0xd'),auth[_0xa25f('0x9')](),controller['getFields']);router[_0xa25f('0xe')]('/',auth[_0xa25f('0x9')](),controller[_0xa25f('0xf')]);router[_0xa25f('0xe')]('/:id/configurations',auth[_0xa25f('0x9')](),controller[_0xa25f('0x10')]);router['put'](_0xa25f('0x8'),auth[_0xa25f('0x9')](),controller['update']);router[_0xa25f('0x11')](_0xa25f('0x8'),auth[_0xa25f('0x9')](),controller[_0xa25f('0x12')]);module[_0xa25f('0x13')]=router;