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