1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x7ed1=['serverUrl','type','ZendeskConfiguration','name','Tag','ZendeskField','content','variableName','Variable','Fields','idField','../../client','getZendeskAccounts','GetZendeskAccount','username','password','token'];(function(_0x450684,_0x145668){var _0x4d0170=function(_0x47c1df){while(--_0x47c1df){_0x450684['push'](_0x450684['shift']());}};_0x4d0170(++_0x145668);}(_0x7ed1,0x170));var _0x17ed=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0x7ed1[_0x4b055c];return _0x4b62bb;};'use strict';var client=require(_0x17ed('0x0'));exports[_0x17ed('0x1')]=function(){return function(_0x5c0b55){return client['Request'](_0x17ed('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x17ed('0x3'),_0x17ed('0x4'),_0x17ed('0x5'),'remoteUri','authType',_0x17ed('0x6'),_0x17ed('0x7')],'include':[{'model':_0x17ed('0x8'),'as':'Configurations','attributes':['id',_0x17ed('0x9')],'include':[{'model':_0x17ed('0xa'),'attributes':['id',_0x17ed('0x9')]},{'model':_0x17ed('0xb'),'as':'Subjects','attributes':['id',_0x17ed('0x7'),_0x17ed('0xc'),_0x17ed('0xd')],'include':[{'model':_0x17ed('0xe'),'as':_0x17ed('0xe'),'attributes':['id','name']}]},{'model':_0x17ed('0xb'),'as':'Descriptions','attributes':['id',_0x17ed('0x7'),_0x17ed('0xc'),'key','keyType','keyContent',_0x17ed('0xd')],'include':[{'model':_0x17ed('0xe'),'as':_0x17ed('0xe'),'attributes':['id',_0x17ed('0x9')]}]},{'model':'ZendeskField','as':_0x17ed('0xf'),'attributes':['id','type','content',_0x17ed('0x10'),'nameField','customField','variableName'],'include':[{'model':_0x17ed('0xe'),'as':_0x17ed('0xe'),'attributes':['id',_0x17ed('0x9')]}]}]}]},'log':_0x17ed('0x2')});};};