Built motion from commit (unavailable).|2.5.11
[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 _0x8d5c=['moment','bluebird','path','../../config/environment','./intFreshsalesField.attributes','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash','../../config/logger','api'];(function(_0x2c3fb3,_0x2ed960){var _0x336b5f=function(_0x2734cb){while(--_0x2734cb){_0x2c3fb3['push'](_0x2c3fb3['shift']());}};_0x336b5f(++_0x2ed960);}(_0x8d5c,0x1cb));var _0xc8d5=function(_0x143cc6,_0xf94536){_0x143cc6=_0x143cc6-0x0;var _0x2cedba=_0x8d5c[_0x143cc6];return _0x2cedba;};'use strict';var _=require(_0xc8d5('0x0'));var util=require('util');var logger=require(_0xc8d5('0x1'))(_0xc8d5('0x2'));var moment=require(_0xc8d5('0x3'));var BPromise=require(_0xc8d5('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xc8d5('0x5'));var rimraf=require('rimraf');var config=require(_0xc8d5('0x6'));var attributes=require(_0xc8d5('0x7'));module[_0xc8d5('0x8')]=function(_0x35524c,_0x31cb1e){return _0x35524c['define'](_0xc8d5('0x9'),attributes,{'tableName':_0xc8d5('0xa'),'paranoid':![],'indexes':[{'name':_0xc8d5('0xb'),'fields':[_0xc8d5('0xc'),_0xc8d5('0xd')],'unique':!![]}],'timestamps':!![]});};