Built motion from commit 9c91e9f5.|2.6.29
[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 _0x2ceb=['lodash','util','api','request-promise','path','../../config/environment','./cmCustomField.attributes','exports','CmCustomField','cm_custom_fields'];(function(_0x77ba95,_0x38222d){var _0x39c87e=function(_0x39ae5b){while(--_0x39ae5b){_0x77ba95['push'](_0x77ba95['shift']());}};_0x39c87e(++_0x38222d);}(_0x2ceb,0x19a));var _0xb2ce=function(_0x478c55,_0x4d8760){_0x478c55=_0x478c55-0x0;var _0x161eb2=_0x2ceb[_0x478c55];return _0x161eb2;};'use strict';var _=require(_0xb2ce('0x0'));var util=require(_0xb2ce('0x1'));var logger=require('../../config/logger')(_0xb2ce('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xb2ce('0x3'));var fs=require('fs');var path=require(_0xb2ce('0x4'));var rimraf=require('rimraf');var config=require(_0xb2ce('0x5'));var attributes=require(_0xb2ce('0x6'));module[_0xb2ce('0x7')]=function(_0x2342e8,_0x2c31d9){return _0x2342e8['define'](_0xb2ce('0x8'),attributes,{'tableName':_0xb2ce('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};