Built motion from commit 3c2ce842.|2.6.31
[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 _0x3c9b=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intDeskAccount.controller','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','update','destroy','exports','multer','path'];(function(_0x5593a1,_0x2726d1){var _0x1cf0e4=function(_0x3f2480){while(--_0x3f2480){_0x5593a1['push'](_0x5593a1['shift']());}};_0x1cf0e4(++_0x2726d1);}(_0x3c9b,0x106));var _0xb3c9=function(_0x3f61f4,_0x14d750){_0x3f61f4=_0x3f61f4-0x0;var _0x4005f6=_0x3c9b[_0x3f61f4];return _0x4005f6;};'use strict';var multer=require(_0xb3c9('0x0'));var util=require('util');var path=require(_0xb3c9('0x1'));var timeout=require(_0xb3c9('0x2'));var express=require(_0xb3c9('0x3'));var router=express[_0xb3c9('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xb3c9('0x5'));var interaction=require(_0xb3c9('0x6'));var config=require('../../config/environment');var controller=require(_0xb3c9('0x7'));router[_0xb3c9('0x8')]('/',auth['isAuthenticated'](),controller[_0xb3c9('0x9')]);router[_0xb3c9('0x8')](_0xb3c9('0xa'),auth[_0xb3c9('0xb')](),controller[_0xb3c9('0xc')]);router[_0xb3c9('0x8')](_0xb3c9('0xd'),auth[_0xb3c9('0xb')](),controller[_0xb3c9('0xe')]);router[_0xb3c9('0x8')](_0xb3c9('0xf'),auth[_0xb3c9('0xb')](),controller[_0xb3c9('0x10')]);router[_0xb3c9('0x11')]('/',auth[_0xb3c9('0xb')](),controller['create']);router[_0xb3c9('0x11')](_0xb3c9('0xd'),auth['isAuthenticated'](),controller[_0xb3c9('0x12')]);router['put'](_0xb3c9('0xa'),auth[_0xb3c9('0xb')](),controller[_0xb3c9('0x13')]);router['delete'](_0xb3c9('0xa'),auth[_0xb3c9('0xb')](),controller[_0xb3c9('0x14')]);module[_0xb3c9('0x15')]=router;