84b46d1067b7cc44f2ef5e7c5ab37ce2cc2b9c2f
[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 _0x2bb9=['path','rimraf','./cmCustomField.attributes','exports','CmCustomField','cm_custom_fields','lodash','util','../../config/logger','bluebird','request-promise'];(function(_0x5a8e0f,_0x53557a){var _0x4318c0=function(_0x4efbdb){while(--_0x4efbdb){_0x5a8e0f['push'](_0x5a8e0f['shift']());}};_0x4318c0(++_0x53557a);}(_0x2bb9,0xed));var _0x92bb=function(_0xd5d92d,_0x6b09d5){_0xd5d92d=_0xd5d92d-0x0;var _0x388681=_0x2bb9[_0xd5d92d];return _0x388681;};'use strict';var _=require(_0x92bb('0x0'));var util=require(_0x92bb('0x1'));var logger=require(_0x92bb('0x2'))('api');var moment=require('moment');var BPromise=require(_0x92bb('0x3'));var rp=require(_0x92bb('0x4'));var fs=require('fs');var path=require(_0x92bb('0x5'));var rimraf=require(_0x92bb('0x6'));var config=require('../../config/environment');var attributes=require(_0x92bb('0x7'));module[_0x92bb('0x8')]=function(_0x28c6f1,_0x356492){return _0x28c6f1['define'](_0x92bb('0x9'),attributes,{'tableName':_0x92bb('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};