5933fb4d766d17746da42f2552dd13180ae7649d
[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 _0x52cb=['express','Router','../../components/auth/service','../../config/environment','./faxAccount.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/interactions','/:id/applications','getApplications','/:id/messages','getMessages','/:id/users','getAgents','post','create','addDisposition','addInteraction','addAccountApplications','updateAccountApplications','send','addAgents','put','destroy','delete','removeDispositions','removeAgents','exports','path','connect-timeout'];(function(_0x666eb9,_0x5a9e90){var _0x3fc80b=function(_0x4ec6ff){while(--_0x4ec6ff){_0x666eb9['push'](_0x666eb9['shift']());}};_0x3fc80b(++_0x5a9e90);}(_0x52cb,0x1d2));var _0xb52c=function(_0x23bd05,_0x409ba8){_0x23bd05=_0x23bd05-0x0;var _0x2ea842=_0x52cb[_0x23bd05];return _0x2ea842;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb52c('0x0'));var timeout=require(_0xb52c('0x1'));var express=require(_0xb52c('0x2'));var router=express[_0xb52c('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xb52c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xb52c('0x5'));var controller=require(_0xb52c('0x6'));router[_0xb52c('0x7')]('/',auth[_0xb52c('0x8')](),controller[_0xb52c('0x9')]);router[_0xb52c('0x7')](_0xb52c('0xa'),auth[_0xb52c('0x8')](),controller[_0xb52c('0xb')]);router[_0xb52c('0x7')](_0xb52c('0xc'),auth[_0xb52c('0x8')](),controller[_0xb52c('0xd')]);router[_0xb52c('0x7')](_0xb52c('0xe'),auth['isAuthenticated'](),controller[_0xb52c('0xf')]);router[_0xb52c('0x7')](_0xb52c('0x10'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x11')]);router['get'](_0xb52c('0x12'),auth['isAuthenticated'](),controller['getInteractions']);router[_0xb52c('0x7')](_0xb52c('0x13'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x14')]);router[_0xb52c('0x7')](_0xb52c('0x15'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x16')]);router[_0xb52c('0x7')](_0xb52c('0x17'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x18')]);router[_0xb52c('0x19')]('/',auth['isAuthenticated'](),controller[_0xb52c('0x1a')]);router[_0xb52c('0x19')](_0xb52c('0xe'),auth['isAuthenticated'](),controller[_0xb52c('0x1b')]);router[_0xb52c('0x19')]('/:id/canned_answers',auth[_0xb52c('0x8')](),controller['addAnswer']);router['post'](_0xb52c('0x12'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x1c')]);router[_0xb52c('0x19')](_0xb52c('0x13'),auth[_0xb52c('0x8')](),controller['addApplications']);router[_0xb52c('0x19')]('/addaccountapplications',auth[_0xb52c('0x8')](),controller[_0xb52c('0x1d')]);router[_0xb52c('0x19')]('/updateaccountapplications',auth[_0xb52c('0x8')](),controller[_0xb52c('0x1e')]);router[_0xb52c('0x19')]('/:id/send',auth[_0xb52c('0x8')](),controller[_0xb52c('0x1f')]);router[_0xb52c('0x19')]('/:id/users',auth[_0xb52c('0x8')](),controller[_0xb52c('0x20')]);router[_0xb52c('0x21')](_0xb52c('0xc'),auth[_0xb52c('0x8')](),controller['update']);router['delete'](_0xb52c('0xc'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x22')]);router[_0xb52c('0x23')]('/:id/dispositions',auth[_0xb52c('0x8')](),controller[_0xb52c('0x24')]);router['delete'](_0xb52c('0x10'),auth[_0xb52c('0x8')](),controller['removeAnswers']);router['delete'](_0xb52c('0x17'),auth[_0xb52c('0x8')](),controller[_0xb52c('0x25')]);module[_0xb52c('0x26')]=router;