80751e42d8f42738126a37774d78ceafb9f6cbaa
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x67f5=['GetZendeskAccount','../../client','getZendeskAccounts','Request','name','username','remoteUri','authType','type','ZendeskConfiguration','Configurations','Subjects','variableName','Variable','ZendeskField','content','key','Fields','nameField'];(function(_0x515fc3,_0x1b6984){var _0x2c7793=function(_0xee77db){while(--_0xee77db){_0x515fc3['push'](_0x515fc3['shift']());}};_0x2c7793(++_0x1b6984);}(_0x67f5,0x73));var _0x567f=function(_0x27e811,_0x20137c){_0x27e811=_0x27e811-0x0;var _0x1627fa=_0x67f5[_0x27e811];return _0x1627fa;};'use strict';var client=require(_0x567f('0x0'));exports[_0x567f('0x1')]=function(){return function(_0x20e900){return client[_0x567f('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x567f('0x3'),_0x567f('0x4'),'password','token',_0x567f('0x5'),_0x567f('0x6'),'serverUrl',_0x567f('0x7')],'include':[{'model':_0x567f('0x8'),'as':_0x567f('0x9'),'attributes':['id',_0x567f('0x3')],'include':[{'model':'Tag','attributes':['id',_0x567f('0x3')]},{'model':'ZendeskField','as':_0x567f('0xa'),'attributes':['id',_0x567f('0x7'),'content',_0x567f('0xb')],'include':[{'model':'Variable','as':_0x567f('0xc'),'attributes':['id',_0x567f('0x3')]}]},{'model':_0x567f('0xd'),'as':'Descriptions','attributes':['id',_0x567f('0x7'),_0x567f('0xe'),_0x567f('0xf'),'keyType','keyContent',_0x567f('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x567f('0x3')]}]},{'model':_0x567f('0xd'),'as':_0x567f('0x10'),'attributes':['id',_0x567f('0x7'),_0x567f('0xe'),'idField',_0x567f('0x11'),'customField',_0x567f('0xb')],'include':[{'model':_0x567f('0xc'),'as':_0x567f('0xc'),'attributes':['id',_0x567f('0x3')]}]}]}]},'log':_0x567f('0x12')});};};