0aac672654b48297670bf744a06183016f37dba7
[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 _0xf3cc=['Router','../../components/auth/service','../../components/interaction/service','./intDeskAccount.controller','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','delete','exports','multer','util','path','connect-timeout'];(function(_0x4b6778,_0x505a76){var _0x22dbb9=function(_0x4881eb){while(--_0x4881eb){_0x4b6778['push'](_0x4b6778['shift']());}};_0x22dbb9(++_0x505a76);}(_0xf3cc,0x10d));var _0xcf3c=function(_0x332684,_0x4c5b5b){_0x332684=_0x332684-0x0;var _0x42c520=_0xf3cc[_0x332684];return _0x42c520;};'use strict';var multer=require(_0xcf3c('0x0'));var util=require(_0xcf3c('0x1'));var path=require(_0xcf3c('0x2'));var timeout=require(_0xcf3c('0x3'));var express=require('express');var router=express[_0xcf3c('0x4')]();var auth=require(_0xcf3c('0x5'));var interaction=require(_0xcf3c('0x6'));var config=require('../../config/environment');var controller=require(_0xcf3c('0x7'));router[_0xcf3c('0x8')]('/',auth['isAuthenticated'](),controller[_0xcf3c('0x9')]);router[_0xcf3c('0x8')](_0xcf3c('0xa'),auth[_0xcf3c('0xb')](),controller[_0xcf3c('0xc')]);router[_0xcf3c('0x8')](_0xcf3c('0xd'),auth[_0xcf3c('0xb')](),controller[_0xcf3c('0xe')]);router[_0xcf3c('0x8')]('/:id/fields',auth['isAuthenticated'](),controller[_0xcf3c('0xf')]);router[_0xcf3c('0x10')]('/',auth[_0xcf3c('0xb')](),controller[_0xcf3c('0x11')]);router[_0xcf3c('0x10')](_0xcf3c('0xd'),auth[_0xcf3c('0xb')](),controller[_0xcf3c('0x12')]);router['put'](_0xcf3c('0xa'),auth[_0xcf3c('0xb')](),controller['update']);router[_0xcf3c('0x13')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xcf3c('0x14')]=router;