e1a7e8a01ab93a56ec7f0c41cd992ff9bd778bc2
[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 _0x1008=['DeskField','Subjects','type','variableName','Variable','Descriptions','content','keyType','keyContent','Fields','nameField','customField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','description','username','password','authType','serverUrl','DeskConfiguration','Configurations','name'];(function(_0x251fa4,_0x3d5860){var _0x453047=function(_0x337a6f){while(--_0x337a6f){_0x251fa4['push'](_0x251fa4['shift']());}};_0x453047(++_0x3d5860);}(_0x1008,0x194));var _0x8100=function(_0x31b5a5,_0x44376a){_0x31b5a5=_0x31b5a5-0x0;var _0x364cc9=_0x1008[_0x31b5a5];return _0x364cc9;};'use strict';var client=require(_0x8100('0x0'));exports[_0x8100('0x1')]=function(){return function(_0x27f6f3){return client[_0x8100('0x2')](_0x8100('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x8100('0x4'),_0x8100('0x5'),_0x8100('0x6'),'remoteUri',_0x8100('0x7'),'type',_0x8100('0x8')],'include':[{'model':_0x8100('0x9'),'as':_0x8100('0xa'),'attributes':['id',_0x8100('0xb')],'include':[{'model':_0x8100('0xc'),'as':_0x8100('0xd'),'attributes':['id',_0x8100('0xe'),'content',_0x8100('0xf')],'include':[{'model':_0x8100('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':_0x8100('0xc'),'as':_0x8100('0x11'),'attributes':['id',_0x8100('0xe'),_0x8100('0x12'),'key',_0x8100('0x13'),_0x8100('0x14'),'variableName'],'include':[{'model':_0x8100('0x10'),'as':_0x8100('0x10'),'attributes':['id','name']}]},{'model':_0x8100('0xc'),'as':_0x8100('0x15'),'attributes':['id',_0x8100('0xe'),_0x8100('0x12'),'idField',_0x8100('0x16'),_0x8100('0x17'),_0x8100('0xf')],'include':[{'model':_0x8100('0x10'),'as':'Variable','attributes':['id',_0x8100('0xb')]}]},{'model':_0x8100('0x18'),'as':_0x8100('0x19'),'attributes':['id',_0x8100('0xb')]}]}]},'log':_0x8100('0x3')});};};