e0d011a0de1b10f1bb621aa6a7b1f1b9cac74e79
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0x896e=['../../config/logger','api','request-promise','path','rimraf','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','util'];(function(_0x180380,_0x5992a0){var _0x447457=function(_0x2e8a9d){while(--_0x2e8a9d){_0x180380['push'](_0x180380['shift']());}};_0x447457(++_0x5992a0);}(_0x896e,0x9b));var _0xe896=function(_0xe4ae1f,_0x411535){_0xe4ae1f=_0xe4ae1f-0x0;var _0x4ca85d=_0x896e[_0xe4ae1f];return _0x4ca85d;};'use strict';var _=require('lodash');var util=require(_0xe896('0x0'));var logger=require(_0xe896('0x1'))(_0xe896('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xe896('0x3'));var fs=require('fs');var path=require(_0xe896('0x4'));var rimraf=require(_0xe896('0x5'));var config=require('../../config/environment');var attributes=require('./userProfileResource.attributes');module[_0xe896('0x6')]=function(_0x3468de,_0x46328a){return _0x3468de[_0xe896('0x7')](_0xe896('0x8'),attributes,{'tableName':_0xe896('0x9'),'paranoid':![],'indexes':[{'name':_0xe896('0xa'),'fields':[_0xe896('0xb'),_0xe896('0xc')]}],'timestamps':!![]});};