Built motion from commit (unavailable).|2.5.9
[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 _0x27aa=['rimraf','../../config/environment','exports','define','zoho_unique_index','FieldId','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x3ece19,_0x5ebc4d){var _0x1c26fe=function(_0x2f45e6){while(--_0x2f45e6){_0x3ece19['push'](_0x3ece19['shift']());}};_0x1c26fe(++_0x5ebc4d);}(_0x27aa,0xf0));var _0xa27a=function(_0x2d8fc2,_0x1c461d){_0x2d8fc2=_0x2d8fc2-0x0;var _0x3a9e53=_0x27aa[_0x2d8fc2];return _0x3a9e53;};'use strict';var _=require(_0xa27a('0x0'));var util=require('util');var logger=require(_0xa27a('0x1'))(_0xa27a('0x2'));var moment=require(_0xa27a('0x3'));var BPromise=require(_0xa27a('0x4'));var rp=require(_0xa27a('0x5'));var fs=require('fs');var path=require(_0xa27a('0x6'));var rimraf=require(_0xa27a('0x7'));var config=require(_0xa27a('0x8'));var attributes=require('./intZohoField.attributes');module[_0xa27a('0x9')]=function(_0x3446f0,_0x2247f2){return _0x3446f0[_0xa27a('0xa')]('ZohoField',attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':_0xa27a('0xb'),'fields':['idField',_0xa27a('0xc')],'unique':!![]}],'timestamps':!![]});};