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