Built motion from commit 96f8de6d.|2.6.3
[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 _0x04f1=['delete','destroy','exports','util','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','/:id','show','put','update'];(function(_0x2e4176,_0x4905e0){var _0x7f7d28=function(_0x2c6ece){while(--_0x2c6ece){_0x2e4176['push'](_0x2e4176['shift']());}};_0x7f7d28(++_0x4905e0);}(_0x04f1,0x15c));var _0x104f=function(_0x3bbef0,_0x44b26e){_0x3bbef0=_0x3bbef0-0x0;var _0x250671=_0x04f1[_0x3bbef0];return _0x250671;};'use strict';var multer=require('multer');var util=require(_0x104f('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x104f('0x1'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x104f('0x2'));var interaction=require(_0x104f('0x3'));var config=require(_0x104f('0x4'));var controller=require(_0x104f('0x5'));router[_0x104f('0x6')]('/',auth[_0x104f('0x7')](),controller['index']);router['get'](_0x104f('0x8'),auth['isAuthenticated'](),controller[_0x104f('0x9')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x104f('0xa')](_0x104f('0x8'),auth[_0x104f('0x7')](),controller[_0x104f('0xb')]);router[_0x104f('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x104f('0xd')]);module[_0x104f('0xe')]=router;