3b9d02a4000d5678d6f1b53848f6f597299b9d1e
[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 _0xb63c=['delete','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','put','update'];(function(_0x34f2c5,_0x293bf9){var _0x16a961=function(_0x1ceaad){while(--_0x1ceaad){_0x34f2c5['push'](_0x34f2c5['shift']());}};_0x16a961(++_0x293bf9);}(_0xb63c,0x76));var _0xcb63=function(_0x5aeb19,_0x3772e0){_0x5aeb19=_0x5aeb19-0x0;var _0x32dc7e=_0xb63c[_0x5aeb19];return _0x32dc7e;};'use strict';var multer=require('multer');var util=require(_0xcb63('0x0'));var path=require('path');var timeout=require(_0xcb63('0x1'));var express=require(_0xcb63('0x2'));var router=express[_0xcb63('0x3')]();var fs_extra=require(_0xcb63('0x4'));var auth=require(_0xcb63('0x5'));var interaction=require(_0xcb63('0x6'));var config=require(_0xcb63('0x7'));var controller=require(_0xcb63('0x8'));router[_0xcb63('0x9')]('/',auth[_0xcb63('0xa')](),controller[_0xcb63('0xb')]);router[_0xcb63('0x9')](_0xcb63('0xc'),auth[_0xcb63('0xa')](),controller[_0xcb63('0xd')]);router[_0xcb63('0x9')](_0xcb63('0xe'),auth[_0xcb63('0xa')](),controller[_0xcb63('0xf')]);router['get'](_0xcb63('0x10'),auth['isAuthenticated'](),controller[_0xcb63('0x11')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post']('/:id/configurations',auth[_0xcb63('0xa')](),controller['addConfiguration']);router[_0xcb63('0x12')](_0xcb63('0xc'),auth['isAuthenticated'](),controller[_0xcb63('0x13')]);router[_0xcb63('0x14')](_0xcb63('0xc'),auth[_0xcb63('0xa')](),controller[_0xcb63('0x15')]);module[_0xcb63('0x16')]=router;