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