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