Built motion from commit (unavailable).|2.4.18
[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 _0xa3e6=['exports','multer','path','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','getConfigurations','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xa3e6,0xbe));var _0x6a3e=function(_0x49fa38,_0x5190c5){_0x49fa38=_0x49fa38-0x0;var _0x84d941=_0xa3e6[_0x49fa38];return _0x84d941;};'use strict';var multer=require(_0x6a3e('0x0'));var util=require('util');var path=require(_0x6a3e('0x1'));var timeout=require('connect-timeout');var express=require(_0x6a3e('0x2'));var router=express[_0x6a3e('0x3')]();var auth=require(_0x6a3e('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6a3e('0x5'));var controller=require('./intDeskAccount.controller');router[_0x6a3e('0x6')]('/',auth[_0x6a3e('0x7')](),controller[_0x6a3e('0x8')]);router[_0x6a3e('0x6')](_0x6a3e('0x9'),auth['isAuthenticated'](),controller[_0x6a3e('0xa')]);router[_0x6a3e('0x6')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x6a3e('0xb')]);router['get']('/:id/fields',auth[_0x6a3e('0x7')](),controller['getFields']);router[_0x6a3e('0xc')]('/',auth['isAuthenticated'](),controller[_0x6a3e('0xd')]);router[_0x6a3e('0xc')](_0x6a3e('0xe'),auth[_0x6a3e('0x7')](),controller[_0x6a3e('0xf')]);router[_0x6a3e('0x10')]('/:id',auth[_0x6a3e('0x7')](),controller[_0x6a3e('0x11')]);router[_0x6a3e('0x12')](_0x6a3e('0x9'),auth[_0x6a3e('0x7')](),controller[_0x6a3e('0x13')]);module[_0x6a3e('0x14')]=router;