bd91926d259f187e253c7feb71c3d50b8a292144
[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 _0x0877=['path','rimraf','./userProfileResource.attributes','exports','compositeIndex','resourceId','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x55aa2d,_0x55c029){var _0x40d357=function(_0x5d4e50){while(--_0x5d4e50){_0x55aa2d['push'](_0x55aa2d['shift']());}};_0x40d357(++_0x55c029);}(_0x0877,0x1c0));var _0x7087=function(_0x30b094,_0x555417){_0x30b094=_0x30b094-0x0;var _0x4337f3=_0x0877[_0x30b094];return _0x4337f3;};'use strict';var _=require(_0x7087('0x0'));var util=require(_0x7087('0x1'));var logger=require(_0x7087('0x2'))(_0x7087('0x3'));var moment=require(_0x7087('0x4'));var BPromise=require(_0x7087('0x5'));var rp=require(_0x7087('0x6'));var fs=require('fs');var path=require(_0x7087('0x7'));var rimraf=require(_0x7087('0x8'));var config=require('../../config/environment');var attributes=require(_0x7087('0x9'));module[_0x7087('0xa')]=function(_0x53d54c,_0x5655ee){return _0x53d54c['define']('UserProfileResource',attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x7087('0xb'),'fields':[_0x7087('0xc'),'sectionId']}],'timestamps':!![]});};