Built motion from commit 1fa89557.|2.6.10
[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 _0x8072=['index','/:id','show','/:id/configurations','getConfigurations','get','/:id/fields','getFields','post','create','addConfiguration','update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0x8072,0x100));var _0x2807=function(_0x28947d,_0x4cc9c6){_0x28947d=_0x28947d-0x0;var _0x12d2ee=_0x8072[_0x28947d];return _0x12d2ee;};'use strict';var multer=require('multer');var util=require(_0x2807('0x0'));var path=require(_0x2807('0x1'));var timeout=require(_0x2807('0x2'));var express=require(_0x2807('0x3'));var router=express[_0x2807('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x2807('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x2807('0x6'));var controller=require('./intDeskAccount.controller');router['get']('/',auth[_0x2807('0x7')](),controller[_0x2807('0x8')]);router['get'](_0x2807('0x9'),auth[_0x2807('0x7')](),controller[_0x2807('0xa')]);router['get'](_0x2807('0xb'),auth[_0x2807('0x7')](),controller[_0x2807('0xc')]);router[_0x2807('0xd')](_0x2807('0xe'),auth[_0x2807('0x7')](),controller[_0x2807('0xf')]);router[_0x2807('0x10')]('/',auth[_0x2807('0x7')](),controller[_0x2807('0x11')]);router[_0x2807('0x10')](_0x2807('0xb'),auth[_0x2807('0x7')](),controller[_0x2807('0x12')]);router['put'](_0x2807('0x9'),auth[_0x2807('0x7')](),controller[_0x2807('0x13')]);router['delete'](_0x2807('0x9'),auth[_0x2807('0x7')](),controller[_0x2807('0x14')]);module[_0x2807('0x15')]=router;