Built motion from commit (unavailable).|2.5.0
[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 _0xa7f4=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','get','isAuthenticated','/describe','describe','/:id','/:id/dispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','/:id/applications','getApplications','post','create','addAnswer','addAgents','addApplications','/:id/notify','notify','/:id/send','send','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports','multer'];(function(_0x13e968,_0x2d702a){var _0x97f2fc=function(_0x2188f2){while(--_0x2188f2){_0x13e968['push'](_0x13e968['shift']());}};_0x97f2fc(++_0x2d702a);}(_0xa7f4,0x1a1));var _0x4a7f=function(_0x3f60ff,_0x359ec1){_0x3f60ff=_0x3f60ff-0x0;var _0x45ac13=_0xa7f4[_0x3f60ff];return _0x45ac13;};'use strict';var multer=require(_0x4a7f('0x0'));var util=require(_0x4a7f('0x1'));var path=require(_0x4a7f('0x2'));var timeout=require(_0x4a7f('0x3'));var express=require(_0x4a7f('0x4'));var router=express[_0x4a7f('0x5')]();var auth=require(_0x4a7f('0x6'));var interaction=require(_0x4a7f('0x7'));var config=require(_0x4a7f('0x8'));var controller=require(_0x4a7f('0x9'));router[_0x4a7f('0xa')]('/',auth[_0x4a7f('0xb')](),controller['index']);router[_0x4a7f('0xa')](_0x4a7f('0xc'),auth['isAuthenticated'](),controller[_0x4a7f('0xd')]);router[_0x4a7f('0xa')](_0x4a7f('0xe'),auth[_0x4a7f('0xb')](),controller['show']);router[_0x4a7f('0xa')](_0x4a7f('0xf'),auth[_0x4a7f('0xb')](),controller['getDispositions']);router[_0x4a7f('0xa')](_0x4a7f('0x10'),auth[_0x4a7f('0xb')](),controller[_0x4a7f('0x11')]);router[_0x4a7f('0xa')](_0x4a7f('0x12'),auth[_0x4a7f('0xb')](),controller[_0x4a7f('0x13')]);router[_0x4a7f('0xa')](_0x4a7f('0x14'),auth['isAuthenticated'](),controller[_0x4a7f('0x15')]);router[_0x4a7f('0x16')]('/',auth[_0x4a7f('0xb')](),controller[_0x4a7f('0x17')]);router[_0x4a7f('0x16')](_0x4a7f('0xf'),auth[_0x4a7f('0xb')](),controller['addDisposition']);router[_0x4a7f('0x16')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x4a7f('0x18')]);router[_0x4a7f('0x16')](_0x4a7f('0x12'),auth['isAuthenticated'](),controller[_0x4a7f('0x19')]);router['post']('/:id/applications',auth[_0x4a7f('0xb')](),controller[_0x4a7f('0x1a')]);router[_0x4a7f('0x16')](_0x4a7f('0x1b'),controller[_0x4a7f('0x1c')]);router['post'](_0x4a7f('0x1d'),auth['isAuthenticated'](),controller[_0x4a7f('0x1e')]);router['put'](_0x4a7f('0xe'),auth[_0x4a7f('0xb')](),controller[_0x4a7f('0x1f')]);router[_0x4a7f('0x20')](_0x4a7f('0xe'),auth['isAuthenticated'](),controller[_0x4a7f('0x21')]);router[_0x4a7f('0x20')](_0x4a7f('0xf'),auth[_0x4a7f('0xb')](),controller[_0x4a7f('0x22')]);router[_0x4a7f('0x20')](_0x4a7f('0x10'),auth['isAuthenticated'](),controller[_0x4a7f('0x23')]);router[_0x4a7f('0x20')](_0x4a7f('0x12'),auth['isAuthenticated'](),controller[_0x4a7f('0x24')]);module[_0x4a7f('0x25')]=router;