f6b71a7461b5e7a995c6f1c0ecfbc2edffa741c7
[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 _0xaf6e=['request-promise','path','rimraf','../../config/environment','exports','define','CmCustomField','cm_custom_fields','lodash','util','moment','bluebird'];(function(_0x4793f3,_0x3ccb42){var _0x578ef1=function(_0x23059a){while(--_0x23059a){_0x4793f3['push'](_0x4793f3['shift']());}};_0x578ef1(++_0x3ccb42);}(_0xaf6e,0x158));var _0xeaf6=function(_0x2bcb35,_0x102644){_0x2bcb35=_0x2bcb35-0x0;var _0x1aa5c2=_0xaf6e[_0x2bcb35];return _0x1aa5c2;};'use strict';var _=require(_0xeaf6('0x0'));var util=require(_0xeaf6('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xeaf6('0x2'));var BPromise=require(_0xeaf6('0x3'));var rp=require(_0xeaf6('0x4'));var fs=require('fs');var path=require(_0xeaf6('0x5'));var rimraf=require(_0xeaf6('0x6'));var config=require(_0xeaf6('0x7'));var attributes=require('./cmCustomField.attributes');module[_0xeaf6('0x8')]=function(_0xc3bff5,_0x57ba7b){return _0xc3bff5[_0xeaf6('0x9')](_0xeaf6('0xa'),attributes,{'tableName':_0xeaf6('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};