Built motion from commit 896e83a8.|2.6.30
[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 _0x2683=['../../config/environment','./disposition.controller','get','isAuthenticated','index','/:id','post','create','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x12fc8d,_0x19ee33){var _0x3f9d04=function(_0x52e51c){while(--_0x52e51c){_0x12fc8d['push'](_0x12fc8d['shift']());}};_0x3f9d04(++_0x19ee33);}(_0x2683,0x78));var _0x3268=function(_0x3c2166,_0x41fc16){_0x3c2166=_0x3c2166-0x0;var _0x30ccc3=_0x2683[_0x3c2166];return _0x30ccc3;};'use strict';var multer=require('multer');var util=require(_0x3268('0x0'));var path=require(_0x3268('0x1'));var timeout=require(_0x3268('0x2'));var express=require(_0x3268('0x3'));var router=express[_0x3268('0x4')]();var fs_extra=require(_0x3268('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3268('0x6'));var controller=require(_0x3268('0x7'));router[_0x3268('0x8')]('/',auth[_0x3268('0x9')](),controller[_0x3268('0xa')]);router[_0x3268('0x8')](_0x3268('0xb'),auth[_0x3268('0x9')](),controller['show']);router[_0x3268('0xc')]('/',auth[_0x3268('0x9')](),controller[_0x3268('0xd')]);router['put']('/:id',auth[_0x3268('0x9')](),controller[_0x3268('0xe')]);router[_0x3268('0xf')](_0x3268('0xb'),auth['isAuthenticated'](),controller[_0x3268('0x10')]);module[_0x3268('0x11')]=router;