3f1ebda685ec237ac3b5f0e25035b450d18768ab
[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 _0x0b82=['api','moment','bluebird','request-promise','path','../../config/environment','../../components/integrations/configuration','DeskAccount','int_desk_accounts','lodash','util'];(function(_0x28ea95,_0x20536f){var _0x52860a=function(_0x27fdd7){while(--_0x27fdd7){_0x28ea95['push'](_0x28ea95['shift']());}};_0x52860a(++_0x20536f);}(_0x0b82,0x1ed));var _0x20b8=function(_0x3f4c41,_0x2436b8){_0x3f4c41=_0x3f4c41-0x0;var _0x347273=_0x0b82[_0x3f4c41];return _0x347273;};'use strict';var _=require(_0x20b8('0x0'));var util=require(_0x20b8('0x1'));var logger=require('../../config/logger')(_0x20b8('0x2'));var moment=require(_0x20b8('0x3'));var BPromise=require(_0x20b8('0x4'));var rp=require(_0x20b8('0x5'));var fs=require('fs');var path=require(_0x20b8('0x6'));var rimraf=require('rimraf');var config=require(_0x20b8('0x7'));var attributes=require('./intDeskAccount.attributes');var integrations=require(_0x20b8('0x8'));module['exports']=function(_0x35d076,_0x2c34aa){return _0x35d076['define'](_0x20b8('0x9'),attributes,{'tableName':_0x20b8('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};