3197f0016c8a6394a474ca6df35658d3370a502b
[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 _0xc86a=['exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','delete','destroy'];(function(_0x39f928,_0x4139ed){var _0x1a4646=function(_0x4cd277){while(--_0x4cd277){_0x39f928['push'](_0x39f928['shift']());}};_0x1a4646(++_0x4139ed);}(_0xc86a,0xf1));var _0xac86=function(_0xcfe8cc,_0xb83aeb){_0xcfe8cc=_0xcfe8cc-0x0;var _0x55ac53=_0xc86a[_0xcfe8cc];return _0x55ac53;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xac86('0x0'));var timeout=require(_0xac86('0x1'));var express=require(_0xac86('0x2'));var router=express[_0xac86('0x3')]();var fs_extra=require(_0xac86('0x4'));var auth=require(_0xac86('0x5'));var interaction=require(_0xac86('0x6'));var config=require(_0xac86('0x7'));var controller=require(_0xac86('0x8'));router[_0xac86('0x9')]('/',auth[_0xac86('0xa')](),controller[_0xac86('0xb')]);router['get'](_0xac86('0xc'),auth[_0xac86('0xa')](),controller[_0xac86('0xd')]);router['get'](_0xac86('0xe'),auth[_0xac86('0xa')](),controller['getConfigurations']);router[_0xac86('0x9')](_0xac86('0xf'),auth[_0xac86('0xa')](),controller[_0xac86('0x10')]);router[_0xac86('0x11')]('/',auth[_0xac86('0xa')](),controller[_0xac86('0x12')]);router[_0xac86('0x11')](_0xac86('0xe'),auth['isAuthenticated'](),controller[_0xac86('0x13')]);router[_0xac86('0x14')](_0xac86('0xc'),auth[_0xac86('0xa')](),controller['update']);router[_0xac86('0x15')](_0xac86('0xc'),auth[_0xac86('0xa')](),controller[_0xac86('0x16')]);module[_0xac86('0x17')]=router;