1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xbeb5=['util','moment','path','../../config/environment','./intZohoField.attributes','exports','define','int_zoho_fields','zoho_unique_index','idField','FieldId','lodash'];(function(_0x567cdc,_0x2b36d5){var _0x243f69=function(_0x3056c9){while(--_0x3056c9){_0x567cdc['push'](_0x567cdc['shift']());}};_0x243f69(++_0x2b36d5);}(_0xbeb5,0xd7));var _0x5beb=function(_0x14691a,_0x3a2cf3){_0x14691a=_0x14691a-0x0;var _0x4e887f=_0xbeb5[_0x14691a];return _0x4e887f;};'use strict';var _=require(_0x5beb('0x0'));var util=require(_0x5beb('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x5beb('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x5beb('0x3'));var rimraf=require('rimraf');var config=require(_0x5beb('0x4'));var attributes=require(_0x5beb('0x5'));module[_0x5beb('0x6')]=function(_0x47f6fb,_0x43b315){return _0x47f6fb[_0x5beb('0x7')]('ZohoField',attributes,{'tableName':_0x5beb('0x8'),'paranoid':![],'indexes':[{'name':_0x5beb('0x9'),'fields':[_0x5beb('0xa'),_0x5beb('0xb')],'unique':!![]}],'timestamps':!![]});};