Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / cmCustomField / cmCustomField.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 _0x885f=['cm_custom_fields','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','CmCustomField'];(function(_0x5a3c85,_0x51fcc0){var _0x5d5453=function(_0xdd7788){while(--_0xdd7788){_0x5a3c85['push'](_0x5a3c85['shift']());}};_0x5d5453(++_0x51fcc0);}(_0x885f,0x1b1));var _0xf885=function(_0x18a257,_0x12d221){_0x18a257=_0x18a257-0x0;var _0x35ec40=_0x885f[_0x18a257];return _0x35ec40;};'use strict';var _=require('lodash');var util=require(_0xf885('0x0'));var logger=require(_0xf885('0x1'))(_0xf885('0x2'));var moment=require(_0xf885('0x3'));var BPromise=require(_0xf885('0x4'));var rp=require(_0xf885('0x5'));var fs=require('fs');var path=require(_0xf885('0x6'));var rimraf=require(_0xf885('0x7'));var config=require(_0xf885('0x8'));var attributes=require('./cmCustomField.attributes');module[_0xf885('0x9')]=function(_0x434ac7,_0x16861b){return _0x434ac7['define'](_0xf885('0xa'),attributes,{'tableName':_0xf885('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};