Built motion from commit e781dc3c.|2.5.42
[motion2.git] / server / api / whatsappApplication / 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 _0x67b4=['../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','create','put','exports','multer','util','express','Router','../../components/interaction/service'];(function(_0x71cbf9,_0x3f994d){var _0x44d5b8=function(_0xbfd486){while(--_0xbfd486){_0x71cbf9['push'](_0x71cbf9['shift']());}};_0x44d5b8(++_0x3f994d);}(_0x67b4,0x12f));var _0x467b=function(_0x2aecb2,_0x343312){_0x2aecb2=_0x2aecb2-0x0;var _0x3ebb80=_0x67b4[_0x2aecb2];return _0x3ebb80;};'use strict';var multer=require(_0x467b('0x0'));var util=require(_0x467b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x467b('0x2'));var router=express[_0x467b('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x467b('0x4'));var config=require(_0x467b('0x5'));var controller=require(_0x467b('0x6'));router[_0x467b('0x7')]('/',auth[_0x467b('0x8')](),controller[_0x467b('0x9')]);router[_0x467b('0x7')](_0x467b('0xa'),auth[_0x467b('0x8')](),controller['show']);router['post']('/',auth[_0x467b('0x8')](),controller[_0x467b('0xb')]);router[_0x467b('0xc')](_0x467b('0xa'),auth[_0x467b('0x8')](),controller['update']);router['delete'](_0x467b('0xa'),auth[_0x467b('0x8')](),controller['destroy']);module[_0x467b('0xd')]=router;