Built motion from commit (unavailable).|2.5.8
[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 _0xf8ce=['variableName','../../client','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','customField'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf8ce,0x1e7));var _0xef8c=function(_0x411a14,_0x2adc6e){_0x411a14=_0x411a14-0x0;var _0x34b4e3=_0xf8ce[_0x411a14];return _0x34b4e3;};'use strict';var client=require(_0xef8c('0x0'));exports['getZendeskAccounts']=function(){return function(_0x353029){return client[_0xef8c('0x1')](_0xef8c('0x2'),{'options':{'raw':![],'attributes':['id',_0xef8c('0x3'),_0xef8c('0x4'),_0xef8c('0x5'),_0xef8c('0x6'),_0xef8c('0x7'),_0xef8c('0x8'),_0xef8c('0x9'),_0xef8c('0xa')],'include':[{'model':_0xef8c('0xb'),'as':_0xef8c('0xc'),'attributes':['id',_0xef8c('0x3')],'include':[{'model':_0xef8c('0xd'),'attributes':['id',_0xef8c('0x3')]},{'model':_0xef8c('0xe'),'as':_0xef8c('0xf'),'attributes':['id',_0xef8c('0xa'),'content','variableName'],'include':[{'model':'Variable','as':_0xef8c('0x10'),'attributes':['id',_0xef8c('0x3')]}]},{'model':_0xef8c('0xe'),'as':_0xef8c('0x11'),'attributes':['id',_0xef8c('0xa'),_0xef8c('0x12'),_0xef8c('0x13'),_0xef8c('0x14'),_0xef8c('0x15'),'variableName'],'include':[{'model':_0xef8c('0x10'),'as':_0xef8c('0x10'),'attributes':['id',_0xef8c('0x3')]}]},{'model':'ZendeskField','as':_0xef8c('0x16'),'attributes':['id','type',_0xef8c('0x12'),_0xef8c('0x17'),_0xef8c('0x18'),_0xef8c('0x19'),_0xef8c('0x1a')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xef8c('0x3')]}]}]}]},'log':_0xef8c('0x2')});};};