Built motion from commit d1eab355.|2.6.28
[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 _0x9bad=['../../components/interaction/service','./whatsappApplication.controller','get','isAuthenticated','index','show','/:id','exports','multer','path','connect-timeout','Router'];(function(_0x5f309e,_0x66e31){var _0x487b5e=function(_0x44f203){while(--_0x44f203){_0x5f309e['push'](_0x5f309e['shift']());}};_0x487b5e(++_0x66e31);}(_0x9bad,0x110));var _0xd9ba=function(_0x487a38,_0x44382){_0x487a38=_0x487a38-0x0;var _0x1031e9=_0x9bad[_0x487a38];return _0x1031e9;};'use strict';var multer=require(_0xd9ba('0x0'));var util=require('util');var path=require(_0xd9ba('0x1'));var timeout=require(_0xd9ba('0x2'));var express=require('express');var router=express[_0xd9ba('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xd9ba('0x4'));var config=require('../../config/environment');var controller=require(_0xd9ba('0x5'));router[_0xd9ba('0x6')]('/',auth[_0xd9ba('0x7')](),controller[_0xd9ba('0x8')]);router[_0xd9ba('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xd9ba('0x9')]);router['post']('/',auth[_0xd9ba('0x7')](),controller['create']);router['put'](_0xd9ba('0xa'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xd9ba('0xa'),auth[_0xd9ba('0x7')](),controller['destroy']);module[_0xd9ba('0xb')]=router;