Built motion from commit 85328c08.|2.5.50
[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 _0xb611=['idField','Request','GetZendeskAccount','username','token','remoteUri','authType','serverUrl','ZendeskConfiguration','name','ZendeskField','Subjects','content','variableName','Variable','type','key','keyContent','Fields'];(function(_0x2f55fb,_0x2d8e27){var _0x1f4f25=function(_0x118bf2){while(--_0x118bf2){_0x2f55fb['push'](_0x2f55fb['shift']());}};_0x1f4f25(++_0x2d8e27);}(_0xb611,0xf8));var _0x1b61=function(_0xa4928c,_0x16b89c){_0xa4928c=_0xa4928c-0x0;var _0x27cc29=_0xb611[_0xa4928c];return _0x27cc29;};'use strict';var client=require('../../client');exports['getZendeskAccounts']=function(){return function(_0x163531){return client[_0x1b61('0x0')](_0x1b61('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x1b61('0x2'),'password',_0x1b61('0x3'),_0x1b61('0x4'),_0x1b61('0x5'),_0x1b61('0x6'),'type'],'include':[{'model':_0x1b61('0x7'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x1b61('0x8')]},{'model':_0x1b61('0x9'),'as':_0x1b61('0xa'),'attributes':['id','type',_0x1b61('0xb'),_0x1b61('0xc')],'include':[{'model':_0x1b61('0xd'),'as':'Variable','attributes':['id',_0x1b61('0x8')]}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0x1b61('0xe'),_0x1b61('0xb'),_0x1b61('0xf'),'keyType',_0x1b61('0x10'),_0x1b61('0xc')],'include':[{'model':_0x1b61('0xd'),'as':_0x1b61('0xd'),'attributes':['id',_0x1b61('0x8')]}]},{'model':_0x1b61('0x9'),'as':_0x1b61('0x11'),'attributes':['id',_0x1b61('0xe'),_0x1b61('0xb'),_0x1b61('0x12'),'nameField','customField',_0x1b61('0xc')],'include':[{'model':_0x1b61('0xd'),'as':_0x1b61('0xd'),'attributes':['id',_0x1b61('0x8')]}]}]}]},'log':'GetZendeskAccount'});};};