b510f0ce918bb83e5f1e5a93426af206f3592bbb
[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 _0x03f2=['update','destroy','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','create','post','addConfiguration'];(function(_0x565ed7,_0x398228){var _0x183ad7=function(_0x5a43d7){while(--_0x5a43d7){_0x565ed7['push'](_0x565ed7['shift']());}};_0x183ad7(++_0x398228);}(_0x03f2,0x191));var _0x203f=function(_0x1bcb80,_0x3b9357){_0x1bcb80=_0x1bcb80-0x0;var _0x392977=_0x03f2[_0x1bcb80];return _0x392977;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x203f('0x0'));var timeout=require(_0x203f('0x1'));var express=require(_0x203f('0x2'));var router=express[_0x203f('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x203f('0x4'));var config=require(_0x203f('0x5'));var controller=require(_0x203f('0x6'));router[_0x203f('0x7')]('/',auth['isAuthenticated'](),controller[_0x203f('0x8')]);router[_0x203f('0x7')](_0x203f('0x9'),auth[_0x203f('0xa')](),controller[_0x203f('0xb')]);router[_0x203f('0x7')](_0x203f('0xc'),auth[_0x203f('0xa')](),controller[_0x203f('0xd')]);router[_0x203f('0x7')](_0x203f('0xe'),auth[_0x203f('0xa')](),controller[_0x203f('0xf')]);router['post']('/',auth[_0x203f('0xa')](),controller[_0x203f('0x10')]);router[_0x203f('0x11')](_0x203f('0xc'),auth[_0x203f('0xa')](),controller[_0x203f('0x12')]);router['put'](_0x203f('0x9'),auth[_0x203f('0xa')](),controller[_0x203f('0x13')]);router['delete'](_0x203f('0x9'),auth[_0x203f('0xa')](),controller[_0x203f('0x14')]);module['exports']=router;