aac1cce5ea8f25402a6e2bf194985711b9b515ec
[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 _0x3e29=['Tag','Tags','GetDeskAccount','../../client','getDeskAccounts','Request','name','description','username','password','authType','DeskConfiguration','Configurations','DeskField','Subjects','type','content','variableName','Variable','keyType','Fields','idField','nameField','customField'];(function(_0x490e8b,_0x2cb1f1){var _0x2e23d1=function(_0x215bbb){while(--_0x215bbb){_0x490e8b['push'](_0x490e8b['shift']());}};_0x2e23d1(++_0x2cb1f1);}(_0x3e29,0x123));var _0x93e2=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0x3e29[_0x432682];return _0x463d05;};'use strict';var client=require(_0x93e2('0x0'));exports[_0x93e2('0x1')]=function(){return function(_0x469024){return client[_0x93e2('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x93e2('0x3'),_0x93e2('0x4'),_0x93e2('0x5'),_0x93e2('0x6'),'remoteUri',_0x93e2('0x7'),'type','serverUrl'],'include':[{'model':_0x93e2('0x8'),'as':_0x93e2('0x9'),'attributes':['id',_0x93e2('0x3')],'include':[{'model':_0x93e2('0xa'),'as':_0x93e2('0xb'),'attributes':['id',_0x93e2('0xc'),_0x93e2('0xd'),_0x93e2('0xe')],'include':[{'model':'Variable','as':_0x93e2('0xf'),'attributes':['id',_0x93e2('0x3')]}]},{'model':_0x93e2('0xa'),'as':'Descriptions','attributes':['id',_0x93e2('0xc'),_0x93e2('0xd'),'key',_0x93e2('0x10'),'keyContent',_0x93e2('0xe')],'include':[{'model':_0x93e2('0xf'),'as':_0x93e2('0xf'),'attributes':['id',_0x93e2('0x3')]}]},{'model':_0x93e2('0xa'),'as':_0x93e2('0x11'),'attributes':['id',_0x93e2('0xc'),'content',_0x93e2('0x12'),_0x93e2('0x13'),_0x93e2('0x14'),_0x93e2('0xe')],'include':[{'model':_0x93e2('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0x93e2('0x15'),'as':_0x93e2('0x16'),'attributes':['id','name']}]}]},'log':_0x93e2('0x17')});};};