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