Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / chatApplication / 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 _0x3a4e=['util','path','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated','show','put','update','destroy','exports','multer'];(function(_0x27fd6d,_0x5eba91){var _0x40c5a4=function(_0x5d651b){while(--_0x5d651b){_0x27fd6d['push'](_0x27fd6d['shift']());}};_0x40c5a4(++_0x5eba91);}(_0x3a4e,0xdf));var _0xe3a4=function(_0xee7879,_0x25c9bf){_0xee7879=_0xee7879-0x0;var _0x478649=_0x3a4e[_0xee7879];return _0x478649;};'use strict';var multer=require(_0xe3a4('0x0'));var util=require(_0xe3a4('0x1'));var path=require(_0xe3a4('0x2'));var timeout=require(_0xe3a4('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xe3a4('0x4'));var auth=require(_0xe3a4('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe3a4('0x6'));var controller=require(_0xe3a4('0x7'));router[_0xe3a4('0x8')](_0xe3a4('0x9'),auth[_0xe3a4('0xa')](),controller[_0xe3a4('0xb')]);router[_0xe3a4('0xc')](_0xe3a4('0x9'),auth[_0xe3a4('0xa')](),controller[_0xe3a4('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xe3a4('0xe')]);module[_0xe3a4('0xf')]=router;