Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / disposition / 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 _0x734e=['path','express','Router','../../components/auth/service','../../components/interaction/service','./disposition.controller','get','isAuthenticated','/:id','create','put','delete','destroy','exports','multer','util'];(function(_0x1663ae,_0x10484a){var _0x30ffb8=function(_0x21e006){while(--_0x21e006){_0x1663ae['push'](_0x1663ae['shift']());}};_0x30ffb8(++_0x10484a);}(_0x734e,0x1be));var _0xe734=function(_0x3725ee,_0x543bd9){_0x3725ee=_0x3725ee-0x0;var _0x399c71=_0x734e[_0x3725ee];return _0x399c71;};'use strict';var multer=require(_0xe734('0x0'));var util=require(_0xe734('0x1'));var path=require(_0xe734('0x2'));var timeout=require('connect-timeout');var express=require(_0xe734('0x3'));var router=express[_0xe734('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xe734('0x5'));var interaction=require(_0xe734('0x6'));var config=require('../../config/environment');var controller=require(_0xe734('0x7'));router[_0xe734('0x8')]('/',auth[_0xe734('0x9')](),controller['index']);router[_0xe734('0x8')](_0xe734('0xa'),auth[_0xe734('0x9')](),controller['show']);router['post']('/',auth[_0xe734('0x9')](),controller[_0xe734('0xb')]);router[_0xe734('0xc')](_0xe734('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xe734('0xd')](_0xe734('0xa'),auth[_0xe734('0x9')](),controller[_0xe734('0xe')]);module[_0xe734('0xf')]=router;