Built motion from commit (unavailable).|2.5.0
[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 _0xeb8c=['request-promise','rimraf','../../config/environment','./intFreshsalesField.attributes','FreshsalesField','idField','util','../../config/logger','api','moment'];(function(_0x591cfd,_0x501204){var _0x4d0100=function(_0xb9ff0c){while(--_0xb9ff0c){_0x591cfd['push'](_0x591cfd['shift']());}};_0x4d0100(++_0x501204);}(_0xeb8c,0xce));var _0xceb8=function(_0x1b5c15,_0x471697){_0x1b5c15=_0x1b5c15-0x0;var _0x4c7210=_0xeb8c[_0x1b5c15];return _0x4c7210;};'use strict';var _=require('lodash');var util=require(_0xceb8('0x0'));var logger=require(_0xceb8('0x1'))(_0xceb8('0x2'));var moment=require(_0xceb8('0x3'));var BPromise=require('bluebird');var rp=require(_0xceb8('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xceb8('0x5'));var config=require(_0xceb8('0x6'));var attributes=require(_0xceb8('0x7'));module['exports']=function(_0x5b25e3,_0x2c0e18){return _0x5b25e3['define'](_0xceb8('0x8'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xceb8('0x9'),'FieldId'],'unique':!![]}],'timestamps':!![]});};