250425f5c2d0d46b28af998a5158ffbb2a516b30
[motion2.git] / server / api / setting / setting.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 _0x57e9=['settings','lodash','util','api','moment','bluebird','request-promise','path','../../config/environment','./setting.attributes','exports','define','Setting'];(function(_0x31cb5f,_0x2df766){var _0x586042=function(_0x53c807){while(--_0x53c807){_0x31cb5f['push'](_0x31cb5f['shift']());}};_0x586042(++_0x2df766);}(_0x57e9,0xf8));var _0x957e=function(_0x18bbfe,_0x8c85ad){_0x18bbfe=_0x18bbfe-0x0;var _0xfe9141=_0x57e9[_0x18bbfe];return _0xfe9141;};'use strict';var _=require(_0x957e('0x0'));var util=require(_0x957e('0x1'));var logger=require('../../config/logger')(_0x957e('0x2'));var moment=require(_0x957e('0x3'));var BPromise=require(_0x957e('0x4'));var rp=require(_0x957e('0x5'));var fs=require('fs');var path=require(_0x957e('0x6'));var rimraf=require('rimraf');var config=require(_0x957e('0x7'));var attributes=require(_0x957e('0x8'));module[_0x957e('0x9')]=function(_0x522943,_0xce5c6d){return _0x522943[_0x957e('0xa')](_0x957e('0xb'),attributes,{'tableName':_0x957e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};