Built motion from commit (unavailable).|2.5.14
[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 _0x7d11=['../../config/environment','./cmCustomField.attributes','exports','define','CmCustomField','cm_custom_fields','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x1847c7,_0x1fa2ee){var _0x442cd8=function(_0x2ed3ee){while(--_0x2ed3ee){_0x1847c7['push'](_0x1847c7['shift']());}};_0x442cd8(++_0x1fa2ee);}(_0x7d11,0x95));var _0x17d1=function(_0x1eb0eb,_0x5627a9){_0x1eb0eb=_0x1eb0eb-0x0;var _0x479b1a=_0x7d11[_0x1eb0eb];return _0x479b1a;};'use strict';var _=require('lodash');var util=require(_0x17d1('0x0'));var logger=require(_0x17d1('0x1'))(_0x17d1('0x2'));var moment=require(_0x17d1('0x3'));var BPromise=require(_0x17d1('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x17d1('0x5'));var rimraf=require(_0x17d1('0x6'));var config=require(_0x17d1('0x7'));var attributes=require(_0x17d1('0x8'));module[_0x17d1('0x9')]=function(_0x1e6370,_0x3b3536){return _0x1e6370[_0x17d1('0xa')](_0x17d1('0xb'),attributes,{'tableName':_0x17d1('0xc'),'paranoid':!![],'indexes':[],'timestamps':!![]});};