e140e1d7f78dd0f6d1b800ba93709e6e0bd6ed1a
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0x1f63=['moment','bluebird','request-promise','path','./intDeskAccount.attributes','exports','DeskAccount','int_desk_accounts','lodash','../../config/logger','api'];(function(_0x41368f,_0x36f35f){var _0x11d3f5=function(_0xfe9c72){while(--_0xfe9c72){_0x41368f['push'](_0x41368f['shift']());}};_0x11d3f5(++_0x36f35f);}(_0x1f63,0x152));var _0x31f6=function(_0x517ea5,_0x1374c4){_0x517ea5=_0x517ea5-0x0;var _0x465213=_0x1f63[_0x517ea5];return _0x465213;};'use strict';var _=require(_0x31f6('0x0'));var util=require('util');var logger=require(_0x31f6('0x1'))(_0x31f6('0x2'));var moment=require(_0x31f6('0x3'));var BPromise=require(_0x31f6('0x4'));var rp=require(_0x31f6('0x5'));var fs=require('fs');var path=require(_0x31f6('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x31f6('0x7'));var integrations=require('../../components/integrations/configuration');module[_0x31f6('0x8')]=function(_0x32b3cf,_0x4bffde){return _0x32b3cf['define'](_0x31f6('0x9'),attributes,{'tableName':_0x31f6('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};