Built motion from commit 5b761a7b.|2.5.36
[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 _0x35f2=['api','request-promise','rimraf','../../config/environment','exports','define','CmCustomField','cm_custom_fields','lodash','util','../../config/logger'];(function(_0x56b98a,_0x56f867){var _0x47fc8e=function(_0x562367){while(--_0x562367){_0x56b98a['push'](_0x56b98a['shift']());}};_0x47fc8e(++_0x56f867);}(_0x35f2,0xfa));var _0x235f=function(_0x2f5fea,_0x1d30b1){_0x2f5fea=_0x2f5fea-0x0;var _0x388020=_0x35f2[_0x2f5fea];return _0x388020;};'use strict';var _=require(_0x235f('0x0'));var util=require(_0x235f('0x1'));var logger=require(_0x235f('0x2'))(_0x235f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x235f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x235f('0x5'));var config=require(_0x235f('0x6'));var attributes=require('./cmCustomField.attributes');module[_0x235f('0x7')]=function(_0x1884ea,_0x5fef04){return _0x1884ea[_0x235f('0x8')](_0x235f('0x9'),attributes,{'tableName':_0x235f('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};