Built motion from commit 896e83a8.|2.6.30
[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 _0xb9ea=['exports','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','api','moment','request-promise','path','rimraf','./userProfileResource.attributes'];(function(_0x3bd709,_0x7dffd8){var _0x37813e=function(_0x1c6c2b){while(--_0x1c6c2b){_0x3bd709['push'](_0x3bd709['shift']());}};_0x37813e(++_0x7dffd8);}(_0xb9ea,0x1f3));var _0xab9e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb9ea[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xab9e('0x0'));var util=require(_0xab9e('0x1'));var logger=require('../../config/logger')(_0xab9e('0x2'));var moment=require(_0xab9e('0x3'));var BPromise=require('bluebird');var rp=require(_0xab9e('0x4'));var fs=require('fs');var path=require(_0xab9e('0x5'));var rimraf=require(_0xab9e('0x6'));var config=require('../../config/environment');var attributes=require(_0xab9e('0x7'));module[_0xab9e('0x8')]=function(_0x2ece21,_0x26d55c){return _0x2ece21['define'](_0xab9e('0x9'),attributes,{'tableName':_0xab9e('0xa'),'paranoid':![],'indexes':[{'name':_0xab9e('0xb'),'fields':['resourceId',_0xab9e('0xc')]}],'timestamps':!![]});};