Built motion from commit (unavailable).|2.5.23
[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 _0xee2c=['Variable','key','keyContent','ZendeskField','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','Tag','type','content','variableName'];(function(_0x536e78,_0x2324c3){var _0x572e89=function(_0x4d08d2){while(--_0x4d08d2){_0x536e78['push'](_0x536e78['shift']());}};_0x572e89(++_0x2324c3);}(_0xee2c,0x10f));var _0xcee2=function(_0x344a3f,_0x579a22){_0x344a3f=_0x344a3f-0x0;var _0x264712=_0xee2c[_0x344a3f];return _0x264712;};'use strict';var client=require(_0xcee2('0x0'));exports[_0xcee2('0x1')]=function(){return function(_0x114683){return client[_0xcee2('0x2')](_0xcee2('0x3'),{'options':{'raw':![],'attributes':['id',_0xcee2('0x4'),_0xcee2('0x5'),_0xcee2('0x6'),_0xcee2('0x7'),_0xcee2('0x8'),_0xcee2('0x9'),_0xcee2('0xa'),'type'],'include':[{'model':_0xcee2('0xb'),'as':_0xcee2('0xc'),'attributes':['id','name'],'include':[{'model':_0xcee2('0xd'),'attributes':['id',_0xcee2('0x4')]},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0xcee2('0xe'),_0xcee2('0xf'),_0xcee2('0x10')],'include':[{'model':_0xcee2('0x11'),'as':'Variable','attributes':['id',_0xcee2('0x4')]}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0xcee2('0xe'),_0xcee2('0xf'),_0xcee2('0x12'),'keyType',_0xcee2('0x13'),'variableName'],'include':[{'model':'Variable','as':_0xcee2('0x11'),'attributes':['id',_0xcee2('0x4')]}]},{'model':_0xcee2('0x14'),'as':'Fields','attributes':['id',_0xcee2('0xe'),'content',_0xcee2('0x15'),_0xcee2('0x16'),_0xcee2('0x17'),'variableName'],'include':[{'model':_0xcee2('0x11'),'as':_0xcee2('0x11'),'attributes':['id','name']}]}]}]},'log':_0xcee2('0x3')});};};