Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / openchannelAccount / 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 _0x5fab=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelAccount.controller','get','isAuthenticated','/describe','describe','/:id','show','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','/:id/interactions','getInteractions','/:id/users','getAgents','post','/:id/dispositions','addDisposition','addAnswer','/:id/notify','notify','addApplications','addAgents','/:id/send','send','delete','removeAnswers','removeAgents','exports','multer','util','connect-timeout','express','Router'];(function(_0x125a68,_0x4ec80c){var _0x5ba500=function(_0xdf998){while(--_0xdf998){_0x125a68['push'](_0x125a68['shift']());}};_0x5ba500(++_0x4ec80c);}(_0x5fab,0x177));var _0xb5fa=function(_0x2287df,_0x5a4a24){_0x2287df=_0x2287df-0x0;var _0x2afbc1=_0x5fab[_0x2287df];return _0x2afbc1;};'use strict';var multer=require(_0xb5fa('0x0'));var util=require(_0xb5fa('0x1'));var path=require('path');var timeout=require(_0xb5fa('0x2'));var express=require(_0xb5fa('0x3'));var router=express[_0xb5fa('0x4')]();var fs_extra=require(_0xb5fa('0x5'));var auth=require(_0xb5fa('0x6'));var interaction=require(_0xb5fa('0x7'));var config=require(_0xb5fa('0x8'));var controller=require(_0xb5fa('0x9'));router[_0xb5fa('0xa')]('/',auth[_0xb5fa('0xb')](),controller['index']);router['get'](_0xb5fa('0xc'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0xd')]);router['get'](_0xb5fa('0xe'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0xf')]);router['get']('/:id/dispositions',auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x10')]);router[_0xb5fa('0xa')](_0xb5fa('0x11'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x12')]);router[_0xb5fa('0xa')](_0xb5fa('0x13'),auth[_0xb5fa('0xb')](),controller['getApplications']);router[_0xb5fa('0xa')](_0xb5fa('0x14'),auth['isAuthenticated'](),controller[_0xb5fa('0x15')]);router['get'](_0xb5fa('0x16'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x17')]);router[_0xb5fa('0x18')]('/',auth[_0xb5fa('0xb')](),controller['create']);router['post'](_0xb5fa('0x19'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x1a')]);router[_0xb5fa('0x18')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xb5fa('0x1b')]);router[_0xb5fa('0x18')](_0xb5fa('0x1c'),controller[_0xb5fa('0x1d')]);router[_0xb5fa('0x18')](_0xb5fa('0x13'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x1e')]);router[_0xb5fa('0x18')](_0xb5fa('0x16'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x1f')]);router['post'](_0xb5fa('0x20'),auth['isAuthenticated'](),controller[_0xb5fa('0x21')]);router['put'](_0xb5fa('0xe'),auth[_0xb5fa('0xb')](),controller['update']);router[_0xb5fa('0x22')](_0xb5fa('0xe'),auth[_0xb5fa('0xb')](),controller['destroy']);router[_0xb5fa('0x22')](_0xb5fa('0x19'),auth[_0xb5fa('0xb')](),controller['removeDispositions']);router[_0xb5fa('0x22')]('/:id/canned_answers',auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x23')]);router[_0xb5fa('0x22')](_0xb5fa('0x16'),auth[_0xb5fa('0xb')](),controller[_0xb5fa('0x24')]);module[_0xb5fa('0x25')]=router;