28af3261a2482b7a4bd5932c43355c1407374693
[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 _0x581f=['GetDeskAccount','../../client','getDeskAccounts','Request','name','username','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','Subjects','content','variableName','Variable','DeskField','key','keyContent','Tags'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0x581f,0x1a5));var _0xf581=function(_0x48f1df,_0x3afca5){_0x48f1df=_0x48f1df-0x0;var _0x294cdd=_0x581f[_0x48f1df];return _0x294cdd;};'use strict';var client=require(_0xf581('0x0'));exports[_0xf581('0x1')]=function(){return function(_0x193568){return client[_0xf581('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xf581('0x3'),'description',_0xf581('0x4'),'password',_0xf581('0x5'),_0xf581('0x6'),_0xf581('0x7'),_0xf581('0x8')],'include':[{'model':_0xf581('0x9'),'as':_0xf581('0xa'),'attributes':['id',_0xf581('0x3')],'include':[{'model':'DeskField','as':_0xf581('0xb'),'attributes':['id',_0xf581('0x7'),_0xf581('0xc'),_0xf581('0xd')],'include':[{'model':_0xf581('0xe'),'as':_0xf581('0xe'),'attributes':['id','name']}]},{'model':_0xf581('0xf'),'as':'Descriptions','attributes':['id',_0xf581('0x7'),_0xf581('0xc'),_0xf581('0x10'),'keyType',_0xf581('0x11'),_0xf581('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0xf581('0xf'),'as':'Fields','attributes':['id',_0xf581('0x7'),_0xf581('0xc'),'idField','nameField','customField',_0xf581('0xd')],'include':[{'model':_0xf581('0xe'),'as':_0xf581('0xe'),'attributes':['id',_0xf581('0x3')]}]},{'model':'Tag','as':_0xf581('0x12'),'attributes':['id','name']}]}]},'log':_0xf581('0x13')});};};