6d1bf4dadea4038fce342c6179296f07d5b942b8
[motion2.git] / server / api / userProfile / userProfile.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 _0x582a=['exports','UserProfile','user_profiles','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x591495,_0x21c7b5){var _0x3f1f57=function(_0x7a87c6){while(--_0x7a87c6){_0x591495['push'](_0x591495['shift']());}};_0x3f1f57(++_0x21c7b5);}(_0x582a,0x1c5));var _0xa582=function(_0x38e11f,_0x3653ce){_0x38e11f=_0x38e11f-0x0;var _0x272dca=_0x582a[_0x38e11f];return _0x272dca;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xa582('0x0'))(_0xa582('0x1'));var moment=require(_0xa582('0x2'));var BPromise=require(_0xa582('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa582('0x4'));var rimraf=require(_0xa582('0x5'));var config=require(_0xa582('0x6'));var attributes=require('./userProfile.attributes');module[_0xa582('0x7')]=function(_0x569da3,_0x51083b){return _0x569da3['define'](_0xa582('0x8'),attributes,{'tableName':_0xa582('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};