Built motion from commit 2b9af5da.|2.6.26
[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 _0xee58=['cm_custom_fields','util','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','CmCustomField'];(function(_0x2bf24c,_0x56de40){var _0x4de5a3=function(_0x3de725){while(--_0x3de725){_0x2bf24c['push'](_0x2bf24c['shift']());}};_0x4de5a3(++_0x56de40);}(_0xee58,0xd3));var _0x8ee5=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0xee58[_0x3947c9];return _0x2e7871;};'use strict';var _=require('lodash');var util=require(_0x8ee5('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x8ee5('0x1'));var rp=require(_0x8ee5('0x2'));var fs=require('fs');var path=require(_0x8ee5('0x3'));var rimraf=require(_0x8ee5('0x4'));var config=require(_0x8ee5('0x5'));var attributes=require('./cmCustomField.attributes');module[_0x8ee5('0x6')]=function(_0x295cfb,_0x8c421e){return _0x295cfb[_0x8ee5('0x7')](_0x8ee5('0x8'),attributes,{'tableName':_0x8ee5('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};