Built motion from commit (unavailable).|2.5.22
[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 _0xa481=['create','post','exports','multer','path','Router','../../components/auth/service','../../components/interaction/service','./intDeskAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa481,0x153));var _0x1a48=function(_0x33bd6d,_0xe5376d){_0x33bd6d=_0x33bd6d-0x0;var _0x21845f=_0xa481[_0x33bd6d];return _0x21845f;};'use strict';var multer=require(_0x1a48('0x0'));var util=require('util');var path=require(_0x1a48('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x1a48('0x2')]();var auth=require(_0x1a48('0x3'));var interaction=require(_0x1a48('0x4'));var config=require('../../config/environment');var controller=require(_0x1a48('0x5'));router[_0x1a48('0x6')]('/',auth['isAuthenticated'](),controller[_0x1a48('0x7')]);router['get'](_0x1a48('0x8'),auth[_0x1a48('0x9')](),controller['show']);router['get'](_0x1a48('0xa'),auth['isAuthenticated'](),controller[_0x1a48('0xb')]);router[_0x1a48('0x6')](_0x1a48('0xc'),auth[_0x1a48('0x9')](),controller['getFields']);router['post']('/',auth[_0x1a48('0x9')](),controller[_0x1a48('0xd')]);router[_0x1a48('0xe')](_0x1a48('0xa'),auth[_0x1a48('0x9')](),controller['addConfiguration']);router['put']('/:id',auth[_0x1a48('0x9')](),controller['update']);router['delete'](_0x1a48('0x8'),auth[_0x1a48('0x9')](),controller['destroy']);module[_0x1a48('0xf')]=router;