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