8582ed58473b812d1c4dafeaf44f436064645a2c
[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 _0xc950=['../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','post','addConfiguration','update','delete','destroy','exports','multer','express','Router','../../components/auth/service'];(function(_0x87eee5,_0x581852){var _0x17e2dc=function(_0x1122d2){while(--_0x1122d2){_0x87eee5['push'](_0x87eee5['shift']());}};_0x17e2dc(++_0x581852);}(_0xc950,0x1ea));var _0x0c95=function(_0x263c47,_0x5f3c26){_0x263c47=_0x263c47-0x0;var _0x539e50=_0xc950[_0x263c47];return _0x539e50;};'use strict';var multer=require(_0x0c95('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x0c95('0x1'));var router=express[_0x0c95('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x0c95('0x3'));var interaction=require(_0x0c95('0x4'));var config=require(_0x0c95('0x5'));var controller=require(_0x0c95('0x6'));router[_0x0c95('0x7')]('/',auth[_0x0c95('0x8')](),controller['index']);router[_0x0c95('0x7')](_0x0c95('0x9'),auth[_0x0c95('0x8')](),controller[_0x0c95('0xa')]);router[_0x0c95('0x7')](_0x0c95('0xb'),auth['isAuthenticated'](),controller[_0x0c95('0xc')]);router[_0x0c95('0x7')]('/:id/fields',auth[_0x0c95('0x8')](),controller['getFields']);router[_0x0c95('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x0c95('0xd')](_0x0c95('0xb'),auth[_0x0c95('0x8')](),controller[_0x0c95('0xe')]);router['put'](_0x0c95('0x9'),auth[_0x0c95('0x8')](),controller[_0x0c95('0xf')]);router[_0x0c95('0x10')]('/:id',auth[_0x0c95('0x8')](),controller[_0x0c95('0x11')]);module[_0x0c95('0x12')]=router;