1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xf9da=['api','moment','bluebird','path','rimraf','./cmCustomField.attributes','exports','define','CmCustomField','cm_custom_fields','util'];(function(_0x165453,_0x5c5102){var _0x2775c4=function(_0x524d12){while(--_0x524d12){_0x165453['push'](_0x165453['shift']());}};_0x2775c4(++_0x5c5102);}(_0xf9da,0x78));var _0xaf9d=function(_0x13647a,_0x23799f){_0x13647a=_0x13647a-0x0;var _0x41f50c=_0xf9da[_0x13647a];return _0x41f50c;};'use strict';var _=require('lodash');var util=require(_0xaf9d('0x0'));var logger=require('../../config/logger')(_0xaf9d('0x1'));var moment=require(_0xaf9d('0x2'));var BPromise=require(_0xaf9d('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xaf9d('0x4'));var rimraf=require(_0xaf9d('0x5'));var config=require('../../config/environment');var attributes=require(_0xaf9d('0x6'));module[_0xaf9d('0x7')]=function(_0x375570,_0x21b081){return _0x375570[_0xaf9d('0x8')](_0xaf9d('0x9'),attributes,{'tableName':_0xaf9d('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};