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