40e17cdffd61ac517b4bd397530dbace0055ad3d
[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 _0xb2e8=['define','cm_custom_fields','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','./cmCustomField.attributes','exports'];(function(_0x5ce219,_0xa3e131){var _0x504375=function(_0x3138c3){while(--_0x3138c3){_0x5ce219['push'](_0x5ce219['shift']());}};_0x504375(++_0xa3e131);}(_0xb2e8,0x1a6));var _0x8b2e=function(_0x385148,_0x1cb5a7){_0x385148=_0x385148-0x0;var _0xe679ac=_0xb2e8[_0x385148];return _0xe679ac;};'use strict';var _=require(_0x8b2e('0x0'));var util=require(_0x8b2e('0x1'));var logger=require('../../config/logger')(_0x8b2e('0x2'));var moment=require(_0x8b2e('0x3'));var BPromise=require(_0x8b2e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8b2e('0x5'));var rimraf=require(_0x8b2e('0x6'));var config=require(_0x8b2e('0x7'));var attributes=require(_0x8b2e('0x8'));module[_0x8b2e('0x9')]=function(_0x5739dd,_0x41e75c){return _0x5739dd[_0x8b2e('0xa')]('CmCustomField',attributes,{'tableName':_0x8b2e('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};