Built motion from commit da617fac.|2.6.6
[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 _0x46f1=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./disposition.controller','isAuthenticated','/:id','show','post','create','update','destroy','exports','multer','util'];(function(_0x1018fb,_0x2342ee){var _0x45ff28=function(_0x1a1fe0){while(--_0x1a1fe0){_0x1018fb['push'](_0x1018fb['shift']());}};_0x45ff28(++_0x2342ee);}(_0x46f1,0x1da));var _0x146f=function(_0x1899d7,_0x37391e){_0x1899d7=_0x1899d7-0x0;var _0x53d454=_0x46f1[_0x1899d7];return _0x53d454;};'use strict';var multer=require(_0x146f('0x0'));var util=require(_0x146f('0x1'));var path=require('path');var timeout=require(_0x146f('0x2'));var express=require(_0x146f('0x3'));var router=express[_0x146f('0x4')]();var fs_extra=require(_0x146f('0x5'));var auth=require(_0x146f('0x6'));var interaction=require(_0x146f('0x7'));var config=require('../../config/environment');var controller=require(_0x146f('0x8'));router['get']('/',auth[_0x146f('0x9')](),controller['index']);router['get'](_0x146f('0xa'),auth[_0x146f('0x9')](),controller[_0x146f('0xb')]);router[_0x146f('0xc')]('/',auth[_0x146f('0x9')](),controller[_0x146f('0xd')]);router['put'](_0x146f('0xa'),auth[_0x146f('0x9')](),controller[_0x146f('0xe')]);router['delete'](_0x146f('0xa'),auth['isAuthenticated'](),controller[_0x146f('0xf')]);module[_0x146f('0x10')]=router;