Built motion from commit (unavailable).|2.5.24
[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 _0x8a58=['idField','FieldId','lodash','util','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','FreshsalesField','int_freshsales_fields'];(function(_0x13bc90,_0x1393f3){var _0x5a14e7=function(_0x2a8d26){while(--_0x2a8d26){_0x13bc90['push'](_0x13bc90['shift']());}};_0x5a14e7(++_0x1393f3);}(_0x8a58,0x77));var _0x88a5=function(_0x3d9ee5,_0x4d4d1c){_0x3d9ee5=_0x3d9ee5-0x0;var _0x78d2d6=_0x8a58[_0x3d9ee5];return _0x78d2d6;};'use strict';var _=require(_0x88a5('0x0'));var util=require(_0x88a5('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x88a5('0x2'));var BPromise=require(_0x88a5('0x3'));var rp=require(_0x88a5('0x4'));var fs=require('fs');var path=require(_0x88a5('0x5'));var rimraf=require(_0x88a5('0x6'));var config=require(_0x88a5('0x7'));var attributes=require('./intFreshsalesField.attributes');module['exports']=function(_0x3b49fb,_0xa3bd2d){return _0x3b49fb[_0x88a5('0x8')](_0x88a5('0x9'),attributes,{'tableName':_0x88a5('0xa'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0x88a5('0xb'),_0x88a5('0xc')],'unique':!![]}],'timestamps':!![]});};