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