c4e6b35eeb08c1a6892788655c53bc97c00a128e
[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 _0x49c1=['../../config/environment','./cmCustomField.attributes','exports','CmCustomField','lodash','api','moment','bluebird','path','rimraf'];(function(_0x19cce8,_0x23a814){var _0x575f93=function(_0x515f8b){while(--_0x515f8b){_0x19cce8['push'](_0x19cce8['shift']());}};_0x575f93(++_0x23a814);}(_0x49c1,0x16c));var _0x149c=function(_0x4a2319,_0x2bc5c3){_0x4a2319=_0x4a2319-0x0;var _0x5f16a9=_0x49c1[_0x4a2319];return _0x5f16a9;};'use strict';var _=require(_0x149c('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x149c('0x1'));var moment=require(_0x149c('0x2'));var BPromise=require(_0x149c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x149c('0x4'));var rimraf=require(_0x149c('0x5'));var config=require(_0x149c('0x6'));var attributes=require(_0x149c('0x7'));module[_0x149c('0x8')]=function(_0x1e0630,_0x2ab65d){return _0x1e0630['define'](_0x149c('0x9'),attributes,{'tableName':'cm_custom_fields','paranoid':!![],'indexes':[],'timestamps':!![]});};