fa9b4dbcd4283e9415b269d5176b819df8821b4f
[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 _0xf29c=['./disposition.attributes','exports','define','Disposition','tools_dispositions','ListId','name_chat','name','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','name_openchannel','name_whatsapp','WhatsappAccountId','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x9e4726,_0x51c360){var _0x41d328=function(_0x50d276){while(--_0x50d276){_0x9e4726['push'](_0x9e4726['shift']());}};_0x41d328(++_0x51c360);}(_0xf29c,0xc7));var _0xcf29=function(_0x425048,_0x496c62){_0x425048=_0x425048-0x0;var _0x5235e9=_0xf29c[_0x425048];return _0x5235e9;};'use strict';var _=require('lodash');var util=require(_0xcf29('0x0'));var logger=require(_0xcf29('0x1'))(_0xcf29('0x2'));var moment=require(_0xcf29('0x3'));var BPromise=require(_0xcf29('0x4'));var rp=require(_0xcf29('0x5'));var fs=require('fs');var path=require(_0xcf29('0x6'));var rimraf=require(_0xcf29('0x7'));var config=require(_0xcf29('0x8'));var attributes=require(_0xcf29('0x9'));module[_0xcf29('0xa')]=function(_0x89a1c8,_0x347493){return _0x89a1c8[_0xcf29('0xb')](_0xcf29('0xc'),attributes,{'tableName':_0xcf29('0xd'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0xcf29('0xe')]},{'unique':!![],'name':_0xcf29('0xf'),'fields':[_0xcf29('0x10'),_0xcf29('0x11')]},{'unique':!![],'name':_0xcf29('0x12'),'fields':[_0xcf29('0x10'),_0xcf29('0x13')]},{'unique':!![],'name':_0xcf29('0x14'),'fields':[_0xcf29('0x10'),_0xcf29('0x15')]},{'unique':!![],'name':_0xcf29('0x16'),'fields':[_0xcf29('0x10'),'FaxAccountId']},{'unique':!![],'name':_0xcf29('0x17'),'fields':[_0xcf29('0x10'),'OpenchannelAccountId']},{'unique':!![],'name':_0xcf29('0x18'),'fields':['name',_0xcf29('0x19')]}],'timestamps':!![]});};