Built motion from commit (unavailable).|2.5.24
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0x11ae=['request-promise','path','rimraf','../../config/environment','exports','ZohoField','int_zoho_fields','zoho_unique_index','FieldId','lodash','../../config/logger','api','moment','bluebird'];(function(_0x153b1a,_0xdd4364){var _0x4c91ff=function(_0xeea70e){while(--_0xeea70e){_0x153b1a['push'](_0x153b1a['shift']());}};_0x4c91ff(++_0xdd4364);}(_0x11ae,0x105));var _0xe11a=function(_0x1c5595,_0x4fc0e5){_0x1c5595=_0x1c5595-0x0;var _0x25c7da=_0x11ae[_0x1c5595];return _0x25c7da;};'use strict';var _=require(_0xe11a('0x0'));var util=require('util');var logger=require(_0xe11a('0x1'))(_0xe11a('0x2'));var moment=require(_0xe11a('0x3'));var BPromise=require(_0xe11a('0x4'));var rp=require(_0xe11a('0x5'));var fs=require('fs');var path=require(_0xe11a('0x6'));var rimraf=require(_0xe11a('0x7'));var config=require(_0xe11a('0x8'));var attributes=require('./intZohoField.attributes');module[_0xe11a('0x9')]=function(_0x5654c1,_0x44cb38){return _0x5654c1['define'](_0xe11a('0xa'),attributes,{'tableName':_0xe11a('0xb'),'paranoid':![],'indexes':[{'name':_0xe11a('0xc'),'fields':['idField',_0xe11a('0xd')],'unique':!![]}],'timestamps':!![]});};