8dc5eebc4802acc3977d717b8803ffdacaf28b3d
[motion2.git] / server / api / whatsappAccount / 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 _0x1c9a=['post','create','addDisposition','addAnswer','/:id/applications','notify','/:id/send','send','put','/:id','update','delete','destroy','removeDispositions','removeAgents','exports','multer','path','express','Router','../../components/auth/service','../../config/environment','./whatsappAccount.controller','get','isAuthenticated','describe','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','getApplications'];(function(_0x7c3c27,_0x16c034){var _0x4a2c4b=function(_0x293b82){while(--_0x293b82){_0x7c3c27['push'](_0x7c3c27['shift']());}};_0x4a2c4b(++_0x16c034);}(_0x1c9a,0x98));var _0xa1c9=function(_0x5f53f6,_0x91157e){_0x5f53f6=_0x5f53f6-0x0;var _0xb8628=_0x1c9a[_0x5f53f6];return _0xb8628;};'use strict';var multer=require(_0xa1c9('0x0'));var util=require('util');var path=require(_0xa1c9('0x1'));var timeout=require('connect-timeout');var express=require(_0xa1c9('0x2'));var router=express[_0xa1c9('0x3')]();var auth=require(_0xa1c9('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xa1c9('0x5'));var controller=require(_0xa1c9('0x6'));router[_0xa1c9('0x7')]('/',auth[_0xa1c9('0x8')](),controller['index']);router[_0xa1c9('0x7')]('/describe',auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x9')]);router[_0xa1c9('0x7')]('/:id',auth[_0xa1c9('0x8')](),controller[_0xa1c9('0xa')]);router[_0xa1c9('0x7')](_0xa1c9('0xb'),auth['isAuthenticated'](),controller[_0xa1c9('0xc')]);router[_0xa1c9('0x7')](_0xa1c9('0xd'),auth[_0xa1c9('0x8')](),controller[_0xa1c9('0xe')]);router[_0xa1c9('0x7')](_0xa1c9('0xf'),auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x10')]);router[_0xa1c9('0x7')]('/:id/applications',auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x11')]);router[_0xa1c9('0x12')]('/',auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x13')]);router['post'](_0xa1c9('0xb'),auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x14')]);router[_0xa1c9('0x12')](_0xa1c9('0xd'),auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x15')]);router[_0xa1c9('0x12')](_0xa1c9('0xf'),auth[_0xa1c9('0x8')](),controller['addAgents']);router[_0xa1c9('0x12')](_0xa1c9('0x16'),auth[_0xa1c9('0x8')](),controller['addApplications']);router[_0xa1c9('0x12')]('/:id/notify',controller[_0xa1c9('0x17')]);router[_0xa1c9('0x12')](_0xa1c9('0x18'),auth['isAuthenticated'](),controller[_0xa1c9('0x19')]);router[_0xa1c9('0x1a')](_0xa1c9('0x1b'),auth['isAuthenticated'](),controller[_0xa1c9('0x1c')]);router[_0xa1c9('0x1d')]('/:id',auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x1e')]);router[_0xa1c9('0x1d')]('/:id/dispositions',auth[_0xa1c9('0x8')](),controller[_0xa1c9('0x1f')]);router[_0xa1c9('0x1d')](_0xa1c9('0xd'),auth[_0xa1c9('0x8')](),controller['removeAnswers']);router['delete'](_0xa1c9('0xf'),auth['isAuthenticated'](),controller[_0xa1c9('0x20')]);module[_0xa1c9('0x21')]=router;