d40e3c9380902810885442937f3ab1ab90eecb2f
[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 _0x4bc6=['isAuthenticated','/describe','describe','/:id','/:id/dispositions','/:id/applications','post','addAnswer','/:id/users','addAgents','addApplications','/:id/notify','notify','/:id/send','send','put','delete','destroy','removeDispositions','/:id/canned_answers','removeAnswers','removeAgents','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','get'];(function(_0x450b86,_0x5e85ce){var _0x2f2b45=function(_0x203667){while(--_0x203667){_0x450b86['push'](_0x450b86['shift']());}};_0x2f2b45(++_0x5e85ce);}(_0x4bc6,0x157));var _0x64bc=function(_0x4ff09b,_0x53f67d){_0x4ff09b=_0x4ff09b-0x0;var _0x3f5c2e=_0x4bc6[_0x4ff09b];return _0x3f5c2e;};'use strict';var multer=require(_0x64bc('0x0'));var util=require(_0x64bc('0x1'));var path=require('path');var timeout=require(_0x64bc('0x2'));var express=require(_0x64bc('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x64bc('0x4'));var interaction=require(_0x64bc('0x5'));var config=require(_0x64bc('0x6'));var controller=require(_0x64bc('0x7'));router[_0x64bc('0x8')]('/',auth[_0x64bc('0x9')](),controller['index']);router[_0x64bc('0x8')](_0x64bc('0xa'),auth['isAuthenticated'](),controller[_0x64bc('0xb')]);router[_0x64bc('0x8')](_0x64bc('0xc'),auth[_0x64bc('0x9')](),controller['show']);router[_0x64bc('0x8')](_0x64bc('0xd'),auth[_0x64bc('0x9')](),controller['getDispositions']);router['get']('/:id/canned_answers',auth[_0x64bc('0x9')](),controller['getAnswers']);router[_0x64bc('0x8')]('/:id/users',auth[_0x64bc('0x9')](),controller['getAgents']);router[_0x64bc('0x8')](_0x64bc('0xe'),auth[_0x64bc('0x9')](),controller['getApplications']);router[_0x64bc('0xf')]('/',auth[_0x64bc('0x9')](),controller['create']);router[_0x64bc('0xf')](_0x64bc('0xd'),auth[_0x64bc('0x9')](),controller['addDisposition']);router[_0x64bc('0xf')]('/:id/canned_answers',auth[_0x64bc('0x9')](),controller[_0x64bc('0x10')]);router['post'](_0x64bc('0x11'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x12')]);router[_0x64bc('0xf')](_0x64bc('0xe'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x13')]);router['post'](_0x64bc('0x14'),controller[_0x64bc('0x15')]);router[_0x64bc('0xf')](_0x64bc('0x16'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x17')]);router[_0x64bc('0x18')](_0x64bc('0xc'),auth[_0x64bc('0x9')](),controller['update']);router[_0x64bc('0x19')](_0x64bc('0xc'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x1a')]);router['delete'](_0x64bc('0xd'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x1b')]);router[_0x64bc('0x19')](_0x64bc('0x1c'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x1d')]);router[_0x64bc('0x19')](_0x64bc('0x11'),auth[_0x64bc('0x9')](),controller[_0x64bc('0x1e')]);module[_0x64bc('0x1f')]=router;