Built motion from commit (unavailable).|2.5.14
[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 _0xaf13=['key','keyContent','Fields','idField','nameField','customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','name','username','password','token','remoteUri','authType','type','ZendeskConfiguration','Tag','ZendeskField','Subjects','variableName','Variable','Descriptions','content'];(function(_0x34983e,_0x25ba19){var _0x250d13=function(_0x6772b0){while(--_0x6772b0){_0x34983e['push'](_0x34983e['shift']());}};_0x250d13(++_0x25ba19);}(_0xaf13,0xb6));var _0x3af1=function(_0xbd08b4,_0x4790ed){_0xbd08b4=_0xbd08b4-0x0;var _0x314f1e=_0xaf13[_0xbd08b4];return _0x314f1e;};'use strict';var client=require(_0x3af1('0x0'));exports[_0x3af1('0x1')]=function(){return function(_0x4438ce){return client[_0x3af1('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x3af1('0x3'),_0x3af1('0x4'),_0x3af1('0x5'),_0x3af1('0x6'),_0x3af1('0x7'),_0x3af1('0x8'),'serverUrl',_0x3af1('0x9')],'include':[{'model':_0x3af1('0xa'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x3af1('0xb'),'attributes':['id',_0x3af1('0x3')]},{'model':_0x3af1('0xc'),'as':_0x3af1('0xd'),'attributes':['id',_0x3af1('0x9'),'content',_0x3af1('0xe')],'include':[{'model':_0x3af1('0xf'),'as':_0x3af1('0xf'),'attributes':['id',_0x3af1('0x3')]}]},{'model':_0x3af1('0xc'),'as':_0x3af1('0x10'),'attributes':['id',_0x3af1('0x9'),_0x3af1('0x11'),_0x3af1('0x12'),'keyType',_0x3af1('0x13'),'variableName'],'include':[{'model':_0x3af1('0xf'),'as':_0x3af1('0xf'),'attributes':['id',_0x3af1('0x3')]}]},{'model':_0x3af1('0xc'),'as':_0x3af1('0x14'),'attributes':['id','type',_0x3af1('0x11'),_0x3af1('0x15'),_0x3af1('0x16'),_0x3af1('0x17'),'variableName'],'include':[{'model':_0x3af1('0xf'),'as':_0x3af1('0xf'),'attributes':['id',_0x3af1('0x3')]}]}]}]},'log':_0x3af1('0x18')});};};