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