4da29fa6c63aee551c80f264560d256795fcc8a7
[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 _0xe46c=['exports','define','Setting','settings','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./setting.attributes'];(function(_0x246e35,_0x586dff){var _0x4895ef=function(_0x2b45fc){while(--_0x2b45fc){_0x246e35['push'](_0x246e35['shift']());}};_0x4895ef(++_0x586dff);}(_0xe46c,0x122));var _0xce46=function(_0x5b1f97,_0x1c4dd0){_0x5b1f97=_0x5b1f97-0x0;var _0x1eb8d9=_0xe46c[_0x5b1f97];return _0x1eb8d9;};'use strict';var _=require('lodash');var util=require(_0xce46('0x0'));var logger=require(_0xce46('0x1'))(_0xce46('0x2'));var moment=require(_0xce46('0x3'));var BPromise=require('bluebird');var rp=require(_0xce46('0x4'));var fs=require('fs');var path=require(_0xce46('0x5'));var rimraf=require(_0xce46('0x6'));var config=require(_0xce46('0x7'));var attributes=require(_0xce46('0x8'));module[_0xce46('0x9')]=function(_0x5ec8c8,_0x61ff5d){return _0x5ec8c8[_0xce46('0xa')](_0xce46('0xb'),attributes,{'tableName':_0xce46('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};