0e9ce5d9846da0b1a915fc07b3bcf52d98f09a5f
[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 _0x2ae0=['DeskAccount','int_desk_accounts','lodash','util','moment','bluebird','request-promise','path','../../config/environment','./intDeskAccount.attributes','../../components/integrations/configuration','exports','define'];(function(_0x348860,_0x4531f6){var _0x2fc2ad=function(_0x3b449f){while(--_0x3b449f){_0x348860['push'](_0x348860['shift']());}};_0x2fc2ad(++_0x4531f6);}(_0x2ae0,0x161));var _0x02ae=function(_0x415e13,_0x19623a){_0x415e13=_0x415e13-0x0;var _0xa3a89=_0x2ae0[_0x415e13];return _0xa3a89;};'use strict';var _=require(_0x02ae('0x0'));var util=require(_0x02ae('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x02ae('0x2'));var BPromise=require(_0x02ae('0x3'));var rp=require(_0x02ae('0x4'));var fs=require('fs');var path=require(_0x02ae('0x5'));var rimraf=require('rimraf');var config=require(_0x02ae('0x6'));var attributes=require(_0x02ae('0x7'));var integrations=require(_0x02ae('0x8'));module[_0x02ae('0x9')]=function(_0x32c0b8,_0x25edc3){return _0x32c0b8[_0x02ae('0xa')](_0x02ae('0xb'),attributes,{'tableName':_0x02ae('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};