e02819c68c9dd6a8a0111cfe2b7538ad1e983cfa
[motion2.git] / server / api / faxAccount / 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 _0xfb7d=['../../components/interaction/service','../../config/environment','./faxAccount.controller','isAuthenticated','index','get','/describe','describe','/:id','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/interactions','getInteractions','/:id/applications','getApplications','/:id/messages','getMessages','post','create','addDisposition','addAnswer','addApplications','/addaccountapplications','addAccountApplications','/updateaccountapplications','updateAccountApplications','/:id/send','send','/:id/users','addAgents','put','update','delete','destroy','removeDispositions','removeAnswers','exports','multer','path','express','Router','fs-extra','../../components/auth/service'];(function(_0x5a776b,_0x46f785){var _0xbbef59=function(_0x38313e){while(--_0x38313e){_0x5a776b['push'](_0x5a776b['shift']());}};_0xbbef59(++_0x46f785);}(_0xfb7d,0x108));var _0xdfb7=function(_0x51e0f0,_0x497fb7){_0x51e0f0=_0x51e0f0-0x0;var _0x2c1c11=_0xfb7d[_0x51e0f0];return _0x2c1c11;};'use strict';var multer=require(_0xdfb7('0x0'));var util=require('util');var path=require(_0xdfb7('0x1'));var timeout=require('connect-timeout');var express=require(_0xdfb7('0x2'));var router=express[_0xdfb7('0x3')]();var fs_extra=require(_0xdfb7('0x4'));var auth=require(_0xdfb7('0x5'));var interaction=require(_0xdfb7('0x6'));var config=require(_0xdfb7('0x7'));var controller=require(_0xdfb7('0x8'));router['get']('/',auth[_0xdfb7('0x9')](),controller[_0xdfb7('0xa')]);router[_0xdfb7('0xb')](_0xdfb7('0xc'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0xd')]);router['get'](_0xdfb7('0xe'),auth[_0xdfb7('0x9')](),controller['show']);router[_0xdfb7('0xb')](_0xdfb7('0xf'),auth['isAuthenticated'](),controller[_0xdfb7('0x10')]);router['get'](_0xdfb7('0x11'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x12')]);router[_0xdfb7('0xb')](_0xdfb7('0x13'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x14')]);router[_0xdfb7('0xb')](_0xdfb7('0x15'),auth['isAuthenticated'](),controller[_0xdfb7('0x16')]);router[_0xdfb7('0xb')](_0xdfb7('0x17'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x18')]);router[_0xdfb7('0xb')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']);router[_0xdfb7('0x19')]('/',auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x1a')]);router[_0xdfb7('0x19')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0xdfb7('0x1b')]);router[_0xdfb7('0x19')](_0xdfb7('0x11'),auth['isAuthenticated'](),controller[_0xdfb7('0x1c')]);router['post']('/:id/interactions',auth[_0xdfb7('0x9')](),controller['addInteraction']);router[_0xdfb7('0x19')](_0xdfb7('0x15'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x1d')]);router[_0xdfb7('0x19')](_0xdfb7('0x1e'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x1f')]);router[_0xdfb7('0x19')](_0xdfb7('0x20'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x21')]);router[_0xdfb7('0x19')](_0xdfb7('0x22'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x23')]);router[_0xdfb7('0x19')](_0xdfb7('0x24'),auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x25')]);router[_0xdfb7('0x26')]('/:id',auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x27')]);router[_0xdfb7('0x28')]('/:id',auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x29')]);router[_0xdfb7('0x28')]('/:id/dispositions',auth[_0xdfb7('0x9')](),controller[_0xdfb7('0x2a')]);router[_0xdfb7('0x28')](_0xdfb7('0x11'),auth['isAuthenticated'](),controller[_0xdfb7('0x2b')]);router[_0xdfb7('0x28')](_0xdfb7('0x24'),auth['isAuthenticated'](),controller['removeAgents']);module[_0xdfb7('0x2c')]=router;