Built motion from commit 85328c08.|2.5.50
[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 _0xfc69=['exports','define','compositeIndex','resourceId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes'];(function(_0x1dde2f,_0x137d22){var _0x3a5e91=function(_0x5c6c17){while(--_0x5c6c17){_0x1dde2f['push'](_0x1dde2f['shift']());}};_0x3a5e91(++_0x137d22);}(_0xfc69,0x1f3));var _0x9fc6=function(_0x34bc30,_0x177cb0){_0x34bc30=_0x34bc30-0x0;var _0x5706de=_0xfc69[_0x34bc30];return _0x5706de;};'use strict';var _=require(_0x9fc6('0x0'));var util=require(_0x9fc6('0x1'));var logger=require(_0x9fc6('0x2'))(_0x9fc6('0x3'));var moment=require(_0x9fc6('0x4'));var BPromise=require(_0x9fc6('0x5'));var rp=require(_0x9fc6('0x6'));var fs=require('fs');var path=require(_0x9fc6('0x7'));var rimraf=require(_0x9fc6('0x8'));var config=require(_0x9fc6('0x9'));var attributes=require(_0x9fc6('0xa'));module[_0x9fc6('0xb')]=function(_0x19d2a0,_0xaf3117){return _0x19d2a0[_0x9fc6('0xc')]('UserProfileResource',attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x9fc6('0xd'),'fields':[_0x9fc6('0xe'),'sectionId']}],'timestamps':!![]});};