Built motion from commit (unavailable).|2.5.6
[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 _0x99a6=['keyContent','Fields','nameField','customField','../../client','Request','GetZendeskAccount','name','password','token','remoteUri','authType','serverUrl','type','Configurations','Tag','ZendeskField','content','variableName','Variable','Descriptions','keyType'];(function(_0x26eda1,_0x5160a2){var _0x5eb86d=function(_0x21a326){while(--_0x21a326){_0x26eda1['push'](_0x26eda1['shift']());}};_0x5eb86d(++_0x5160a2);}(_0x99a6,0x72));var _0x699a=function(_0x4ec3ab,_0x50a5de){_0x4ec3ab=_0x4ec3ab-0x0;var _0x229613=_0x99a6[_0x4ec3ab];return _0x229613;};'use strict';var client=require(_0x699a('0x0'));exports['getZendeskAccounts']=function(){return function(_0x2be44c){return client[_0x699a('0x1')](_0x699a('0x2'),{'options':{'raw':![],'attributes':['id',_0x699a('0x3'),'username',_0x699a('0x4'),_0x699a('0x5'),_0x699a('0x6'),_0x699a('0x7'),_0x699a('0x8'),_0x699a('0x9')],'include':[{'model':'ZendeskConfiguration','as':_0x699a('0xa'),'attributes':['id',_0x699a('0x3')],'include':[{'model':_0x699a('0xb'),'attributes':['id',_0x699a('0x3')]},{'model':_0x699a('0xc'),'as':'Subjects','attributes':['id',_0x699a('0x9'),_0x699a('0xd'),_0x699a('0xe')],'include':[{'model':'Variable','as':_0x699a('0xf'),'attributes':['id',_0x699a('0x3')]}]},{'model':_0x699a('0xc'),'as':_0x699a('0x10'),'attributes':['id',_0x699a('0x9'),_0x699a('0xd'),'key',_0x699a('0x11'),_0x699a('0x12'),'variableName'],'include':[{'model':_0x699a('0xf'),'as':'Variable','attributes':['id',_0x699a('0x3')]}]},{'model':_0x699a('0xc'),'as':_0x699a('0x13'),'attributes':['id',_0x699a('0x9'),_0x699a('0xd'),'idField',_0x699a('0x14'),_0x699a('0x15'),_0x699a('0xe')],'include':[{'model':_0x699a('0xf'),'as':_0x699a('0xf'),'attributes':['id',_0x699a('0x3')]}]}]}]},'log':_0x699a('0x2')});};};