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