Built motion from commit e1760111.|2.6.18
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x63a1=['keyType','keyContent','Fields','idField','nameField','customField','GetVtigerAccount','../../client','getVtigerAccounts','Request','name','description','username','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField','Subjects','type','content','variableName','Variable','Descriptions','key'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0x63a1,0x1b0));var _0x163a=function(_0x335a3c,_0x3b5d2c){_0x335a3c=_0x335a3c-0x0;var _0x141e57=_0x63a1[_0x335a3c];return _0x141e57;};'use strict';var client=require(_0x163a('0x0'));exports[_0x163a('0x1')]=function(){return function(_0x59328a){return client[_0x163a('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0x163a('0x3'),_0x163a('0x4'),_0x163a('0x5'),'accessKey',_0x163a('0x6'),_0x163a('0x7')],'include':[{'model':_0x163a('0x8'),'as':_0x163a('0x9'),'attributes':['id',_0x163a('0x3')],'include':[{'model':_0x163a('0xa'),'as':_0x163a('0xb'),'attributes':['id',_0x163a('0xc'),_0x163a('0xd'),_0x163a('0xe')],'include':[{'model':_0x163a('0xf'),'as':_0x163a('0xf'),'attributes':['id',_0x163a('0x3')]}]},{'model':'VtigerField','as':_0x163a('0x10'),'attributes':['id',_0x163a('0xc'),_0x163a('0xd'),_0x163a('0x11'),_0x163a('0x12'),_0x163a('0x13'),'variableName'],'include':[{'model':_0x163a('0xf'),'as':_0x163a('0xf'),'attributes':['id',_0x163a('0x3')]}]},{'model':_0x163a('0xa'),'as':_0x163a('0x14'),'attributes':['id',_0x163a('0xc'),_0x163a('0xd'),_0x163a('0x15'),_0x163a('0x16'),_0x163a('0x17'),'variableName'],'include':[{'model':_0x163a('0xf'),'as':'Variable','attributes':['id',_0x163a('0x3')]}]}]}]},'log':_0x163a('0x18')});};};