Built motion from commit 25580385.|2.6.2
[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 _0x283b=['resourceId','sectionId','lodash','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','user_profile_has_resources','compositeIndex'];(function(_0x1445e9,_0x1d5cff){var _0x40e5ee=function(_0x2db628){while(--_0x2db628){_0x1445e9['push'](_0x1445e9['shift']());}};_0x40e5ee(++_0x1d5cff);}(_0x283b,0x13d));var _0xb283=function(_0x542869,_0x5ec5e5){_0x542869=_0x542869-0x0;var _0x1fd6d3=_0x283b[_0x542869];return _0x1fd6d3;};'use strict';var _=require(_0xb283('0x0'));var util=require(_0xb283('0x1'));var logger=require(_0xb283('0x2'))(_0xb283('0x3'));var moment=require(_0xb283('0x4'));var BPromise=require('bluebird');var rp=require(_0xb283('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb283('0x6'));var config=require(_0xb283('0x7'));var attributes=require(_0xb283('0x8'));module[_0xb283('0x9')]=function(_0x253b17,_0x379015){return _0x253b17[_0xb283('0xa')]('UserProfileResource',attributes,{'tableName':_0xb283('0xb'),'paranoid':![],'indexes':[{'name':_0xb283('0xc'),'fields':[_0xb283('0xd'),_0xb283('0xe')]}],'timestamps':!![]});};