8c66ea9ca5745c55db24abe4c39d3c5f779809b9
[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 _0x8bb4=['api','moment','bluebird','request-promise','path','rimraf','./cmCustomField.attributes','exports','CmCustomField','cm_custom_fields','util'];(function(_0x5b7d83,_0x366850){var _0x11a5c3=function(_0x4b36cd){while(--_0x4b36cd){_0x5b7d83['push'](_0x5b7d83['shift']());}};_0x11a5c3(++_0x366850);}(_0x8bb4,0x1b7));var _0x48bb=function(_0x50cc7c,_0x291e63){_0x50cc7c=_0x50cc7c-0x0;var _0x4f0017=_0x8bb4[_0x50cc7c];return _0x4f0017;};'use strict';var _=require('lodash');var util=require(_0x48bb('0x0'));var logger=require('../../config/logger')(_0x48bb('0x1'));var moment=require(_0x48bb('0x2'));var BPromise=require(_0x48bb('0x3'));var rp=require(_0x48bb('0x4'));var fs=require('fs');var path=require(_0x48bb('0x5'));var rimraf=require(_0x48bb('0x6'));var config=require('../../config/environment');var attributes=require(_0x48bb('0x7'));module[_0x48bb('0x8')]=function(_0x76c476,_0x27980b){return _0x76c476['define'](_0x48bb('0x9'),attributes,{'tableName':_0x48bb('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};