Built motion from commit (unavailable).|2.5.1
[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 _0xfd8e=['username','password','authType','serverUrl','type','ZendeskConfiguration','Tag','ZendeskField','Subjects','variableName','Variable','Descriptions','key','keyContent','Fields','content','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name'];(function(_0x2aecb2,_0x343312){var _0x3ebb80=function(_0x19fab3){while(--_0x19fab3){_0x2aecb2['push'](_0x2aecb2['shift']());}};_0x3ebb80(++_0x343312);}(_0xfd8e,0xeb));var _0xefd8=function(_0x1c22ce,_0xc9fcbf){_0x1c22ce=_0x1c22ce-0x0;var _0x59eea0=_0xfd8e[_0x1c22ce];return _0x59eea0;};'use strict';var client=require(_0xefd8('0x0'));exports[_0xefd8('0x1')]=function(){return function(_0x1a81f4){return client[_0xefd8('0x2')](_0xefd8('0x3'),{'options':{'raw':![],'attributes':['id',_0xefd8('0x4'),_0xefd8('0x5'),_0xefd8('0x6'),'token','remoteUri',_0xefd8('0x7'),_0xefd8('0x8'),_0xefd8('0x9')],'include':[{'model':_0xefd8('0xa'),'as':'Configurations','attributes':['id',_0xefd8('0x4')],'include':[{'model':_0xefd8('0xb'),'attributes':['id',_0xefd8('0x4')]},{'model':_0xefd8('0xc'),'as':_0xefd8('0xd'),'attributes':['id',_0xefd8('0x9'),'content',_0xefd8('0xe')],'include':[{'model':_0xefd8('0xf'),'as':_0xefd8('0xf'),'attributes':['id','name']}]},{'model':_0xefd8('0xc'),'as':_0xefd8('0x10'),'attributes':['id',_0xefd8('0x9'),'content',_0xefd8('0x11'),'keyType',_0xefd8('0x12'),_0xefd8('0xe')],'include':[{'model':'Variable','as':_0xefd8('0xf'),'attributes':['id',_0xefd8('0x4')]}]},{'model':_0xefd8('0xc'),'as':_0xefd8('0x13'),'attributes':['id','type',_0xefd8('0x14'),_0xefd8('0x15'),_0xefd8('0x16'),_0xefd8('0x17'),_0xefd8('0xe')],'include':[{'model':'Variable','as':_0xefd8('0xf'),'attributes':['id',_0xefd8('0x4')]}]}]}]},'log':_0xefd8('0x3')});};};