b1a1acd5e5cfde532a811ab0753c35858ee25357
[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 _0xecf8=['../../config/logger','api','moment','request-promise','../../config/environment','./intDeskAccount.attributes','../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','util'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0xecf8,0xfb));var _0x8ecf=function(_0xd50518,_0x255c1b){_0xd50518=_0xd50518-0x0;var _0x55f86f=_0xecf8[_0xd50518];return _0x55f86f;};'use strict';var _=require('lodash');var util=require(_0x8ecf('0x0'));var logger=require(_0x8ecf('0x1'))(_0x8ecf('0x2'));var moment=require(_0x8ecf('0x3'));var BPromise=require('bluebird');var rp=require(_0x8ecf('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x8ecf('0x5'));var attributes=require(_0x8ecf('0x6'));var integrations=require(_0x8ecf('0x7'));module[_0x8ecf('0x8')]=function(_0x342d1e,_0x2b9ddd){return _0x342d1e[_0x8ecf('0x9')](_0x8ecf('0xa'),attributes,{'tableName':_0x8ecf('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};