d365ec73c9cb5e003af0a05e37ee543f2a7ec010
[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 _0x52ae=['exports','define','CmCustomField','cm_custom_fields','util','../../config/logger','api','moment','bluebird','request-promise','path','./cmCustomField.attributes'];(function(_0x56a2b9,_0x4211ea){var _0x411ce1=function(_0x17506e){while(--_0x17506e){_0x56a2b9['push'](_0x56a2b9['shift']());}};_0x411ce1(++_0x4211ea);}(_0x52ae,0x64));var _0xe52a=function(_0x2a67fe,_0x295c09){_0x2a67fe=_0x2a67fe-0x0;var _0x57e726=_0x52ae[_0x2a67fe];return _0x57e726;};'use strict';var _=require('lodash');var util=require(_0xe52a('0x0'));var logger=require(_0xe52a('0x1'))(_0xe52a('0x2'));var moment=require(_0xe52a('0x3'));var BPromise=require(_0xe52a('0x4'));var rp=require(_0xe52a('0x5'));var fs=require('fs');var path=require(_0xe52a('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe52a('0x7'));module[_0xe52a('0x8')]=function(_0x12899d,_0x42dd25){return _0x12899d[_0xe52a('0x9')](_0xe52a('0xa'),attributes,{'tableName':_0xe52a('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};