Built motion from commit (unavailable).|2.5.1
[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 _0x31af=['destroy','exports','multer','util','path','Router','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','delete'];(function(_0x3c817d,_0x3e5da2){var _0x31ad74=function(_0x53b90f){while(--_0x53b90f){_0x3c817d['push'](_0x3c817d['shift']());}};_0x31ad74(++_0x3e5da2);}(_0x31af,0xde));var _0xf31a=function(_0x314eec,_0x523304){_0x314eec=_0x314eec-0x0;var _0x161f34=_0x31af[_0x314eec];return _0x161f34;};'use strict';var multer=require(_0xf31a('0x0'));var util=require(_0xf31a('0x1'));var path=require(_0xf31a('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf31a('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xf31a('0x4'));var config=require(_0xf31a('0x5'));var controller=require(_0xf31a('0x6'));router[_0xf31a('0x7')]('/',auth['isAuthenticated'](),controller[_0xf31a('0x8')]);router[_0xf31a('0x7')](_0xf31a('0x9'),auth[_0xf31a('0xa')](),controller['show']);router[_0xf31a('0x7')](_0xf31a('0xb'),auth[_0xf31a('0xa')](),controller[_0xf31a('0xc')]);router['get'](_0xf31a('0xd'),auth[_0xf31a('0xa')](),controller[_0xf31a('0xe')]);router[_0xf31a('0xf')]('/',auth[_0xf31a('0xa')](),controller['create']);router[_0xf31a('0xf')](_0xf31a('0xb'),auth[_0xf31a('0xa')](),controller[_0xf31a('0x10')]);router['put'](_0xf31a('0x9'),auth[_0xf31a('0xa')](),controller['update']);router[_0xf31a('0x11')](_0xf31a('0x9'),auth[_0xf31a('0xa')](),controller[_0xf31a('0x12')]);module[_0xf31a('0x13')]=router;