Built motion from commit ffdca78c.|2.6.24
[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 _0xa2ba=['path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','index','/:id','show','post','put','update','delete','destroy','exports','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa2ba,0x1a1));var _0xaa2b=function(_0x58f88e,_0x70166e){_0x58f88e=_0x58f88e-0x0;var _0x3770ff=_0xa2ba[_0x58f88e];return _0x3770ff;};'use strict';var multer=require('multer');var util=require(_0xaa2b('0x0'));var path=require(_0xaa2b('0x1'));var timeout=require(_0xaa2b('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xaa2b('0x3'));var auth=require(_0xaa2b('0x4'));var interaction=require(_0xaa2b('0x5'));var config=require(_0xaa2b('0x6'));var controller=require(_0xaa2b('0x7'));router[_0xaa2b('0x8')]('/',auth[_0xaa2b('0x9')](),controller[_0xaa2b('0xa')]);router[_0xaa2b('0x8')](_0xaa2b('0xb'),auth['isAuthenticated'](),controller[_0xaa2b('0xc')]);router[_0xaa2b('0xd')]('/',auth[_0xaa2b('0x9')](),controller['create']);router[_0xaa2b('0xe')](_0xaa2b('0xb'),auth[_0xaa2b('0x9')](),controller[_0xaa2b('0xf')]);router[_0xaa2b('0x10')](_0xaa2b('0xb'),auth['isAuthenticated'](),controller[_0xaa2b('0x11')]);module[_0xaa2b('0x12')]=router;