5444721cfd6f874391e29a1fffe8ff2265013b31
[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 _0x2d9d=['cm_custom_fields','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','CmCustomField'];(function(_0x58119c,_0x5aa6ae){var _0x36fc2d=function(_0x11d3a1){while(--_0x11d3a1){_0x58119c['push'](_0x58119c['shift']());}};_0x36fc2d(++_0x5aa6ae);}(_0x2d9d,0x169));var _0xd2d9=function(_0x48ff3c,_0x516bb9){_0x48ff3c=_0x48ff3c-0x0;var _0x20c8db=_0x2d9d[_0x48ff3c];return _0x20c8db;};'use strict';var _=require('lodash');var util=require(_0xd2d9('0x0'));var logger=require(_0xd2d9('0x1'))(_0xd2d9('0x2'));var moment=require(_0xd2d9('0x3'));var BPromise=require(_0xd2d9('0x4'));var rp=require(_0xd2d9('0x5'));var fs=require('fs');var path=require(_0xd2d9('0x6'));var rimraf=require(_0xd2d9('0x7'));var config=require(_0xd2d9('0x8'));var attributes=require('./cmCustomField.attributes');module['exports']=function(_0x2b305,_0x3cbb4f){return _0x2b305[_0xd2d9('0x9')](_0xd2d9('0xa'),attributes,{'tableName':_0xd2d9('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};