7c7c7977d002b86f221acf49290a36414eeac2e8
[motion2.git] / server / api / disposition / disposition.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 _0xce35=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xce35,0x15b));var _0x5ce3=function(_0x3cfb11,_0x1e386f){_0x3cfb11=_0x3cfb11-0x0;var _0x33c920=_0xce35[_0x3cfb11];return _0x33c920;};'use strict';var _=require(_0x5ce3('0x0'));var util=require(_0x5ce3('0x1'));var logger=require(_0x5ce3('0x2'))(_0x5ce3('0x3'));var moment=require(_0x5ce3('0x4'));var BPromise=require(_0x5ce3('0x5'));var rp=require(_0x5ce3('0x6'));var fs=require('fs');var path=require(_0x5ce3('0x7'));var rimraf=require(_0x5ce3('0x8'));var config=require(_0x5ce3('0x9'));var attributes=require(_0x5ce3('0xa'));module[_0x5ce3('0xb')]=function(_0x236919,_0x28ab15){return _0x236919[_0x5ce3('0xc')](_0x5ce3('0xd'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':[_0x5ce3('0xe'),_0x5ce3('0xf')]},{'unique':!![],'name':_0x5ce3('0x10'),'fields':[_0x5ce3('0xe'),_0x5ce3('0x11')]},{'unique':!![],'name':_0x5ce3('0x12'),'fields':[_0x5ce3('0xe'),_0x5ce3('0x13')]},{'unique':!![],'name':_0x5ce3('0x14'),'fields':[_0x5ce3('0xe'),_0x5ce3('0x15')]},{'unique':!![],'name':'name_fax','fields':['name',_0x5ce3('0x16')]},{'unique':!![],'name':_0x5ce3('0x17'),'fields':['name',_0x5ce3('0x18')]},{'unique':!![],'name':_0x5ce3('0x19'),'fields':[_0x5ce3('0xe'),_0x5ce3('0x1a')]}],'timestamps':!![]});};