Built motion from commit 67e5df37.|2.0.68
[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 _0xc2c3=['ZendeskField','Descriptions','keyType','keyContent','variableName','Fields','content','idField','nameField','customField','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Subjects','Variable'];(function(_0x4eafed,_0x26e2bc){var _0x159c85=function(_0x6f129f){while(--_0x6f129f){_0x4eafed['push'](_0x4eafed['shift']());}};_0x159c85(++_0x26e2bc);}(_0xc2c3,0xf0));var _0x3c2c=function(_0x3a2645,_0x2ba30e){_0x3a2645=_0x3a2645-0x0;var _0xbd3f95=_0xc2c3[_0x3a2645];return _0xbd3f95;};'use strict';var client=require('../../client');exports['getZendeskAccounts']=function(){return function(_0x19ae23){return client['Request'](_0x3c2c('0x0'),{'options':{'raw':![],'attributes':['id',_0x3c2c('0x1'),_0x3c2c('0x2'),_0x3c2c('0x3'),_0x3c2c('0x4'),_0x3c2c('0x5'),_0x3c2c('0x6'),_0x3c2c('0x7'),_0x3c2c('0x8')],'include':[{'model':_0x3c2c('0x9'),'as':_0x3c2c('0xa'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x3c2c('0x1')]},{'model':'ZendeskField','as':_0x3c2c('0xb'),'attributes':['id',_0x3c2c('0x8'),'content','variableName'],'include':[{'model':_0x3c2c('0xc'),'as':_0x3c2c('0xc'),'attributes':['id',_0x3c2c('0x1')]}]},{'model':_0x3c2c('0xd'),'as':_0x3c2c('0xe'),'attributes':['id',_0x3c2c('0x8'),'content','key',_0x3c2c('0xf'),_0x3c2c('0x10'),_0x3c2c('0x11')],'include':[{'model':_0x3c2c('0xc'),'as':'Variable','attributes':['id',_0x3c2c('0x1')]}]},{'model':_0x3c2c('0xd'),'as':_0x3c2c('0x12'),'attributes':['id','type',_0x3c2c('0x13'),_0x3c2c('0x14'),_0x3c2c('0x15'),_0x3c2c('0x16'),_0x3c2c('0x11')],'include':[{'model':'Variable','as':_0x3c2c('0xc'),'attributes':['id',_0x3c2c('0x1')]}]}]}]},'log':_0x3c2c('0x0')});};};