60d5022c4346853e0422adc2f280eef37a7abf66
[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 _0xebb3=['./userProfile.attributes','exports','UserProfile','user_profiles','util','../../config/logger','bluebird','request-promise','path','../../config/environment'];(function(_0xf5d71c,_0x2613a6){var _0x5af672=function(_0x191f52){while(--_0x191f52){_0xf5d71c['push'](_0xf5d71c['shift']());}};_0x5af672(++_0x2613a6);}(_0xebb3,0x1b2));var _0x3ebb=function(_0x4c94c7,_0x1dc3b3){_0x4c94c7=_0x4c94c7-0x0;var _0x32915f=_0xebb3[_0x4c94c7];return _0x32915f;};'use strict';var _=require('lodash');var util=require(_0x3ebb('0x0'));var logger=require(_0x3ebb('0x1'))('api');var moment=require('moment');var BPromise=require(_0x3ebb('0x2'));var rp=require(_0x3ebb('0x3'));var fs=require('fs');var path=require(_0x3ebb('0x4'));var rimraf=require('rimraf');var config=require(_0x3ebb('0x5'));var attributes=require(_0x3ebb('0x6'));module[_0x3ebb('0x7')]=function(_0x4f193f,_0x4901f5){return _0x4f193f['define'](_0x3ebb('0x8'),attributes,{'tableName':_0x3ebb('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};