Built motion from commit 5ae82ce5.|2.6.7
[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 _0xd15f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','isAuthenticated','index','/:id','show','get','/:id/fields','create','post','/:id/configurations','addConfiguration','put','delete','util','connect-timeout','express'];(function(_0x195fb9,_0x5ab5cc){var _0x2bf1c4=function(_0x55c2ca){while(--_0x55c2ca){_0x195fb9['push'](_0x195fb9['shift']());}};_0x2bf1c4(++_0x5ab5cc);}(_0xd15f,0x1a1));var _0xfd15=function(_0x1a87b3,_0x45ba68){_0x1a87b3=_0x1a87b3-0x0;var _0x37e84d=_0xd15f[_0x1a87b3];return _0x37e84d;};'use strict';var multer=require('multer');var util=require(_0xfd15('0x0'));var path=require('path');var timeout=require(_0xfd15('0x1'));var express=require(_0xfd15('0x2'));var router=express[_0xfd15('0x3')]();var fs_extra=require(_0xfd15('0x4'));var auth=require(_0xfd15('0x5'));var interaction=require(_0xfd15('0x6'));var config=require(_0xfd15('0x7'));var controller=require(_0xfd15('0x8'));router['get']('/',auth[_0xfd15('0x9')](),controller[_0xfd15('0xa')]);router['get'](_0xfd15('0xb'),auth[_0xfd15('0x9')](),controller[_0xfd15('0xc')]);router['get']('/:id/configurations',auth[_0xfd15('0x9')](),controller['getConfigurations']);router[_0xfd15('0xd')](_0xfd15('0xe'),auth[_0xfd15('0x9')](),controller['getFields']);router['post']('/',auth[_0xfd15('0x9')](),controller[_0xfd15('0xf')]);router[_0xfd15('0x10')](_0xfd15('0x11'),auth['isAuthenticated'](),controller[_0xfd15('0x12')]);router[_0xfd15('0x13')]('/:id',auth[_0xfd15('0x9')](),controller['update']);router[_0xfd15('0x14')](_0xfd15('0xb'),auth[_0xfd15('0x9')](),controller['destroy']);module['exports']=router;