0d36c95c2469155429410747837f470234e44fd4
[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 _0xad8c=['getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','update','delete','destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','index','/:id','show'];(function(_0xbca1b1,_0x33f0ce){var _0x4e1686=function(_0x58a80c){while(--_0x58a80c){_0xbca1b1['push'](_0xbca1b1['shift']());}};_0x4e1686(++_0x33f0ce);}(_0xad8c,0x110));var _0xcad8=function(_0x259d17,_0x220710){_0x259d17=_0x259d17-0x0;var _0x407535=_0xad8c[_0x259d17];return _0x407535;};'use strict';var multer=require('multer');var util=require(_0xcad8('0x0'));var path=require(_0xcad8('0x1'));var timeout=require(_0xcad8('0x2'));var express=require(_0xcad8('0x3'));var router=express['Router']();var fs_extra=require(_0xcad8('0x4'));var auth=require(_0xcad8('0x5'));var interaction=require(_0xcad8('0x6'));var config=require(_0xcad8('0x7'));var controller=require(_0xcad8('0x8'));router[_0xcad8('0x9')]('/',auth[_0xcad8('0xa')](),controller[_0xcad8('0xb')]);router['get'](_0xcad8('0xc'),auth[_0xcad8('0xa')](),controller[_0xcad8('0xd')]);router[_0xcad8('0x9')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xcad8('0xe')]);router[_0xcad8('0x9')](_0xcad8('0xf'),auth[_0xcad8('0xa')](),controller[_0xcad8('0x10')]);router[_0xcad8('0x11')]('/',auth[_0xcad8('0xa')](),controller[_0xcad8('0x12')]);router['post'](_0xcad8('0x13'),auth[_0xcad8('0xa')](),controller[_0xcad8('0x14')]);router[_0xcad8('0x15')](_0xcad8('0xc'),auth[_0xcad8('0xa')](),controller[_0xcad8('0x16')]);router[_0xcad8('0x17')](_0xcad8('0xc'),auth[_0xcad8('0xa')](),controller[_0xcad8('0x18')]);module[_0xcad8('0x19')]=router;