6eafb39eac5a5c04904448bf0604210bf215692f
[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 _0x812a=['Descriptions','key','keyContent','Fields','idField','nameField','customField','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','ZendeskField','Subjects','content','variableName','Variable'];(function(_0x5f1391,_0x19c132){var _0x50ebe3=function(_0x3d00a3){while(--_0x3d00a3){_0x5f1391['push'](_0x5f1391['shift']());}};_0x50ebe3(++_0x19c132);}(_0x812a,0x1e2));var _0xa812=function(_0x2dd225,_0x226dce){_0x2dd225=_0x2dd225-0x0;var _0x1e96d0=_0x812a[_0x2dd225];return _0x1e96d0;};'use strict';var client=require('../../client');exports[_0xa812('0x0')]=function(){return function(_0x2492c8){return client[_0xa812('0x1')](_0xa812('0x2'),{'options':{'raw':![],'attributes':['id',_0xa812('0x3'),_0xa812('0x4'),_0xa812('0x5'),_0xa812('0x6'),_0xa812('0x7'),_0xa812('0x8'),_0xa812('0x9'),_0xa812('0xa')],'include':[{'model':_0xa812('0xb'),'as':_0xa812('0xc'),'attributes':['id',_0xa812('0x3')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0xa812('0xd'),'as':_0xa812('0xe'),'attributes':['id',_0xa812('0xa'),_0xa812('0xf'),_0xa812('0x10')],'include':[{'model':'Variable','as':_0xa812('0x11'),'attributes':['id','name']}]},{'model':_0xa812('0xd'),'as':_0xa812('0x12'),'attributes':['id',_0xa812('0xa'),_0xa812('0xf'),_0xa812('0x13'),'keyType',_0xa812('0x14'),_0xa812('0x10')],'include':[{'model':'Variable','as':_0xa812('0x11'),'attributes':['id',_0xa812('0x3')]}]},{'model':_0xa812('0xd'),'as':_0xa812('0x15'),'attributes':['id',_0xa812('0xa'),_0xa812('0xf'),_0xa812('0x16'),_0xa812('0x17'),_0xa812('0x18'),_0xa812('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0xa812('0x2')});};};