Built motion from commit 4d4d9a88.|2.6.26
[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 _0xb56a=['express','../../components/auth/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','show','post','put','update','delete','exports','multer','util','path'];(function(_0x2c1841,_0x505204){var _0x28d148=function(_0x5be79f){while(--_0x5be79f){_0x2c1841['push'](_0x2c1841['shift']());}};_0x28d148(++_0x505204);}(_0xb56a,0xfc));var _0xab56=function(_0x565ed7,_0x398228){_0x565ed7=_0x565ed7-0x0;var _0x183ad7=_0xb56a[_0x565ed7];return _0x183ad7;};'use strict';var multer=require(_0xab56('0x0'));var util=require(_0xab56('0x1'));var path=require(_0xab56('0x2'));var timeout=require('connect-timeout');var express=require(_0xab56('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xab56('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xab56('0x5'));var controller=require(_0xab56('0x6'));router[_0xab56('0x7')]('/',auth[_0xab56('0x8')](),controller[_0xab56('0x9')]);router[_0xab56('0x7')](_0xab56('0xa'),auth[_0xab56('0x8')](),controller[_0xab56('0xb')]);router[_0xab56('0xc')]('/',auth[_0xab56('0x8')](),controller['create']);router[_0xab56('0xd')](_0xab56('0xa'),auth[_0xab56('0x8')](),controller[_0xab56('0xe')]);router[_0xab56('0xf')](_0xab56('0xa'),auth[_0xab56('0x8')](),controller['destroy']);module[_0xab56('0x10')]=router;