636ff969280f62e1ed7f0d59d9559c9a26abbb12
[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 _0x2caf=['/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','exports','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated'];(function(_0x1ced72,_0x1eadc9){var _0xefb36d=function(_0x23b378){while(--_0x23b378){_0x1ced72['push'](_0x1ced72['shift']());}};_0xefb36d(++_0x1eadc9);}(_0x2caf,0x6a));var _0xf2ca=function(_0x352703,_0x19681c){_0x352703=_0x352703-0x0;var _0x13eaf2=_0x2caf[_0x352703];return _0x13eaf2;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xf2ca('0x0'));var express=require('express');var router=express[_0xf2ca('0x1')]();var auth=require(_0xf2ca('0x2'));var interaction=require(_0xf2ca('0x3'));var config=require(_0xf2ca('0x4'));var controller=require(_0xf2ca('0x5'));router[_0xf2ca('0x6')]('/',auth[_0xf2ca('0x7')](),controller['index']);router[_0xf2ca('0x6')](_0xf2ca('0x8'),auth[_0xf2ca('0x7')](),controller['show']);router['get'](_0xf2ca('0x9'),auth[_0xf2ca('0x7')](),controller[_0xf2ca('0xa')]);router[_0xf2ca('0x6')](_0xf2ca('0xb'),auth['isAuthenticated'](),controller[_0xf2ca('0xc')]);router[_0xf2ca('0xd')]('/',auth[_0xf2ca('0x7')](),controller[_0xf2ca('0xe')]);router[_0xf2ca('0xd')](_0xf2ca('0x9'),auth['isAuthenticated'](),controller[_0xf2ca('0xf')]);router[_0xf2ca('0x10')]('/:id',auth[_0xf2ca('0x7')](),controller[_0xf2ca('0x11')]);router['delete']('/:id',auth[_0xf2ca('0x7')](),controller['destroy']);module[_0xf2ca('0x12')]=router;