52bd8e4ad8125562a408b1b34e3d7f8cb788eb53
[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 _0x06e4=['/:id/fields','getFields','post','put','delete','destroy','exports','multer','express','Router','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations'];(function(_0x45a546,_0x11b6a6){var _0x3e5eac=function(_0x2c106b){while(--_0x2c106b){_0x45a546['push'](_0x45a546['shift']());}};_0x3e5eac(++_0x11b6a6);}(_0x06e4,0xf1));var _0x406e=function(_0x208c54,_0x120a70){_0x208c54=_0x208c54-0x0;var _0x4b0116=_0x06e4[_0x208c54];return _0x4b0116;};'use strict';var multer=require(_0x406e('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x406e('0x1'));var router=express[_0x406e('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x406e('0x3'));var config=require(_0x406e('0x4'));var controller=require(_0x406e('0x5'));router[_0x406e('0x6')]('/',auth[_0x406e('0x7')](),controller[_0x406e('0x8')]);router[_0x406e('0x6')](_0x406e('0x9'),auth[_0x406e('0x7')](),controller['show']);router['get'](_0x406e('0xa'),auth[_0x406e('0x7')](),controller['getConfigurations']);router['get'](_0x406e('0xb'),auth['isAuthenticated'](),controller[_0x406e('0xc')]);router[_0x406e('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x406e('0xd')](_0x406e('0xa'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x406e('0xe')](_0x406e('0x9'),auth['isAuthenticated'](),controller['update']);router[_0x406e('0xf')](_0x406e('0x9'),auth[_0x406e('0x7')](),controller[_0x406e('0x10')]);module[_0x406e('0x11')]=router;