Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0xe0bf=['../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','api','moment','request-promise','path','rimraf'];(function(_0x2f2d64,_0x33b2c6){var _0x1a7048=function(_0x1182a3){while(--_0x1182a3){_0x2f2d64['push'](_0x2f2d64['shift']());}};_0x1a7048(++_0x33b2c6);}(_0xe0bf,0x121));var _0xfe0b=function(_0xba2420,_0x264f3c){_0xba2420=_0xba2420-0x0;var _0x5b176c=_0xe0bf[_0xba2420];return _0x5b176c;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xfe0b('0x0'));var moment=require(_0xfe0b('0x1'));var BPromise=require('bluebird');var rp=require(_0xfe0b('0x2'));var fs=require('fs');var path=require(_0xfe0b('0x3'));var rimraf=require(_0xfe0b('0x4'));var config=require(_0xfe0b('0x5'));var attributes=require(_0xfe0b('0x6'));module[_0xfe0b('0x7')]=function(_0x4ac197,_0x2c084b){return _0x4ac197[_0xfe0b('0x8')](_0xfe0b('0x9'),attributes,{'tableName':_0xfe0b('0xa'),'paranoid':![],'indexes':[{'name':_0xfe0b('0xb'),'fields':[_0xfe0b('0xc'),_0xfe0b('0xd')]}],'timestamps':!![]});};