6efe60c265a10d3f86124b9f3ef2a158e35bb6cb
[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 _0x0bf1=['nameField','customField','GetZendeskAccount','Request','name','username','password','token','authType','serverUrl','type','Configurations','Tag','ZendeskField','Subjects','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField'];(function(_0x183190,_0x317807){var _0x14743c=function(_0x39216a){while(--_0x39216a){_0x183190['push'](_0x183190['shift']());}};_0x14743c(++_0x317807);}(_0x0bf1,0xe9));var _0x10bf=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x0bf1[_0x2dafbe];return _0x58a45a;};'use strict';var client=require('../../client');exports['getZendeskAccounts']=function(){return function(_0x22cbda){return client[_0x10bf('0x0')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x10bf('0x1'),_0x10bf('0x2'),_0x10bf('0x3'),_0x10bf('0x4'),'remoteUri',_0x10bf('0x5'),_0x10bf('0x6'),_0x10bf('0x7')],'include':[{'model':'ZendeskConfiguration','as':_0x10bf('0x8'),'attributes':['id',_0x10bf('0x1')],'include':[{'model':_0x10bf('0x9'),'attributes':['id','name']},{'model':_0x10bf('0xa'),'as':_0x10bf('0xb'),'attributes':['id',_0x10bf('0x7'),_0x10bf('0xc'),_0x10bf('0xd')],'include':[{'model':_0x10bf('0xe'),'as':_0x10bf('0xe'),'attributes':['id',_0x10bf('0x1')]}]},{'model':_0x10bf('0xa'),'as':_0x10bf('0xf'),'attributes':['id',_0x10bf('0x7'),_0x10bf('0xc'),'key',_0x10bf('0x10'),_0x10bf('0x11'),_0x10bf('0xd')],'include':[{'model':_0x10bf('0xe'),'as':'Variable','attributes':['id','name']}]},{'model':_0x10bf('0xa'),'as':_0x10bf('0x12'),'attributes':['id',_0x10bf('0x7'),_0x10bf('0xc'),_0x10bf('0x13'),_0x10bf('0x14'),_0x10bf('0x15'),_0x10bf('0xd')],'include':[{'model':_0x10bf('0xe'),'as':_0x10bf('0xe'),'attributes':['id',_0x10bf('0x1')]}]}]}]},'log':_0x10bf('0x16')});};};