1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xfc14=['/:id/dispositions','getDispositions','/:id/canned_answers','/:id/users','/:id/applications','getApplications','post','create','addDisposition','addAnswer','addAgents','/:id/notify','/:id/send','send','update','delete','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x3b07d7,_0x374e44){var _0x2a9b53=function(_0x11a0e5){while(--_0x11a0e5){_0x3b07d7['push'](_0x3b07d7['shift']());}};_0x2a9b53(++_0x374e44);}(_0xfc14,0x7a));var _0x4fc1=function(_0x2054f5,_0x28cf67){_0x2054f5=_0x2054f5-0x0;var _0x2f8a4d=_0xfc14[_0x2054f5];return _0x2f8a4d;};'use strict';var multer=require(_0x4fc1('0x0'));var util=require(_0x4fc1('0x1'));var path=require(_0x4fc1('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4fc1('0x3')]();var fs_extra=require(_0x4fc1('0x4'));var auth=require(_0x4fc1('0x5'));var interaction=require(_0x4fc1('0x6'));var config=require('../../config/environment');var controller=require('./whatsappAccount.controller');router[_0x4fc1('0x7')]('/',auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x9')]);router['get'](_0x4fc1('0xa'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0xb')]);router[_0x4fc1('0x7')](_0x4fc1('0xc'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0xd')]);router[_0x4fc1('0x7')](_0x4fc1('0xe'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0xf')]);router[_0x4fc1('0x7')](_0x4fc1('0x10'),auth['isAuthenticated'](),controller['getAnswers']);router[_0x4fc1('0x7')](_0x4fc1('0x11'),auth[_0x4fc1('0x8')](),controller['getAgents']);router[_0x4fc1('0x7')](_0x4fc1('0x12'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x13')]);router[_0x4fc1('0x14')]('/',auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x15')]);router['post'](_0x4fc1('0xe'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x16')]);router[_0x4fc1('0x14')]('/:id/canned_answers',auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x17')]);router[_0x4fc1('0x14')](_0x4fc1('0x11'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x18')]);router[_0x4fc1('0x14')](_0x4fc1('0x12'),auth['isAuthenticated'](),controller['addApplications']);router['post'](_0x4fc1('0x19'),controller['notify']);router[_0x4fc1('0x14')](_0x4fc1('0x1a'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x1b')]);router['put'](_0x4fc1('0xc'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x1c')]);router[_0x4fc1('0x1d')](_0x4fc1('0xc'),auth[_0x4fc1('0x8')](),controller['destroy']);router[_0x4fc1('0x1d')](_0x4fc1('0xe'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x1e')]);router[_0x4fc1('0x1d')](_0x4fc1('0x10'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x1f')]);router[_0x4fc1('0x1d')](_0x4fc1('0x11'),auth[_0x4fc1('0x8')](),controller[_0x4fc1('0x20')]);module[_0x4fc1('0x21')]=router;