084e2e28a54a5bb5b573f81b34f51ad23d3ad050
[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 _0xe314=['Disposition','tools_dispositions','name_voice','name','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','define'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xe314,0x7c));var _0x4e31=function(_0x51302c,_0x376113){_0x51302c=_0x51302c-0x0;var _0x20f6c1=_0xe314[_0x51302c];return _0x20f6c1;};'use strict';var _=require('lodash');var util=require(_0x4e31('0x0'));var logger=require(_0x4e31('0x1'))(_0x4e31('0x2'));var moment=require(_0x4e31('0x3'));var BPromise=require(_0x4e31('0x4'));var rp=require(_0x4e31('0x5'));var fs=require('fs');var path=require(_0x4e31('0x6'));var rimraf=require(_0x4e31('0x7'));var config=require(_0x4e31('0x8'));var attributes=require(_0x4e31('0x9'));module['exports']=function(_0x49b2a7,_0x3c5e06){return _0x49b2a7[_0x4e31('0xa')](_0x4e31('0xb'),attributes,{'tableName':_0x4e31('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x4e31('0xd'),'fields':[_0x4e31('0xe'),'ListId']},{'unique':!![],'name':_0x4e31('0xf'),'fields':[_0x4e31('0xe'),_0x4e31('0x10')]},{'unique':!![],'name':_0x4e31('0x11'),'fields':['name',_0x4e31('0x12')]},{'unique':!![],'name':_0x4e31('0x13'),'fields':[_0x4e31('0xe'),_0x4e31('0x14')]},{'unique':!![],'name':_0x4e31('0x15'),'fields':[_0x4e31('0xe'),_0x4e31('0x16')]},{'unique':!![],'name':_0x4e31('0x17'),'fields':[_0x4e31('0xe'),_0x4e31('0x18')]},{'unique':!![],'name':_0x4e31('0x19'),'fields':[_0x4e31('0xe'),_0x4e31('0x1a')]}],'timestamps':!![]});};