766d9fd7425adba2d1c2a395ae5fa62053ef4c06
[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 _0x5726=['Tag','ZendeskField','Subjects','content','Variable','Descriptions','key','variableName','Fields','idField','nameField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations'];(function(_0xe9ee6c,_0x3397c4){var _0x385bf4=function(_0x3cc676){while(--_0x3cc676){_0xe9ee6c['push'](_0xe9ee6c['shift']());}};_0x385bf4(++_0x3397c4);}(_0x5726,0x150));var _0x6572=function(_0x3341dd,_0x24fc5c){_0x3341dd=_0x3341dd-0x0;var _0x4a98ea=_0x5726[_0x3341dd];return _0x4a98ea;};'use strict';var client=require(_0x6572('0x0'));exports[_0x6572('0x1')]=function(){return function(_0x5a8982){return client[_0x6572('0x2')](_0x6572('0x3'),{'options':{'raw':![],'attributes':['id',_0x6572('0x4'),_0x6572('0x5'),_0x6572('0x6'),_0x6572('0x7'),_0x6572('0x8'),_0x6572('0x9'),_0x6572('0xa'),_0x6572('0xb')],'include':[{'model':_0x6572('0xc'),'as':_0x6572('0xd'),'attributes':['id',_0x6572('0x4')],'include':[{'model':_0x6572('0xe'),'attributes':['id','name']},{'model':_0x6572('0xf'),'as':_0x6572('0x10'),'attributes':['id','type',_0x6572('0x11'),'variableName'],'include':[{'model':_0x6572('0x12'),'as':_0x6572('0x12'),'attributes':['id',_0x6572('0x4')]}]},{'model':_0x6572('0xf'),'as':_0x6572('0x13'),'attributes':['id','type',_0x6572('0x11'),_0x6572('0x14'),'keyType','keyContent',_0x6572('0x15')],'include':[{'model':_0x6572('0x12'),'as':_0x6572('0x12'),'attributes':['id',_0x6572('0x4')]}]},{'model':'ZendeskField','as':_0x6572('0x16'),'attributes':['id',_0x6572('0xb'),'content',_0x6572('0x17'),_0x6572('0x18'),'customField','variableName'],'include':[{'model':_0x6572('0x12'),'as':_0x6572('0x12'),'attributes':['id',_0x6572('0x4')]}]}]}]},'log':_0x6572('0x3')});};};