f843f9842062a7e2c9fcf9cce258ca771bc50679
[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 _0x53f6=['name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','OpenchannelAccountId','name_whatsapp','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','tools_dispositions','name_voice'];(function(_0x4327c5,_0x34fd51){var _0x693f12=function(_0x54901b){while(--_0x54901b){_0x4327c5['push'](_0x4327c5['shift']());}};_0x693f12(++_0x34fd51);}(_0x53f6,0x11a));var _0x653f=function(_0x387c2e,_0x1bc867){_0x387c2e=_0x387c2e-0x0;var _0x8987e1=_0x53f6[_0x387c2e];return _0x8987e1;};'use strict';var _=require(_0x653f('0x0'));var util=require(_0x653f('0x1'));var logger=require(_0x653f('0x2'))(_0x653f('0x3'));var moment=require(_0x653f('0x4'));var BPromise=require(_0x653f('0x5'));var rp=require(_0x653f('0x6'));var fs=require('fs');var path=require(_0x653f('0x7'));var rimraf=require(_0x653f('0x8'));var config=require(_0x653f('0x9'));var attributes=require(_0x653f('0xa'));module[_0x653f('0xb')]=function(_0x25bb59,_0x199947){return _0x25bb59[_0x653f('0xc')]('Disposition',attributes,{'tableName':_0x653f('0xd'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x653f('0xe'),'fields':[_0x653f('0xf'),_0x653f('0x10')]},{'unique':!![],'name':_0x653f('0x11'),'fields':[_0x653f('0xf'),_0x653f('0x12')]},{'unique':!![],'name':_0x653f('0x13'),'fields':[_0x653f('0xf'),_0x653f('0x14')]},{'unique':!![],'name':_0x653f('0x15'),'fields':[_0x653f('0xf'),_0x653f('0x16')]},{'unique':!![],'name':_0x653f('0x17'),'fields':[_0x653f('0xf'),_0x653f('0x18')]},{'unique':!![],'name':'name_openchannel','fields':['name',_0x653f('0x19')]},{'unique':!![],'name':_0x653f('0x1a'),'fields':[_0x653f('0xf'),'WhatsappAccountId']}],'timestamps':!![]});};