Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0xc4af=['../../config/environment','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf'];(function(_0x40220a,_0x22feb1){var _0x3903cc=function(_0x33a296){while(--_0x33a296){_0x40220a['push'](_0x40220a['shift']());}};_0x3903cc(++_0x22feb1);}(_0xc4af,0x77));var _0xfc4a=function(_0x46aff0,_0x122890){_0x46aff0=_0x46aff0-0x0;var _0x9d78cf=_0xc4af[_0x46aff0];return _0x9d78cf;};'use strict';var _=require(_0xfc4a('0x0'));var util=require('util');var logger=require(_0xfc4a('0x1'))(_0xfc4a('0x2'));var moment=require(_0xfc4a('0x3'));var BPromise=require(_0xfc4a('0x4'));var rp=require(_0xfc4a('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xfc4a('0x6'));var config=require(_0xfc4a('0x7'));var attributes=require('./intFreshsalesField.attributes');module[_0xfc4a('0x8')]=function(_0x5a2f5f,_0x516108){return _0x5a2f5f['define'](_0xfc4a('0x9'),attributes,{'tableName':_0xfc4a('0xa'),'paranoid':![],'indexes':[{'name':_0xfc4a('0xb'),'fields':[_0xfc4a('0xc'),_0xfc4a('0xd')],'unique':!![]}],'timestamps':!![]});};