Built motion from commit (unavailable).|2.5.15
[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 _0x4989=['../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','resourceId','sectionId','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x563793,_0x1e4934){var _0x3c2a7e=function(_0x13db3d){while(--_0x13db3d){_0x563793['push'](_0x563793['shift']());}};_0x3c2a7e(++_0x1e4934);}(_0x4989,0x134));var _0x9498=function(_0x1857c6,_0x48840c){_0x1857c6=_0x1857c6-0x0;var _0x51011c=_0x4989[_0x1857c6];return _0x51011c;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9498('0x0'))(_0x9498('0x1'));var moment=require(_0x9498('0x2'));var BPromise=require(_0x9498('0x3'));var rp=require(_0x9498('0x4'));var fs=require('fs');var path=require(_0x9498('0x5'));var rimraf=require(_0x9498('0x6'));var config=require(_0x9498('0x7'));var attributes=require(_0x9498('0x8'));module[_0x9498('0x9')]=function(_0x3fa684,_0x49d570){return _0x3fa684[_0x9498('0xa')](_0x9498('0xb'),attributes,{'tableName':_0x9498('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x9498('0xd'),_0x9498('0xe')]}],'timestamps':!![]});};