c2ea5d04c3c2a6ec79da8ab32f29c450dc1eaa27
[motion2.git] / server / api / intDeskField / 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 _0xd85c=['update','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','./intDeskField.controller','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x2a7210,_0x2f3d23){var _0x460766=function(_0xd575dd){while(--_0xd575dd){_0x2a7210['push'](_0x2a7210['shift']());}};_0x460766(++_0x2f3d23);}(_0xd85c,0x8a));var _0xcd85=function(_0x4d9e69,_0x40c6cc){_0x4d9e69=_0x4d9e69-0x0;var _0x3ad920=_0xd85c[_0x4d9e69];return _0x3ad920;};'use strict';var multer=require(_0xcd85('0x0'));var util=require('util');var path=require(_0xcd85('0x1'));var timeout=require('connect-timeout');var express=require(_0xcd85('0x2'));var router=express[_0xcd85('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xcd85('0x4'));var interaction=require(_0xcd85('0x5'));var config=require('../../config/environment');var controller=require(_0xcd85('0x6'));router[_0xcd85('0x7')]('/',auth[_0xcd85('0x8')](),controller[_0xcd85('0x9')]);router[_0xcd85('0x7')](_0xcd85('0xa'),auth[_0xcd85('0x8')](),controller[_0xcd85('0xb')]);router[_0xcd85('0xc')]('/',auth[_0xcd85('0x8')](),controller[_0xcd85('0xd')]);router[_0xcd85('0xe')](_0xcd85('0xa'),auth[_0xcd85('0x8')](),controller[_0xcd85('0xf')]);router['delete'](_0xcd85('0xa'),auth[_0xcd85('0x8')](),controller['destroy']);module[_0xcd85('0x10')]=router;