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