Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0xefe7=['idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleCreate','moduleSearch','description','ZohoField','Subjects','type','content','variableName','Descriptions','key','keyType','keyContent','Variable','Fields'];(function(_0x3e44bd,_0x565a00){var _0x2d32be=function(_0x3001e9){while(--_0x3001e9){_0x3e44bd['push'](_0x3e44bd['shift']());}};_0x2d32be(++_0x565a00);}(_0xefe7,0x1a7));var _0x7efe=function(_0x532b6f,_0x362086){_0x532b6f=_0x532b6f-0x0;var _0x5b9986=_0xefe7[_0x532b6f];return _0x5b9986;};'use strict';var client=require(_0x7efe('0x0'));exports[_0x7efe('0x1')]=function(){return function(_0x317fc2){return client[_0x7efe('0x2')](_0x7efe('0x3'),{'options':{'raw':![],'attributes':['id',_0x7efe('0x4'),'description',_0x7efe('0x5'),_0x7efe('0x6'),_0x7efe('0x7'),_0x7efe('0x8'),_0x7efe('0x9'),_0x7efe('0xa'),_0x7efe('0xb')],'include':[{'model':_0x7efe('0xc'),'as':'Configurations','attributes':['id','name',_0x7efe('0xd'),_0x7efe('0xe'),_0x7efe('0xf')],'include':[{'model':_0x7efe('0x10'),'as':_0x7efe('0x11'),'attributes':['id',_0x7efe('0x12'),_0x7efe('0x13'),_0x7efe('0x14')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x7efe('0x4')]}]},{'model':_0x7efe('0x10'),'as':_0x7efe('0x15'),'attributes':['id','type',_0x7efe('0x13'),_0x7efe('0x16'),_0x7efe('0x17'),_0x7efe('0x18'),_0x7efe('0x14')],'include':[{'model':_0x7efe('0x19'),'as':_0x7efe('0x19'),'attributes':['id',_0x7efe('0x4')]}]},{'model':_0x7efe('0x10'),'as':_0x7efe('0x1a'),'attributes':['id','type',_0x7efe('0x13'),_0x7efe('0x1b'),_0x7efe('0x1c'),_0x7efe('0x1d'),_0x7efe('0x14')],'include':[{'model':_0x7efe('0x19'),'as':'Variable','attributes':['id',_0x7efe('0x4')]}]}]}]},'log':_0x7efe('0x3')});};};