Built motion from commit 9d0783e6.|2.6.13
[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 _0x92cc=['addConfiguration','update','delete','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations','getFields','post'];(function(_0x341e0f,_0x4a09d0){var _0x59555a=function(_0x4343a8){while(--_0x4343a8){_0x341e0f['push'](_0x341e0f['shift']());}};_0x59555a(++_0x4a09d0);}(_0x92cc,0x17f));var _0xc92c=function(_0x452a3e,_0x1d6cc4){_0x452a3e=_0x452a3e-0x0;var _0x5bce1b=_0x92cc[_0x452a3e];return _0x5bce1b;};'use strict';var multer=require(_0xc92c('0x0'));var util=require(_0xc92c('0x1'));var path=require(_0xc92c('0x2'));var timeout=require(_0xc92c('0x3'));var express=require(_0xc92c('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xc92c('0x5'));var interaction=require(_0xc92c('0x6'));var config=require(_0xc92c('0x7'));var controller=require('./intDeskAccount.controller');router['get']('/',auth[_0xc92c('0x8')](),controller[_0xc92c('0x9')]);router[_0xc92c('0xa')](_0xc92c('0xb'),auth[_0xc92c('0x8')](),controller['show']);router[_0xc92c('0xa')](_0xc92c('0xc'),auth[_0xc92c('0x8')](),controller[_0xc92c('0xd')]);router[_0xc92c('0xa')]('/:id/fields',auth[_0xc92c('0x8')](),controller[_0xc92c('0xe')]);router[_0xc92c('0xf')]('/',auth[_0xc92c('0x8')](),controller['create']);router[_0xc92c('0xf')](_0xc92c('0xc'),auth[_0xc92c('0x8')](),controller[_0xc92c('0x10')]);router['put'](_0xc92c('0xb'),auth[_0xc92c('0x8')](),controller[_0xc92c('0x11')]);router[_0xc92c('0x12')]('/:id',auth[_0xc92c('0x8')](),controller['destroy']);module['exports']=router;