Built motion from commit ce97982f.|2.6.29
[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 _0x455e=['./chatApplication.controller','get','/:id','isAuthenticated','put','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x57356a,_0x58a92b){var _0x3e5d73=function(_0x149928){while(--_0x149928){_0x57356a['push'](_0x57356a['shift']());}};_0x3e5d73(++_0x58a92b);}(_0x455e,0x133));var _0xe455=function(_0x5c0624,_0x4f4e34){_0x5c0624=_0x5c0624-0x0;var _0x1e5533=_0x455e[_0x5c0624];return _0x1e5533;};'use strict';var multer=require(_0xe455('0x0'));var util=require(_0xe455('0x1'));var path=require(_0xe455('0x2'));var timeout=require(_0xe455('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xe455('0x4'));var auth=require(_0xe455('0x5'));var interaction=require(_0xe455('0x6'));var config=require(_0xe455('0x7'));var controller=require(_0xe455('0x8'));router[_0xe455('0x9')](_0xe455('0xa'),auth[_0xe455('0xb')](),controller['show']);router[_0xe455('0xc')](_0xe455('0xa'),auth[_0xe455('0xb')](),controller['update']);router['delete']('/:id',auth[_0xe455('0xb')](),controller[_0xe455('0xd')]);module[_0xe455('0xe')]=router;