25da9dce5d3916142831ce073ae1aae2cfe6b2f2
[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 _0xfdf2=['util','../../config/logger','api','moment','bluebird','path','exports','CmCustomField','cm_custom_fields'];(function(_0x4b092b,_0xc7a829){var _0x3ae338=function(_0x5ac258){while(--_0x5ac258){_0x4b092b['push'](_0x4b092b['shift']());}};_0x3ae338(++_0xc7a829);}(_0xfdf2,0xf3));var _0x2fdf=function(_0x9be3f0,_0x628568){_0x9be3f0=_0x9be3f0-0x0;var _0x96930b=_0xfdf2[_0x9be3f0];return _0x96930b;};'use strict';var _=require('lodash');var util=require(_0x2fdf('0x0'));var logger=require(_0x2fdf('0x1'))(_0x2fdf('0x2'));var moment=require(_0x2fdf('0x3'));var BPromise=require(_0x2fdf('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2fdf('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./cmCustomField.attributes');module[_0x2fdf('0x6')]=function(_0x36842b,_0x53babc){return _0x36842b['define'](_0x2fdf('0x7'),attributes,{'tableName':_0x2fdf('0x8'),'paranoid':!![],'indexes':[],'timestamps':!![]});};