Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0xe303=['getDeskAccounts','Request','GetDeskAccount','name','description','username','authType','type','serverUrl','DeskConfiguration','Subjects','content','variableName','Variable','Descriptions','keyContent','Fields','idField','customField','Tag','../../client'];(function(_0x5af826,_0x38c08a){var _0x18d6b3=function(_0x43be77){while(--_0x43be77){_0x5af826['push'](_0x5af826['shift']());}};_0x18d6b3(++_0x38c08a);}(_0xe303,0x164));var _0x3e30=function(_0x38ed1e,_0x17c77a){_0x38ed1e=_0x38ed1e-0x0;var _0x1e660e=_0xe303[_0x38ed1e];return _0x1e660e;};'use strict';var client=require(_0x3e30('0x0'));exports[_0x3e30('0x1')]=function(){return function(_0x27fe5b){return client[_0x3e30('0x2')](_0x3e30('0x3'),{'options':{'raw':![],'attributes':['id',_0x3e30('0x4'),_0x3e30('0x5'),_0x3e30('0x6'),'password','remoteUri',_0x3e30('0x7'),_0x3e30('0x8'),_0x3e30('0x9')],'include':[{'model':_0x3e30('0xa'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'DeskField','as':_0x3e30('0xb'),'attributes':['id',_0x3e30('0x8'),_0x3e30('0xc'),_0x3e30('0xd')],'include':[{'model':_0x3e30('0xe'),'as':'Variable','attributes':['id',_0x3e30('0x4')]}]},{'model':'DeskField','as':_0x3e30('0xf'),'attributes':['id',_0x3e30('0x8'),_0x3e30('0xc'),'key','keyType',_0x3e30('0x10'),_0x3e30('0xd')],'include':[{'model':'Variable','as':_0x3e30('0xe'),'attributes':['id',_0x3e30('0x4')]}]},{'model':'DeskField','as':_0x3e30('0x11'),'attributes':['id',_0x3e30('0x8'),_0x3e30('0xc'),_0x3e30('0x12'),'nameField',_0x3e30('0x13'),_0x3e30('0xd')],'include':[{'model':_0x3e30('0xe'),'as':_0x3e30('0xe'),'attributes':['id','name']}]},{'model':_0x3e30('0x14'),'as':'Tags','attributes':['id',_0x3e30('0x4')]}]}]},'log':'GetDeskAccount'});};};