053717ca1d0acfdee108474f58afe679f4166802
[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 _0x3d1d=['bluebird','rimraf','../../config/environment','./userProfile.attributes','exports','define','UserProfile','user_profiles','lodash','../../config/logger','moment'];(function(_0x41306e,_0x26ebc0){var _0x4b1c71=function(_0x3cc242){while(--_0x3cc242){_0x41306e['push'](_0x41306e['shift']());}};_0x4b1c71(++_0x26ebc0);}(_0x3d1d,0x1e1));var _0xd3d1=function(_0x1bd6fa,_0x5bd258){_0x1bd6fa=_0x1bd6fa-0x0;var _0x2bdca=_0x3d1d[_0x1bd6fa];return _0x2bdca;};'use strict';var _=require(_0xd3d1('0x0'));var util=require('util');var logger=require(_0xd3d1('0x1'))('api');var moment=require(_0xd3d1('0x2'));var BPromise=require(_0xd3d1('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xd3d1('0x4'));var config=require(_0xd3d1('0x5'));var attributes=require(_0xd3d1('0x6'));module[_0xd3d1('0x7')]=function(_0x2cd16f,_0x1fe194){return _0x2cd16f[_0xd3d1('0x8')](_0xd3d1('0x9'),attributes,{'tableName':_0xd3d1('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};