ad10af175fd267f6103e3e0281c6cb6d0f4f5321
[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 _0x92f2=['Fields','idField','nameField','customField','Tag','Tags','GetDeskAccount','../../client','getDeskAccounts','Request','name','description','username','password','remoteUri','type','DeskConfiguration','Configurations','DeskField','content','variableName','Variable','Descriptions','key','keyType'];(function(_0x403fa7,_0x4a440a){var _0x525421=function(_0x55c215){while(--_0x55c215){_0x403fa7['push'](_0x403fa7['shift']());}};_0x525421(++_0x4a440a);}(_0x92f2,0x1c9));var _0x292f=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0x92f2[_0x465028];return _0xb783d4;};'use strict';var client=require(_0x292f('0x0'));exports[_0x292f('0x1')]=function(){return function(_0x175ca3){return client[_0x292f('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x292f('0x3'),_0x292f('0x4'),_0x292f('0x5'),_0x292f('0x6'),_0x292f('0x7'),'authType',_0x292f('0x8'),'serverUrl'],'include':[{'model':_0x292f('0x9'),'as':_0x292f('0xa'),'attributes':['id',_0x292f('0x3')],'include':[{'model':_0x292f('0xb'),'as':'Subjects','attributes':['id',_0x292f('0x8'),_0x292f('0xc'),_0x292f('0xd')],'include':[{'model':_0x292f('0xe'),'as':_0x292f('0xe'),'attributes':['id','name']}]},{'model':_0x292f('0xb'),'as':_0x292f('0xf'),'attributes':['id','type',_0x292f('0xc'),_0x292f('0x10'),_0x292f('0x11'),'keyContent',_0x292f('0xd')],'include':[{'model':_0x292f('0xe'),'as':_0x292f('0xe'),'attributes':['id',_0x292f('0x3')]}]},{'model':_0x292f('0xb'),'as':_0x292f('0x12'),'attributes':['id',_0x292f('0x8'),'content',_0x292f('0x13'),_0x292f('0x14'),_0x292f('0x15'),_0x292f('0xd')],'include':[{'model':_0x292f('0xe'),'as':'Variable','attributes':['id','name']}]},{'model':_0x292f('0x16'),'as':_0x292f('0x17'),'attributes':['id','name']}]}]},'log':_0x292f('0x18')});};};