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