Built motion from commit 00bf23f6.|2.6.16
[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 _0x0fae=['../../config/logger','api','moment','bluebird','rimraf','../../config/environment','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId'];(function(_0x15d87f,_0x2d6436){var _0x286b6a=function(_0x4b7caa){while(--_0x4b7caa){_0x15d87f['push'](_0x15d87f['shift']());}};_0x286b6a(++_0x2d6436);}(_0x0fae,0x8f));var _0xe0fa=function(_0x2b557c,_0x4fc8e6){_0x2b557c=_0x2b557c-0x0;var _0x16fcc3=_0x0fae[_0x2b557c];return _0x16fcc3;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xe0fa('0x0'))(_0xe0fa('0x1'));var moment=require(_0xe0fa('0x2'));var BPromise=require(_0xe0fa('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xe0fa('0x4'));var config=require(_0xe0fa('0x5'));var attributes=require('./userProfileResource.attributes');module[_0xe0fa('0x6')]=function(_0x3b0801,_0x42a796){return _0x3b0801[_0xe0fa('0x7')](_0xe0fa('0x8'),attributes,{'tableName':_0xe0fa('0x9'),'paranoid':![],'indexes':[{'name':_0xe0fa('0xa'),'fields':[_0xe0fa('0xb'),_0xe0fa('0xc')]}],'timestamps':!![]});};